aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Handlers/Cleanse.py
diff options
context:
space:
mode:
authorbwarsaw <>2005-09-12 21:54:59 +0000
committerbwarsaw <>2005-09-12 21:54:59 +0000
commitc84499adcd5775f4b34c212e56c3de0a9e15eff8 (patch)
tree0d8b03a93ae81c24013341b0be811592589b0777 /Mailman/Handlers/Cleanse.py
parent71c64726b6bc64082a11e3d7de8033a25ae5d5f5 (diff)
downloadmailman2-c84499adcd5775f4b34c212e56c3de0a9e15eff8.tar.gz
mailman2-c84499adcd5775f4b34c212e56c3de0a9e15eff8.tar.xz
mailman2-c84499adcd5775f4b34c212e56c3de0a9e15eff8.zip
SF patch #1287546 to remove DomainKey (and similar) headers.
Diffstat (limited to 'Mailman/Handlers/Cleanse.py')
-rw-r--r--Mailman/Handlers/Cleanse.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/Mailman/Handlers/Cleanse.py b/Mailman/Handlers/Cleanse.py
index 65c5df69..1f6bcb6f 100644
--- a/Mailman/Handlers/Cleanse.py
+++ b/Mailman/Handlers/Cleanse.py
@@ -1,4 +1,4 @@
-# Copyright (C) 1998-2003 by the Free Software Foundation, Inc.
+# Copyright (C) 1998-2005 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
@@ -47,3 +47,12 @@ def process(mlist, msg, msgdata):
del msg['x-confirm-reading-to']
# Pegasus mail uses this one... sigh
del msg['x-pmrqc']
+ # Remove any "DomainKeys" (or similar) header lines. The values contained
+ # in these header lines are intended to be used by the recipient to detect
+ # forgery or tampering in transit, and the modifications made by Mailman
+ # to the headers and body of the message will cause these keys to appear
+ # invalid. Removing them will at least avoid this misleading result, and
+ # it will also give the MTA the opportunity to regenerate valid keys
+ # originating at the Mailman server for the outgoing message.
+ del msg['domainkey-signature']
+ del msg['dkim-signature']