------------------------------------------------------------ revno: 1532 fixes bug: https://launchpad.net/bugs/1419132 committer: Mark Sapiro <m...@msapiro.net> branch nick: 2.1 timestamp: Fri 2015-02-06 12:06:55 -0800 message: Remove Organization: header from anonymized posts. Handle regexps with trailing ':' in ANONYMOUS_LIST_KEEP_HEADERS. modified: Mailman/Handlers/Cleanse.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/Cleanse.py' --- Mailman/Handlers/Cleanse.py 2013-10-29 20:24:47 +0000 +++ Mailman/Handlers/Cleanse.py 2015-02-06 20:06:55 +0000 @@ -1,4 +1,4 @@ -# Copyright (C) 1998-2013 by the Free Software Foundation, Inc. +# Copyright (C) 1998-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,6 +29,8 @@ cres = [] for regexp in mm_cfg.ANONYMOUS_LIST_KEEP_HEADERS: try: + if regexp.endswith(':'): + regexp = regexp[:-1] + '$' cres.append(re.compile(regexp, re.IGNORECASE)) except re.error, e: syslog('error', @@ -65,6 +67,7 @@ del msg['from'] del msg['reply-to'] del msg['sender'] + del msg['organization'] del msg['return-path'] # Hotmail sets this one del msg['x-originating-email'] === modified file 'NEWS' --- NEWS 2015-02-05 22:10:11 +0000 +++ NEWS 2015-02-06 20:06:55 +0000 @@ -138,6 +138,11 @@ Bug fixes and other patches + - Organization: headers are now unconditionally removed from posts to + anonymous lists. Regexps in ANONYMOUS_LIST_KEEP_HEADERS weren't kept + if the regexp included the trailing ':'. This is fixed too. + (LP: #1419132) + - The admindb interface has been fixed so the the detail message body display doesn't lose part of a multi-byte character, and characters which are invalid in the message's charset are replaced rather than the whole
_______________________________________________ Mailman-checkins mailing list Mailman-checkins@python.org Unsubscribe: https://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org