zulip/zerver
Mateusz Mandera d70e1bcdb7 settings: Add FAKE_EMAIL_DOMAIN setting.
Fixes #9401.

This adds a FAKE_EMAIL_DOMAIN setting, which should be used if
EXTERNAL_HOST is not a valid domain, and something else is needed to
form bot and dummy user emails (if email visibility is turned off).
It defaults to EXTERNAL_HOST.

get_fake_email_domain() should be used to get this value. It validates
that it's correctly set - that it can be used to form valid emails.

If it's not set correctly, an exception is raised. This is the right
approach, because it's undesirable to have the server seemingly
peacefully operating with that setting misconfigured, as that could
mask some hidden sneaky bugs due to UserProfiles with invalid emails,
which would blow up the moment some code that does validate the emails
is called.
2019-08-30 14:59:00 -07:00
..
data_import slack: Remove unnecessary comments. 2019-08-26 14:10:19 -07:00
lib settings: Add FAKE_EMAIL_DOMAIN setting. 2019-08-30 14:59:00 -07:00
management parse_lsb_release: Use /etc/os-release instead of /etc/lsb-release. 2019-08-28 17:53:27 -07:00
migrations models: Migration of UserMessage.id to bigint, part 2. 2019-08-26 21:25:19 -07:00
openapi populate_db: Extract internal realm creation into a function. 2019-08-23 12:57:24 -07:00
templatetags openapi: Pass api_url to curl example generation. 2019-08-17 11:35:08 -07:00
tests settings: Add FAKE_EMAIL_DOMAIN setting. 2019-08-30 14:59:00 -07:00
tornado messages: Add email/push notifications for wildcard mentions. 2019-08-26 14:39:53 -07:00
views settings: Add FAKE_EMAIL_DOMAIN setting. 2019-08-30 14:59:00 -07:00
webhooks integrations: Update instructions for AppFollow. 2019-08-22 13:17:06 -07:00
worker emails: Send invitation reminder email two days before expiry. 2019-08-23 12:53:11 -07:00
__init__.py
apps.py cleanup: Delete leading newlines. 2019-08-06 23:29:11 -07:00
context_processors.py open graph: Uploaded realm icon URL is absolute for some backends. 2019-05-20 13:14:28 -07:00
decorator.py cleanup: Delete leading newlines. 2019-08-06 23:29:11 -07:00
filters.py cleanup: Delete leading newlines. 2019-08-06 23:29:11 -07:00
forms.py cleanup: Delete leading newlines. 2019-08-06 23:29:11 -07:00
logging_handlers.py zerver: Accept HEAD requests wherever GET requests are accepted. 2019-08-12 16:47:41 -07:00
middleware.py middleware: Fix exception typing. 2019-07-31 12:23:20 -07:00
models.py settings: Add FAKE_EMAIL_DOMAIN setting. 2019-08-30 14:59:00 -07:00
signals.py zerver core: Remove unused imports. 2019-02-02 17:41:24 -08:00