diff roundup/mailgw.py @ 1329:b1f86cc82d33

added date header to emails [SF#651358]
author Richard Jones <richard@users.sourceforge.net>
date Wed, 11 Dec 2002 01:52:20 +0000
parents 328d68db2ef8
children f2f553611ce0
line wrap: on
line diff
--- a/roundup/mailgw.py	Wed Dec 11 01:46:46 2002 +0000
+++ b/roundup/mailgw.py	Wed Dec 11 01:52:20 2002 +0000
@@ -73,7 +73,7 @@
 an exception, the original message is bounced back to the sender with the
 explanatory message given in the exception. 
 
-$Id: mailgw.py,v 1.101 2002-12-10 00:23:35 richard Exp $
+$Id: mailgw.py,v 1.102 2002-12-11 01:52:20 richard Exp $
 '''
 
 import string, re, os, mimetools, cStringIO, smtplib, socket, binascii, quopri
@@ -333,6 +333,8 @@
         writer.addheader('From', '%s <%s>'% (self.instance.config.TRACKER_NAME,
             self.instance.config.TRACKER_EMAIL))
         writer.addheader('To', ','.join(sendto))
+        writer.addheader('Date', time.strftime("%a, %d %b %Y %H:%M:%S +0000",
+            time.gmtime()))
         writer.addheader('MIME-Version', '1.0')
         part = writer.startmultipartbody('mixed')
         part = writer.nextpart()

Roundup Issue Tracker: http://roundup-tracker.org/