From e506b790be863e58930aefb7473cd815a967a581 Mon Sep 17 00:00:00 2001 From: J08nY Date: Mon, 26 Jun 2017 21:42:33 +0200 Subject: Finish basic incoming runner. --- src/mailman_pgp/runners/incoming.py | 4 ++-- 1 file 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 -- cgit v1.2.3-70-g09d2