summary refs log tree commit diff
path: root/synapse/config
diff options
context:
space:
mode:
authorMathieu Velten <matmaul@gmail.com>2023-12-12 11:28:56 +0100
committerGitHub <noreply@github.com>2023-12-12 10:28:56 +0000
commit9f6c64482535db0d0bc265a2d7d21ce4d618dd45 (patch)
tree675ebb54c2d8ac1731f937516c87f152102b0950 /synapse/config
parentBump isort from 5.13.0 to 5.13.1 (#16752) (diff)
downloadsynapse-9f6c64482535db0d0bc265a2d7d21ce4d618dd45.tar.xz
Add config to change the delay before sending a notification email (#16696)
Diffstat (limited to 'synapse/config')
-rw-r--r--synapse/config/emailconfig.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/config/emailconfig.py b/synapse/config/emailconfig.py

index a3af35b7c4..e33791fab9 100644 --- a/synapse/config/emailconfig.py +++ b/synapse/config/emailconfig.py
@@ -294,6 +294,11 @@ class EmailConfig(Config): self.email_riot_base_url = email_config.get( "client_base_url", email_config.get("riot_base_url", None) ) + # The amount of time we always wait before ever emailing about a notification + # (to give the user a chance to respond to other push or notice the window) + self.notif_delay_before_mail_ms = Config.parse_duration( + email_config.get("notif_delay_before_mail", "10m") + ) if self.root.account_validity.account_validity_renew_by_email_enabled: expiry_template_html = email_config.get(