diff options
| author | J08nY | 2017-08-23 20:22:57 +0200 |
|---|---|---|
| committer | J08nY | 2017-08-23 20:22:57 +0200 |
| commit | 70ce42462124c6638ae3e14fda7a763f5aa48b2e (patch) | |
| tree | eace5e350e24e362a520155e53deeed13515edbe /src/mailman_pgp/workflows/mod_approval.py | |
| parent | 5915ab0b194f2325ee55416550e2ba5d4c20886a (diff) | |
| parent | a0997fb8e5893fed2c2275ff0cfbfa892b261601 (diff) | |
| download | mailman-pgp-70ce42462124c6638ae3e14fda7a763f5aa48b2e.tar.gz mailman-pgp-70ce42462124c6638ae3e14fda7a763f5aa48b2e.tar.zst mailman-pgp-70ce42462124c6638ae3e14fda7a763f5aa48b2e.zip | |
Diffstat (limited to 'src/mailman_pgp/workflows/mod_approval.py')
| -rw-r--r-- | src/mailman_pgp/workflows/mod_approval.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/mailman_pgp/workflows/mod_approval.py b/src/mailman_pgp/workflows/mod_approval.py index 367f773..ea3369b 100644 --- a/src/mailman_pgp/workflows/mod_approval.py +++ b/src/mailman_pgp/workflows/mod_approval.py @@ -16,7 +16,6 @@ # this program. If not, see <http://www.gnu.org/licenses/>. """""" -import copy from mailman.email.message import UserNotification from mailman.interfaces.pending import IPendings @@ -25,7 +24,6 @@ from public import public from zope.component import getUtility from mailman_pgp.pgp.mime import MIMEWrapper -from mailman_pgp.utils.email import overwrite_message SUBSCRIPTION_MOD_REQUEST = """\ ---------- @@ -83,11 +81,8 @@ class ModeratorApprovalMixin: msg = UserNotification( self.mlist.owner_address, self.mlist.owner_address, subject, body, self.mlist.preferred_language) - out = copy.deepcopy(msg) - wrapped = MIMEWrapper(msg) - msg = wrapped.attach_keys(self.pubkey) - overwrite_message(msg, out) - out.send(self.mlist) + MIMEWrapper(msg).attach_keys(self.pubkey) + msg.send(self.mlist) raise StopIteration def _step_receive_mod_confirmation(self): |
