aboutsummaryrefslogtreecommitdiff
path: root/src/mailman_pgp/mta/personalized.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/mta/personalized.py
parent43cc9d3e2c76c82bd00ce46ee7de6d69d07f3bb3 (diff)
downloadmailman-pgp-feature/wrappers-modify.tar.gz
mailman-pgp-feature/wrappers-modify.tar.zst
mailman-pgp-feature/wrappers-modify.zip
Diffstat (limited to 'src/mailman_pgp/mta/personalized.py')
-rw-r--r--src/mailman_pgp/mta/personalized.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/mailman_pgp/mta/personalized.py b/src/mailman_pgp/mta/personalized.py
index 9fcc282..5c12a0c 100644
--- a/src/mailman_pgp/mta/personalized.py
+++ b/src/mailman_pgp/mta/personalized.py
@@ -25,7 +25,6 @@ from public import public
from mailman_pgp.model.address import PGPAddress
from mailman_pgp.model.list import PGPMailingList
from mailman_pgp.pgp.mime import MIMEWrapper
-from mailman_pgp.utils.email import overwrite_message
class PGPIndividualMixin:
@@ -63,15 +62,13 @@ class PGPIndividualMixin:
if pgp_list.sign_outgoing:
if pgp_list.encrypt_outgoing:
- out = wrapped.sign_encrypt(pgp_list.key, key, pgp_list.pubkey)
+ wrapped.sign_encrypt(pgp_list.key, key, pgp_list.pubkey)
else:
- out = wrapped.sign(pgp_list.key)
+ wrapped.sign(pgp_list.key)
else:
# Definitely encrypt here, the case where we don't encrypt or sign
# is handled above at the start of the func.
- out = wrapped.encrypt(key, pgp_list.pubkey)
-
- overwrite_message(out, msg)
+ wrapped.encrypt(key, pgp_list.pubkey)
@public