aboutsummaryrefslogtreecommitdiff
path: root/src/mailman_pgp/workflows/key_change.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/workflows/key_change.py
parent43cc9d3e2c76c82bd00ce46ee7de6d69d07f3bb3 (diff)
downloadmailman-pgp-a0997fb8e5893fed2c2275ff0cfbfa892b261601.tar.gz
mailman-pgp-a0997fb8e5893fed2c2275ff0cfbfa892b261601.tar.zst
mailman-pgp-a0997fb8e5893fed2c2275ff0cfbfa892b261601.zip
Diffstat (limited to 'src/mailman_pgp/workflows/key_change.py')
-rw-r--r--src/mailman_pgp/workflows/key_change.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mailman_pgp/workflows/key_change.py b/src/mailman_pgp/workflows/key_change.py
index 1d07903..66fb4e9 100644
--- a/src/mailman_pgp/workflows/key_change.py
+++ b/src/mailman_pgp/workflows/key_change.py
@@ -29,7 +29,6 @@ from zope.interface import implementer
from mailman_pgp.config import config
from mailman_pgp.database import transaction
from mailman_pgp.pgp.wrapper import PGPWrapper
-from mailman_pgp.utils.email import copy_headers
from mailman_pgp.workflows.base import PGPMixin
from mailman_pgp.workflows.mod_approval import (
ModeratorKeyChangeApprovalMixin)
@@ -96,11 +95,8 @@ class KeyChangeBase(Workflow, PGPMixin):
CHANGE_CONFIRM_REQUEST.format(
self.pubkey.fingerprint,
self.token))
- wrapped = PGPWrapper(msg)
- encrypted = wrapped.sign_encrypt(self.pgp_list.key, self.pubkey)
+ PGPWrapper(msg).sign_encrypt(self.pgp_list.key, self.pubkey)
- msg.set_payload(encrypted.get_payload())
- copy_headers(encrypted, msg, True)
msg.send(self.mlist)
raise StopIteration