Revision: 8216
http://svn.sourceforge.net/mailman/?rev=8216&view=rev
Author: bwarsaw
Date: 2007-05-09 21:35:37 -0700 (Wed, 09 May 2007)
Log Message:
-----------
Forward port more of Mark's r8204 fixes:
- Defaults.py.in, Handlers/Cleanse_DKIM.py
Added a new REMOVE_DKIM_HEADERS Defaults.py/mm_cfg.py setting (default
= No) to control removing dkim/domainkey signatures from posts and
mail to -owner.
Modified Paths:
--------------
branches/exp-elixir-branch/Mailman/Defaults.py.in
branches/exp-elixir-branch/Mailman/Handlers/CleanseDKIM.py
branches/exp-elixir-branch/docs/NEWS.txt
Modified: branches/exp-elixir-branch/Mailman/Defaults.py.in
===================================================================
--- branches/exp-elixir-branch/Mailman/Defaults.py.in 2007-05-10 03:59:31 UTC
(rev 8215)
+++ branches/exp-elixir-branch/Mailman/Defaults.py.in 2007-05-10 04:35:37 UTC
(rev 8216)
@@ -475,6 +475,15 @@
('mime-version', 'X-MIME-Version'),
]
+# Some list posts and mail to the -owner address may contain DomainKey or
+# DomainKeys Identified Mail (DKIM) signature headers <http://www.dkim.org/>.
+# Various list transformations to the message such as adding a list header or
+# footer or scrubbing attachments or even reply-to munging can break these
+# signatures. It is generally felt that these signatures have value, even if
+# broken and even if the outgoing message is resigned. However, some sites
+# may wish to remove these headers by setting this to Yes.
+REMOVE_DKIM_HEADERS = No
+
# All `normal' messages which are delivered to the entire list membership go
# through this pipeline of handler modules. Lists themselves can override the
# global pipeline by defining a `pipeline' attribute.
Modified: branches/exp-elixir-branch/Mailman/Handlers/CleanseDKIM.py
===================================================================
--- branches/exp-elixir-branch/Mailman/Handlers/CleanseDKIM.py 2007-05-10
03:59:31 UTC (rev 8215)
+++ branches/exp-elixir-branch/Mailman/Handlers/CleanseDKIM.py 2007-05-10
04:35:37 UTC (rev 8216)
@@ -25,9 +25,12 @@
originating at the Mailman server for the outgoing message.
"""
+from Mailman.configuration import config
+
def process(mlist, msg, msgdata):
- del msg['domainkey-signature']
- del msg['dkim-signature']
- del msg['authentication-results']
+ if config.REMOVE_DKIM_HEADERS:
+ del msg['domainkey-signature']
+ del msg['dkim-signature']
+ del msg['authentication-results']
Modified: branches/exp-elixir-branch/docs/NEWS.txt
===================================================================
--- branches/exp-elixir-branch/docs/NEWS.txt 2007-05-10 03:59:31 UTC (rev
8215)
+++ branches/exp-elixir-branch/docs/NEWS.txt 2007-05-10 04:35:37 UTC (rev
8216)
@@ -104,6 +104,9 @@
Bug fixes and other patches
+ - Removal of DomainKey/DKIM signatures is now controlled by Defaults.py
+ mm_cfg.py variable REMOVE_DKIM_HEADERS (default = No).
+
- Queue runner processing is improved to log and preserve for analysis in
the shunt queue certain bad queue entries that were previously logged
but lost. Also, entries are preserved when an attempt to shunt throws
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe:
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org