diff options
Diffstat (limited to '')
-rw-r--r-- | Mailman/Handlers/CleanseDKIM.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Mailman/Handlers/CleanseDKIM.py b/Mailman/Handlers/CleanseDKIM.py index bed67666..d74db7fe 100644 --- a/Mailman/Handlers/CleanseDKIM.py +++ b/Mailman/Handlers/CleanseDKIM.py @@ -44,12 +44,12 @@ 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'] + 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'] |