From c34680adb21d669521ca80c086b4913ba370fb79 Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Fri, 11 Mar 2016 09:32:21 -0800 Subject: Fixed bug in last commit if no Received: header. --- Mailman/Archiver/pipermail.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Mailman') 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 -- cgit v1.2.3