diff hgext/notify.py @ 4489:afa1f57ae484

Add sending date to notify message. When using SMTP, no date field was set into the message, which causes it to be displayed as being send on 1st january 1970 on most MUA.
author Mathieu Clabaut <mathieu.clabaut@gmail.com>
date Thu, 24 May 2007 16:32:38 +0200
parents fbf0e9acfd83
children fc20fa9f2dfd 4dfb9f232a63
line wrap: on
line diff
--- a/hgext/notify.py
+++ b/hgext/notify.py
@@ -211,6 +211,8 @@ class notifier(object):
             del msg['From']
             msg['From'] = sender
 
+        msg['Date'] = util.datestr(date=util.makedate(),
+                format="%a, %d %b %Y %H:%M:%S", timezone=True)
         fix_subject()
         fix_sender()