send_email: Add function to generate tokenized noreply in FromAddress.

This commit is contained in:
Vishnu Ks
2018-06-08 09:06:18 +00:00
committed by Tim Abbott
parent 66dead7fee
commit 74351fb250
4 changed files with 18 additions and 0 deletions

View File

@@ -104,6 +104,7 @@ class ZulipTestCase(TestCase):
'''
DEFAULT_SUBDOMAIN = "zulip"
DEFAULT_REALM = Realm.objects.get(string_id='zulip')
TOKENIZED_NOREPLY_REGEX = settings.TOKENIZED_NOREPLY_EMAIL_ADDRESS.format(token="[a-z0-9_]{24}")
def set_http_host(self, kwargs: Dict[str, Any]) -> None:
if 'subdomain' in kwargs: