Skip to content

Commit 1808b50

Browse files
author
Richard Jones
committed
added date header to emails [SF#651358]
1 parent 1dec275 commit 1808b50

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ are given with the most recent entry first.
2222
- don't set explicit None Link properties in web create
2323
- fixed nasty sorting bug that was lowercasing properties
2424
- allow multiple :remove and :add elements per property being edited
25+
- added date header to emails (sf bug 651358)
2526

2627

2728
2002-11-07 0.5.2

roundup/mailgw.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class node. Any parts of other types are each stored in separate files
7373
an exception, the original message is bounced back to the sender with the
7474
explanatory message given in the exception.
7575
76-
$Id: mailgw.py,v 1.101 2002-12-10 00:23:35 richard Exp $
76+
$Id: mailgw.py,v 1.102 2002-12-11 01:52:20 richard Exp $
7777
'''
7878

7979
import string, re, os, mimetools, cStringIO, smtplib, socket, binascii, quopri
@@ -333,6 +333,8 @@ def bounce_message(self, message, sendto, error,
333333
writer.addheader('From', '%s <%s>'% (self.instance.config.TRACKER_NAME,
334334
self.instance.config.TRACKER_EMAIL))
335335
writer.addheader('To', ','.join(sendto))
336+
writer.addheader('Date', time.strftime("%a, %d %b %Y %H:%M:%S +0000",
337+
time.gmtime()))
336338
writer.addheader('MIME-Version', '1.0')
337339
part = writer.startmultipartbody('mixed')
338340
part = writer.nextpart()

roundup/roundupdb.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: roundupdb.py,v 1.74 2002-12-10 00:23:36 richard Exp $
18+
# $Id: roundupdb.py,v 1.75 2002-12-11 01:52:20 richard Exp $
1919

2020
__doc__ = """
2121
Extending hyperdb with types specific to issue-tracking.
@@ -230,6 +230,8 @@ def send_message(self, nodeid, msgid, note, sendto):
230230
writer.addheader('Reply-To', straddr(
231231
(self.db.config.TRACKER_NAME,
232232
self.db.config.TRACKER_EMAIL) ) )
233+
writer.addheader('Date', time.strftime("%a, %d %b %Y %H:%M:%S +0000",
234+
time.gmtime()))
233235
writer.addheader('MIME-Version', '1.0')
234236
if messageid:
235237
writer.addheader('Message-Id', messageid)

0 commit comments

Comments
 (0)