summaryrefslogtreecommitdiff
path: root/src/mailman_pgp/runners
diff options
context:
space:
mode:
authorJ08nY2017-06-26 21:42:33 +0200
committerJ08nY2017-06-26 21:42:33 +0200
commite506b790be863e58930aefb7473cd815a967a581 (patch)
tree6d0f32b395befa5a06ae22e24f81083a64bf71e6 /src/mailman_pgp/runners
parentbd662b9803ebfbc0c4c82f99a00429352d877169 (diff)
downloadmailman-pgp-e506b790be863e58930aefb7473cd815a967a581.tar.gz
mailman-pgp-e506b790be863e58930aefb7473cd815a967a581.tar.zst
mailman-pgp-e506b790be863e58930aefb7473cd815a967a581.zip
Diffstat (limited to 'src/mailman_pgp/runners')
-rw-r--r--src/mailman_pgp/runners/incoming.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mailman_pgp/runners/incoming.py b/src/mailman_pgp/runners/incoming.py
index 4a01b14..b34f5e5 100644
--- a/src/mailman_pgp/runners/incoming.py
+++ b/src/mailman_pgp/runners/incoming.py
@@ -49,11 +49,11 @@ class IncomingRunner(Runner):
wrapped = PGPWrapper(msg)
# Is the message encrypted?
if wrapped.is_encrypted():
+ # Decrypt it and pass it on.
list_key = pgp_list.key
if list_key is None:
raise ValueError('List key not found.')
- decrypted = wrapped.decrypt(list_key) # noqa
- pass
+ msg = wrapped.decrypt(list_key)
else:
# Take the `nonencrypted_msg_action`
# just set some data for our `encryption` rule which will