diff options
| author | J08nY | 2017-08-23 20:12:10 +0200 |
|---|---|---|
| committer | J08nY | 2017-08-23 20:12:10 +0200 |
| commit | a0997fb8e5893fed2c2275ff0cfbfa892b261601 (patch) | |
| tree | 926f093cbe087a8c7f69705f159fe85ff8799caa /src/mailman_pgp/workflows/key_confirm.py | |
| parent | 43cc9d3e2c76c82bd00ce46ee7de6d69d07f3bb3 (diff) | |
| download | mailman-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/workflows/key_confirm.py')
| -rw-r--r-- | src/mailman_pgp/workflows/key_confirm.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mailman_pgp/workflows/key_confirm.py b/src/mailman_pgp/workflows/key_confirm.py index 0a38551..cf87832 100644 --- a/src/mailman_pgp/workflows/key_confirm.py +++ b/src/mailman_pgp/workflows/key_confirm.py @@ -23,7 +23,6 @@ from public import public from mailman_pgp.database import transaction from mailman_pgp.model.list import PGPMailingList from mailman_pgp.pgp.wrapper import PGPWrapper -from mailman_pgp.utils.email import copy_headers CONFIRM_REQUEST = """\ ---------- @@ -65,11 +64,8 @@ class ConfirmPubkeyMixin: self.pgp_address.key_fingerprint, self.token)) pgp_list = PGPMailingList.for_list(self.mlist) - wrapped = PGPWrapper(msg) - encrypted = wrapped.sign_encrypt(pgp_list.key, self.pgp_address.key) + PGPWrapper(msg).sign_encrypt(pgp_list.key, self.pgp_address.key) - msg.set_payload(encrypted.get_payload()) - copy_headers(encrypted, msg, True) msg.send(self.mlist) raise StopIteration |
