diff options
Diffstat (limited to 'src/mailman_pgp/mta/personalized.py')
| -rw-r--r-- | src/mailman_pgp/mta/personalized.py | 9 |
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 |
