------------------------------------------------------------
revno: 1731
fixes bug: https://launchpad.net/bugs/1740543
committer: Mark Sapiro <[email protected]>
branch nick: 2.1
timestamp: Fri 2017-12-29 12:55:00 -0800
message:
Removed a Python 2.7 dependency from pipermail.py.
modified:
Mailman/Archiver/pipermail.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/Archiver/pipermail.py'
--- Mailman/Archiver/pipermail.py 2016-05-12 18:54:42 +0000
+++ Mailman/Archiver/pipermail.py 2017-12-29 20:55:00 +0000
@@ -249,8 +249,8 @@
if date is None:
date = floatdate(message.get('x-list-received-date'))
if date is None:
- date = floatdate(re.sub(r'^.*;\s*', '',
- message.get('received', ''), flags=re.S))
+ rec_re = re.compile(r'^.*;\s*', re.DOTALL)
+ date = floatdate(rec_re.sub('', message.get('received', '')))
if date is None:
date = floatdate(re.sub(r'From \s*\S+\s+', '',
message.get_unixfrom() or '' ))
=== modified file 'NEWS'
--- NEWS 2017-12-10 00:17:47 +0000
+++ NEWS 2017-12-29 20:55:00 +0000
@@ -14,6 +14,10 @@
Bug fixes and other patches
+ - Mailman 2.1.22 introduced a Python 2.7 dependency that could affect
+ bin/arch processing a message without a valid Date: header. The
+ dependency has been removed. (LP: #1740543)
+
- Messages held for header_filter_rules now show the matched regexp in
the hold reason. (LP: #1737371)
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe:
https://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org