diff options
author | Yasuhito FUTATSUKI at POEM <futatuki@poem.co.jp> | 2018-01-12 21:44:15 +0900 |
---|---|---|
committer | Yasuhito FUTATSUKI at POEM <futatuki@poem.co.jp> | 2018-01-12 21:44:15 +0900 |
commit | 16572087609fc9c9b9f55c26c9c55985fbcad804 (patch) | |
tree | d0af2f969c000db00909f66f9501634c43c8df26 /Mailman/Archiver/pipermail.py | |
parent | adb3d9035314760b62d92bda4a41991b7420360f (diff) | |
parent | c4a7c961798353841a75c862a6fe9e22529db45d (diff) | |
download | mailman2-16572087609fc9c9b9f55c26c9c55985fbcad804.tar.gz mailman2-16572087609fc9c9b9f55c26c9c55985fbcad804.tar.xz mailman2-16572087609fc9c9b9f55c26c9c55985fbcad804.zip |
sync with lp:mailman/2.1 Rev 1734
Diffstat (limited to 'Mailman/Archiver/pipermail.py')
-rw-r--r-- | Mailman/Archiver/pipermail.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Mailman/Archiver/pipermail.py b/Mailman/Archiver/pipermail.py index c03d43b3..9b0813b0 100644 --- a/Mailman/Archiver/pipermail.py +++ b/Mailman/Archiver/pipermail.py @@ -249,8 +249,8 @@ class Article: 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 '' )) |