Commits

Patrick Mézard  committed 42b70ed

Treat missing date as epoch origin

  • Participants
  • Parent commits f82a108

Comments (0)

Files changed (1)

 
     def date(self):
         d = email.utils.parsedate(self.msg['Date'])
+        if d is None:
+            d = tuple([0 for i in range(9)])
         return time.mktime(d)
 
     def sender(self):