diff options
author | Mark Sapiro <mark@msapiro.net> | 2016-05-26 08:42:36 -0700 |
---|---|---|
committer | Mark Sapiro <mark@msapiro.net> | 2016-05-26 08:42:36 -0700 |
commit | 56f0630cb0c72e1c39b3e5b738313f9dc95494c2 (patch) | |
tree | d6c3ef70a3ca4ea61007cb35e7a4ea57d9f45885 /Mailman/Handlers | |
parent | f48bbb2d2f440eeacf2abe422decd5d7790c0e00 (diff) | |
parent | 3d438eb9d0e1ba573ea1551270796ef355ea4dc7 (diff) | |
download | mailman2-56f0630cb0c72e1c39b3e5b738313f9dc95494c2.tar.gz mailman2-56f0630cb0c72e1c39b3e5b738313f9dc95494c2.tar.xz mailman2-56f0630cb0c72e1c39b3e5b738313f9dc95494c2.zip |
REMOVE_DKIM_HEADERS = 3 renames headers X-Mailman-Original...
Diffstat (limited to 'Mailman/Handlers')
-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..d74db7fe 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): + for value in msg.get_all('domainkey-signature', []): + msg['X-Mailman-Original-DomainKey-Signature'] = value + for value in msg.get_all('dkim-signature', []): + msg['X-Mailman-Original-DKIM-Signature'] = value + for value in msg.get_all('authentication-results', []): + msg['X-Mailman-Original-Authentication-Results'] = value del msg['domainkey-signature'] del msg['dkim-signature'] del msg['authentication-results'] |