aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman
diff options
context:
space:
mode:
Diffstat (limited to 'Mailman')
-rw-r--r--Mailman/Handlers/CleanseDKIM.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/Mailman/Handlers/CleanseDKIM.py b/Mailman/Handlers/CleanseDKIM.py
index 5a83a2e0..2be1351a 100644
--- a/Mailman/Handlers/CleanseDKIM.py
+++ b/Mailman/Handlers/CleanseDKIM.py
@@ -31,12 +31,13 @@ from Mailman import mm_cfg
def process(mlist, msg, msgdata):
if not mm_cfg.REMOVE_DKIM_HEADERS:
return
- if (mm_cfg.REMOVE_DKIM_HEADERS == 1 and
+ if (mm_cfg.REMOVE_DKIM_HEADERS == 1 and not
(msgdata.get('from_is_list') == 1 or
(mlist.from_is_list == 1 and msgdata.get('from_is_list') != 2)
)
):
- del msg['domainkey-signature']
- del msg['dkim-signature']
- del msg['authentication-results']
+ return
+ del msg['domainkey-signature']
+ del msg['dkim-signature']
+ del msg['authentication-results']