From: richard Date: Wed, 11 Dec 2002 01:52:20 +0000 (+0000) Subject: added date header to emails (sf bug 651358) X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a53a90c61b2b35d861680ff443cb642740d34f6f;p=roundup.git added date header to emails (sf bug 651358) git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1403 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/CHANGES.txt b/CHANGES.txt index 9cb3c5b..ad8831a 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -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 +- added date header to emails (sf bug 651358) 2002-11-07 0.5.2 diff --git a/roundup/mailgw.py b/roundup/mailgw.py index b7b29a6..9de891b 100644 --- a/roundup/mailgw.py +++ b/roundup/mailgw.py @@ -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. -$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 @@ class MailGW: 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() diff --git a/roundup/roundupdb.py b/roundup/roundupdb.py index af624eb..18505d9 100644 --- a/roundup/roundupdb.py +++ b/roundup/roundupdb.py @@ -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 @@ class IssueClass: 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)