changeset 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 b4d4770658c1
children d008233b22aa
files CHANGES.txt roundup/mailgw.py roundup/roundupdb.py
diffstat 3 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/CHANGES.txt	Wed Dec 11 01:46:46 2002 +0000
+++ b/CHANGES.txt	Wed Dec 11 01:52:20 2002 +0000
@@ -22,6 +22,7 @@
 - don't set explicit None Link properties in web create
 - fixed nasty sorting bug that was lowercasing properties
 - allow multiple :remove and :add elements per property being edited
+- added date header to emails (sf bug 651358)
 
 
 2002-11-07 0.5.2
--- 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()
--- a/roundup/roundupdb.py	Wed Dec 11 01:46:46 2002 +0000
+++ b/roundup/roundupdb.py	Wed Dec 11 01:52:20 2002 +0000
@@ -15,7 +15,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 # 
-# $Id: roundupdb.py,v 1.74 2002-12-10 00:23:36 richard Exp $
+# $Id: roundupdb.py,v 1.75 2002-12-11 01:52:20 richard Exp $
 
 __doc__ = """
 Extending hyperdb with types specific to issue-tracking.
@@ -230,6 +230,8 @@
         writer.addheader('Reply-To', straddr( 
                                         (self.db.config.TRACKER_NAME,
                                          self.db.config.TRACKER_EMAIL) ) )
+        writer.addheader('Date', time.strftime("%a, %d %b %Y %H:%M:%S +0000",
+            time.gmtime()))
         writer.addheader('MIME-Version', '1.0')
         if messageid:
             writer.addheader('Message-Id', messageid)

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