allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kentontay...@apache.org
Subject [4/6] allura git commit: Include Date header in email, instead of assuming mail service will add it
Date Mon, 30 Oct 2017 14:42:59 GMT
Include Date header in email, instead of assuming mail service will add it


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/2529a31b
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/2529a31b
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/2529a31b

Branch: refs/heads/master
Commit: 2529a31b8a941fb94910896ab198eeb19f399229
Parents: 1c57792
Author: Dave Brondsema <dave@brondsema.net>
Authored: Tue Aug 22 22:59:28 2017 -0400
Committer: Kenton Taylor <ktaylor@slashdotmedia.com>
Committed: Mon Oct 30 10:42:32 2017 -0400

----------------------------------------------------------------------
 Allura/allura/lib/mail_util.py | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/2529a31b/Allura/allura/lib/mail_util.py
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/mail_util.py b/Allura/allura/lib/mail_util.py
index 68a9649..211d4e6 100644
--- a/Allura/allura/lib/mail_util.py
+++ b/Allura/allura/lib/mail_util.py
@@ -232,6 +232,7 @@ class SMTPClient(object):
         message['Reply-To'] = AddrHeader(reply_to)
         message['Subject'] = Header(subject)
         message['Message-ID'] = Header('<' + message_id + u'>')
+        message['Date'] = email.utils.formatdate()
         if sender:
             message['Sender'] = AddrHeader(sender)
         if cc:


Mime
View raw message