aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman
diff options
context:
space:
mode:
authorMark Sapiro <mark@msapiro.net>2016-03-11 09:32:21 -0800
committerMark Sapiro <mark@msapiro.net>2016-03-11 09:32:21 -0800
commitc34680adb21d669521ca80c086b4913ba370fb79 (patch)
tree613c534208ee87923184ac1746b9336ab167592a /Mailman
parent41a9b83a0d0a1253aeb5d7aa108852128de504ee (diff)
downloadmailman2-c34680adb21d669521ca80c086b4913ba370fb79.tar.gz
mailman2-c34680adb21d669521ca80c086b4913ba370fb79.tar.xz
mailman2-c34680adb21d669521ca80c086b4913ba370fb79.zip
Fixed bug in last commit if no Received: header.
Diffstat (limited to 'Mailman')
-rw-r--r--Mailman/Archiver/pipermail.py4
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