Code

added date header to emails (sf bug 651358)
authorrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Wed, 11 Dec 2002 01:52:20 +0000 (01:52 +0000)
committerrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Wed, 11 Dec 2002 01:52:20 +0000 (01:52 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1403 57a73879-2fb5-44c3-a270-3262357dd7e2

CHANGES.txt
roundup/mailgw.py
roundup/roundupdb.py

index 9cb3c5b8e1c2bfb55adf9c9426587abb39d312e9..ad8831abfcb430b7d18addbdd9ad8756b9c272ba 100644 (file)
@@ -22,6 +22,7 @@ are given with the most recent entry first.
 - 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
 - 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
 
 
 2002-11-07 0.5.2
index b7b29a6e455af90a003cbec69cff352b0461f721..9de891be5ccd136bbbc6de31f5b9800ab533c9bb 100644 (file)
@@ -73,7 +73,7 @@ are calling the create() method to create a new node). If an auditor raises
 an exception, the original message is bounced back to the sender with the
 explanatory message given in the exception. 
 
 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
 '''
 
 import string, re, os, mimetools, cStringIO, smtplib, socket, binascii, quopri
@@ -333,6 +333,8 @@ class MailGW:
         writer.addheader('From', '%s <%s>'% (self.instance.config.TRACKER_NAME,
             self.instance.config.TRACKER_EMAIL))
         writer.addheader('To', ','.join(sendto))
         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()
         writer.addheader('MIME-Version', '1.0')
         part = writer.startmultipartbody('mixed')
         part = writer.nextpart()
index af624eba974697dfd9fd599eee7b98a0cc0ffb8e..18505d99c25de389ae3df95da3f10d097ac15138 100644 (file)
@@ -15,7 +15,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 # 
 # 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.
 
 __doc__ = """
 Extending hyperdb with types specific to issue-tracking.
@@ -230,6 +230,8 @@ class IssueClass:
         writer.addheader('Reply-To', straddr( 
                                         (self.db.config.TRACKER_NAME,
                                          self.db.config.TRACKER_EMAIL) ) )
         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)
         writer.addheader('MIME-Version', '1.0')
         if messageid:
             writer.addheader('Message-Id', messageid)