You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2017/09/29 17:52:41 UTC

[4/6] allura git commit: Include Date header in email, instead of assuming mail service will add it

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/9838d015
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/9838d015
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/9838d015

Branch: refs/heads/db/docker-prod
Commit: 9838d01592f6adcbf042da67fbabfb50d827f876
Parents: 4a2a8b0
Author: Dave Brondsema <da...@brondsema.net>
Authored: Tue Aug 22 22:59:28 2017 -0400
Committer: Dave Brondsema <da...@brondsema.net>
Committed: Fri Sep 29 12:28:02 2017 -0400

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


http://git-wip-us.apache.org/repos/asf/allura/blob/9838d015/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: