summaryrefslogtreecommitdiff
path: root/src/mailman_pgp/mta
diff options
context:
space:
mode:
authorJ08nY2017-07-19 18:16:41 +0200
committerJ08nY2017-07-19 18:17:11 +0200
commit4cb7d5309746a367f889c4a030c6232736554ef4 (patch)
tree1835f90d96b93a23d7423e5d9a7fa6d0fd42eba2 /src/mailman_pgp/mta
parentcaefb5542ddde4760b6688e6ea33eb426a9a3099 (diff)
downloadmailman-pgp-4cb7d5309746a367f889c4a030c6232736554ef4.tar.gz
mailman-pgp-4cb7d5309746a367f889c4a030c6232736554ef4.tar.zst
mailman-pgp-4cb7d5309746a367f889c4a030c6232736554ef4.zip
Diffstat (limited to 'src/mailman_pgp/mta')
-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