summary refs log tree commit diff
path: root/synapse/config
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2016-05-10 14:34:53 +0200
committerDavid Baker <dave@matrix.org>2016-05-10 14:34:53 +0200
commit94040b0798a7e4db88e75485906fd8a2b31b117c (patch)
tree887f103418bd59e35ad35826b57624f1c0b69ce8 /synapse/config
parentMake pep8 happy (diff)
downloadsynapse-94040b0798a7e4db88e75485906fd8a2b31b117c.tar.xz
Add config option to not send email notifs for new users
Diffstat (limited to 'synapse/config')
-rw-r--r--synapse/config/emailconfig.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/config/emailconfig.py b/synapse/config/emailconfig.py
index d6f4f83a14..b239619c9e 100644
--- a/synapse/config/emailconfig.py
+++ b/synapse/config/emailconfig.py
@@ -65,6 +65,9 @@ class EmailConfig(Config):
             self.email_template_dir = email_config["template_dir"]
             self.email_notif_template_html = email_config["notif_template_html"]
             self.email_notif_template_text = email_config["notif_template_text"]
+            self.email_notifs_for_new_users = email_config.get(
+                "notif_for_new_users", True
+            )
             if "app_name" in email_config:
                 self.email_app_name = email_config["app_name"]
             else:
@@ -91,4 +94,5 @@ class EmailConfig(Config):
         #   template_dir: res/templates
         #   notif_template_html: notif_mail.html
         #   notif_template_text: notif_mail.txt
+        #   notif_for_new_users: True
         """