[Mailman-Developers] pipermail.py and self.datestr

SHIGENO Kazutaka shigeno at iij-mc.co.jp
Fri Feb 20 09:10:13 EST 2004


Hi,

The definition of self.datestr does not exist in pipermail.py.
How about using the following patch?

--- pipermail.py        7 Jan 2004 02:41:46 -0000       1.1.1.1
+++ pipermail.py        20 Feb 2004 13:19:33 -0000
@@ -240,6 +240,11 @@
         self._last_article_time = date
         self.date = '%011i' % date

+        datestr = message.get('date', None)
+        if datestr is None:
+            datestr = message.get('x-list-received-date', None)
+        self.datestr = datestr
+
     def __repr__(self):
         return '<Article ID = '+repr(self.msgid)+'>'

-- shigeno



More information about the Mailman-Developers mailing list