summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mailman_pgp/mta/personalized.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mailman_pgp/mta/personalized.py b/src/mailman_pgp/mta/personalized.py
index 2b6d228..c2c9a15 100644
--- a/src/mailman_pgp/mta/personalized.py
+++ b/src/mailman_pgp/mta/personalized.py
@@ -29,6 +29,8 @@ from mailman_pgp.utils.email import overwrite_message
class PGPIndividualMixin:
+ """"""
+
def sign_encrypt(self, mlist, msg, msgdata):
"""
@@ -57,18 +59,16 @@ class PGPIndividualMixin:
key = pgp_address.key
wrapped = MIMEWrapper(msg)
- out = msg
+
if pgp_list.sign_outgoing:
if pgp_list.encrypt_outgoing:
out = wrapped.sign_encrypt(pgp_list.key, key, pgp_list.pubkey)
else:
out = wrapped.sign(pgp_list.key)
else:
- if pgp_list.encrypt_outgoing:
- out = wrapped.encrypt(key, pgp_list.pubkey)
+ out = wrapped.encrypt(key, pgp_list.pubkey)
- if out is not msg:
- overwrite_message(out, msg)
+ overwrite_message(out, msg)
@public