[Buildbot-commits] buildbot/buildbot/status mail.py,1.11,1.12
Brian Warner
warner at users.sourceforge.net
Thu Nov 11 00:43:51 UTC 2004
Update of /cvsroot/buildbot/buildbot/buildbot/status
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14702/buildbot/status
Modified Files:
mail.py
Log Message:
* buildbot/status/mail.py (MailNotifier.buildMessage): add a Date
header to outbound mail
* buildbot/test/test_status.py (Mail.testBuild1): test for same
Index: mail.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/status/mail.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- mail.py 29 Oct 2004 18:03:41 -0000 1.11
+++ mail.py 11 Nov 2004 00:43:48 -0000 1.12
@@ -3,6 +3,7 @@
# the email.MIMEMultipart module is only available in python-2.2.2 and later
from email.Message import Message
+from email.Utils import formatdate
from email.MIMEText import MIMEText
try:
from email.MIMEMultipart import MIMEMultipart
@@ -254,6 +255,7 @@
m = Message()
m.set_payload(text)
+ m['Date'] = formatdate(localtime=True)
m['Subject'] = self.subject % { 'result': res,
'builder': name,
}
More information about the Commits
mailing list