From 3d438eb9d0e1ba573ea1551270796ef355ea4dc7 Mon Sep 17 00:00:00 2001 From: "jimpop@template.hostname" <> Date: Thu, 26 May 2016 14:00:54 +0000 Subject: Support for preserving original DKIM headers --- Mailman/Handlers/CleanseDKIM.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Mailman/Handlers') 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'] -- cgit v1.2.3 From c08fa7a5a3379f6ac9d534fa781fa46de17ff90e Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Thu, 26 May 2016 09:16:45 -0700 Subject: Update copyright. --- Mailman/Handlers/CleanseDKIM.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Mailman/Handlers') diff --git a/Mailman/Handlers/CleanseDKIM.py b/Mailman/Handlers/CleanseDKIM.py index d74db7fe..3e70313b 100644 --- a/Mailman/Handlers/CleanseDKIM.py +++ b/Mailman/Handlers/CleanseDKIM.py @@ -1,4 +1,4 @@ -# Copyright (C) 2006-2015 by the Free Software Foundation, Inc. +# Copyright (C) 2006-2016 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License -- cgit v1.2.3