diff options
author | jimpop@template.hostname <> | 2016-05-26 14:00:54 +0000 |
---|---|---|
committer | jimpop@template.hostname <> | 2016-05-26 14:00:54 +0000 |
commit | 3d438eb9d0e1ba573ea1551270796ef355ea4dc7 (patch) | |
tree | e014ca3aa7cba729402a1e1b3f96b14cac75572c /Mailman/Handlers | |
parent | f48bbb2d2f440eeacf2abe422decd5d7790c0e00 (diff) | |
download | mailman2-3d438eb9d0e1ba573ea1551270796ef355ea4dc7.tar.gz mailman2-3d438eb9d0e1ba573ea1551270796ef355ea4dc7.tar.xz mailman2-3d438eb9d0e1ba573ea1551270796ef355ea4dc7.zip |
Support for preserving original DKIM headers
Diffstat (limited to '')
-rw-r--r-- | Mailman/Handlers/CleanseDKIM.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Mailman/Handlers/CleanseDKIM.py b/Mailman/Handlers/CleanseDKIM.py index 2cfb07af..bed67666 100644 --- a/Mailman/Handlers/CleanseDKIM.py +++ b/Mailman/Handlers/CleanseDKIM.py @@ -43,6 +43,13 @@ def process(mlist, msg, msgdata): ) ): return + if (mm_cfg.REMOVE_DKIM_HEADERS == 3): + if 'domainkey-signature' in msg: + msg['X-Mailman-Original-DomainKey-Signature'] = msg['domainkey-signature'] + if 'dkim-signature' in msg: + msg['X-Mailman-Original-DKIM-Signature'] = msg['dkim-signature'] + if 'authentication-results' in msg: + msg['X-Mailman-Original-Authentication-Results'] = msg['authentication-results'] del msg['domainkey-signature'] del msg['dkim-signature'] del msg['authentication-results'] |