------------------------------------------------------------
revno: 1559
fixes bug: https://launchpad.net/bugs/1444673
committer: Mark Sapiro <m...@msapiro.net>
branch nick: 2.1
timestamp: Wed 2015-04-15 13:31:01 -0700
message:
  DKIM-Signature:, DomainKey-Signature: and Authentication-Results:
  headers are now removed by default from posts to anonymous lists.
modified:
  Mailman/Handlers/CleanseDKIM.py
  NEWS


--
lp:mailman/2.1
https://code.launchpad.net/~mailman-coders/mailman/2.1

Your team Mailman Checkins is subscribed to branch lp:mailman/2.1.
To unsubscribe from this branch go to 
https://code.launchpad.net/~mailman-coders/mailman/2.1/+edit-subscription
=== modified file 'Mailman/Handlers/CleanseDKIM.py'
--- Mailman/Handlers/CleanseDKIM.py	2014-09-05 18:54:49 +0000
+++ Mailman/Handlers/CleanseDKIM.py	2015-04-15 20:31:01 +0000
@@ -1,4 +1,4 @@
-# Copyright (C) 2006-2014 by the Free Software Foundation, Inc.
+# Copyright (C) 2006-2015 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
@@ -29,9 +29,15 @@
 
 
 def process(mlist, msg, msgdata):
-    if not mm_cfg.REMOVE_DKIM_HEADERS:
+    if not (mm_cfg.REMOVE_DKIM_HEADERS or mlist.anonymous_list):
+        # We want to remove these headers from posts to anonymous lists.
+        # There can be interaction with the next test, but anonymous_list
+        # and Munge From are not compatible anyway, so don't worry.
         return
     if (mm_cfg.REMOVE_DKIM_HEADERS == 1 and not
+           # The following means 'Munge From' applies to this message.
+           # So this whole stanza means if RDH is 1 and we're not Munging,
+           # return and don't remove the headers.  See Defaults.py.
            (msgdata.get('from_is_list') == 1 or
             (mlist.from_is_list == 1 and msgdata.get('from_is_list') != 2)
            )

=== modified file 'NEWS'
--- NEWS	2015-04-13 22:17:02 +0000
+++ NEWS	2015-04-15 20:31:01 +0000
@@ -9,6 +9,10 @@
 
   Bug fixes and other patches
 
+    - DKIM-Signature:, DomainKey-Signature: and Authentication-Results:
+      headers are now removed by default from posts to anonymous lists.
+      (LP: #1444673)
+
     - The list admin web UI Mambership List search function often doesn't
       return correct results for search strings (regexps) that contain
       non-ascii characters.  This is partially fixed.  (LP: #1442298)

_______________________________________________
Mailman-checkins mailing list
Mailman-checkins@python.org
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org

Reply via email to