summary refs log tree commit diff
path: root/synapse/push/mailer.py
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2016-05-04 14:52:10 +0100
committerDavid Baker <dave@matrix.org>2016-05-04 14:52:10 +0100
commit9ef05a12c380a6a5a45226d6086d70512fd4f073 (patch)
treee7a0b462714f6f9eb078b2f858075d8ffebff35c /synapse/push/mailer.py
parentCorrect SQL statement for postgres (diff)
downloadsynapse-9ef05a12c380a6a5a45226d6086d70512fd4f073.tar.xz
Add date header & message id
Diffstat (limited to 'synapse/push/mailer.py')
-rw-r--r--synapse/push/mailer.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/push/mailer.py b/synapse/push/mailer.py
index 1e6654e2bb..037bc990d0 100644
--- a/synapse/push/mailer.py
+++ b/synapse/push/mailer.py
@@ -152,6 +152,8 @@ class Mailer(object):
         multipart_msg['Subject'] = "New Matrix Notifications"
         multipart_msg['From'] = self.hs.config.email_notif_from
         multipart_msg['To'] = email_address
+        multipart_msg['Date'] = email.utils.formatdate()
+        multipart_msg['Message-ID'] = email.utils.make_msgid()
         multipart_msg.attach(text_part)
         multipart_msg.attach(html_part)