You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
# %(app)s is replaced with the application's name. To avoid parsing errors, either keep it
# in place, or delete it completely. Docs: https://pyformat.info/#named_placeholders
This would prevent people not familiar with such a Python string formatter (like me …) from mistakes that result in failing e-mail notifications and long debugging :-) For example, setting the option to "Company Name %(app) <[email protected]>" caused this in the log, not precisely helpful to find the error:
2017-06-29 22:36:51,110 - synapse.push.emailpusher - 291 - INFO - - Sending notif email for user u'@user:example.com'
2017-06-29 22:36:51,111 - synapse.push.emailpusher - 134 - ERROR - - Exception processing notifs
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/synapse/push/emailpusher.py", line 132, in _process
yield self._unsafe_process()
ValueError: unsupported format character '<' (0x3c) at index 18
The text was updated successfully, but these errors were encountered:
Currently, the default value for the
notif_from
config parameter looks like this (see emailconfig.py line 114):I propose to add a comment right above it:
This would prevent people not familiar with such a Python string formatter (like me …) from mistakes that result in failing e-mail notifications and long debugging :-) For example, setting the option to
"Company Name %(app) <[email protected]>"
caused this in the log, not precisely helpful to find the error:The text was updated successfully, but these errors were encountered: