summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2016-06-03 16:38:39 +0100
committerDavid Baker <dave@matrix.org>2016-06-03 16:38:39 +0100
commitfbf608decbf85051379dc24446b1b6e89ff97e8c (patch)
treebabd5513e3f7536e1b361a00200dff97334cbf55
parentAdd substitutions to email notif From (diff)
downloadsynapse-fbf608decbf85051379dc24446b1b6e89ff97e8c.tar.xz
Oops, we're using the dict form
-rw-r--r--synapse/push/mailer.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/push/mailer.py b/synapse/push/mailer.py
index 933a53fc3e..011bc4d2b1 100644
--- a/synapse/push/mailer.py
+++ b/synapse/push/mailer.py
@@ -186,7 +186,9 @@ class Mailer(object):
 
         multipart_msg = MIMEMultipart('alternative')
         multipart_msg['Subject'] = "[%s] %s" % (self.app_name, summary_text)
-        multipart_msg['From'] = self.hs.config.email_notif_from % (self.app_name, )
+        multipart_msg['From'] = self.hs.config.email_notif_from % {
+            "app": self.app_name
+        }
         multipart_msg['To'] = email_address
         multipart_msg['Date'] = email.utils.formatdate()
         multipart_msg['Message-ID'] = email.utils.make_msgid()