diff options
author | Mark Sapiro <mark@msapiro.net> | 2016-03-11 09:32:21 -0800 |
---|---|---|
committer | Mark Sapiro <mark@msapiro.net> | 2016-03-11 09:32:21 -0800 |
commit | c34680adb21d669521ca80c086b4913ba370fb79 (patch) | |
tree | 613c534208ee87923184ac1746b9336ab167592a | |
parent | 41a9b83a0d0a1253aeb5d7aa108852128de504ee (diff) | |
download | mailman2-c34680adb21d669521ca80c086b4913ba370fb79.tar.gz mailman2-c34680adb21d669521ca80c086b4913ba370fb79.tar.xz mailman2-c34680adb21d669521ca80c086b4913ba370fb79.zip |
Fixed bug in last commit if no Received: header.
Diffstat (limited to '')
-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 15decd40..c03d43b3 100644 --- a/Mailman/Archiver/pipermail.py +++ b/Mailman/Archiver/pipermail.py @@ -250,10 +250,10 @@ class Article: date = floatdate(message.get('x-list-received-date')) if date is None: date = floatdate(re.sub(r'^.*;\s*', '', - message.get('received'), flags=re.S)) + message.get('received', ''), flags=re.S)) if date is None: date = floatdate(re.sub(r'From \s*\S+\s+', '', - message.get_unixfrom())) + message.get_unixfrom() or '' )) if date is None: date = self._last_article_time + 1 self._last_article_time = date |