------------------------------------------------------------ revno: 1197 committer: Mark Sapiro <msap...@value.net> branch nick: 2.2 timestamp: Tue 2011-11-22 16:51:23 -0800 message: Changed subject prefixing to allow for possible whitespace between an 'Re' and the following colon when determining how to add the prefix. Bug #893290. modified: Mailman/Handlers/CookHeaders.py NEWS
-- lp:mailman/2.2 https://code.launchpad.net/~mailman-coders/mailman/2.2 Your team Mailman Checkins is subscribed to branch lp:mailman/2.2. To unsubscribe from this branch go to https://code.launchpad.net/~mailman-coders/mailman/2.2/+edit-subscription
=== modified file 'Mailman/Handlers/CookHeaders.py' --- Mailman/Handlers/CookHeaders.py 2008-06-20 19:49:24 +0000 +++ Mailman/Handlers/CookHeaders.py 2011-11-23 00:51:23 +0000 @@ -1,4 +1,4 @@ -# Copyright (C) 1998-2008 by the Free Software Foundation, Inc. +# Copyright (C) 1998-2011 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 @@ -274,7 +274,7 @@ else: old_style = mm_cfg.OLD_STYLE_PREFIXING subject = re.sub(prefix_pattern, '', subject) - rematch = re.match('((RE|AW|SV|VS)(\[\d+\])?:\s*)+', subject, re.I) + rematch = re.match('((RE|AW|SV|VS)\s*(\[\d+\])?\s*:\s*)+', subject, re.I) if rematch: subject = subject[rematch.end():] recolon = 'Re:' === modified file 'NEWS' --- NEWS 2011-11-17 21:00:25 +0000 +++ NEWS 2011-11-23 00:51:23 +0000 @@ -127,6 +127,10 @@ Bug Fixes and other patches + - Changed subject prefixing to allow for possible whitespace between an + 'Re' and the following colon when determining how to add the prefix. + Bug #893290. + - Fixed a problem where topics regexps would not match RFC 2047 encoded Keywords: and/or Subject: headers. Bug #891676.
_______________________________________________ Mailman-checkins mailing list Mailman-checkins@python.org Unsubscribe: http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org