forked from CGM_Public/pretix_original
Strip [] in mail subject prefix (#950)
This commit is contained in:
committed by
Raphael Michel
parent
0357386f7c
commit
e187005130
@@ -114,6 +114,8 @@ def mail(email: str, subject: str, template: Union[str, LazyI18nString],
|
||||
headers['Reply-To'] = event.settings.contact_mail
|
||||
|
||||
prefix = event.settings.get('mail_prefix')
|
||||
if prefix and prefix.startswith('[') and prefix.endswith(']'):
|
||||
prefix = prefix[1:-1]
|
||||
if prefix:
|
||||
subject = "[%s] %s" % (prefix, subject)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user