aboutsummaryrefslogtreecommitdiff
path: root/src/mailman_pgp/workflows/mod_approval.py
diff options
context:
space:
mode:
authorJ08nY2017-08-23 20:12:10 +0200
committerJ08nY2017-08-23 20:12:10 +0200
commita0997fb8e5893fed2c2275ff0cfbfa892b261601 (patch)
tree926f093cbe087a8c7f69705f159fe85ff8799caa /src/mailman_pgp/workflows/mod_approval.py
parent43cc9d3e2c76c82bd00ce46ee7de6d69d07f3bb3 (diff)
downloadmailman-pgp-a0997fb8e5893fed2c2275ff0cfbfa892b261601.tar.gz
mailman-pgp-a0997fb8e5893fed2c2275ff0cfbfa892b261601.tar.zst
mailman-pgp-a0997fb8e5893fed2c2275ff0cfbfa892b261601.zip
Diffstat (limited to 'src/mailman_pgp/workflows/mod_approval.py')
-rw-r--r--src/mailman_pgp/workflows/mod_approval.py9
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):