zulip/zerver/views
Cyril Pletinckx e4ff372fc3 emails: Transform SMTPException into EmailNotDeliveredException.
Django's default SMTP implementation can raise various exceptions
when trying to send an email. In order to allow Zulip calling code
to catch fewer exceptions to handle any cause of "email not
sent", we translate most of them into EmailNotDeliveredException.
The non-translated exceptions concern the connection with the
SMTP server. They were not merged with the rest to keep some
details about the nature of these.

Tests are implemented in the test_send_email.py module.
2021-05-05 20:16:11 -07:00
..
development dev_login: Show 'shiva' in a separate Moderators section. 2021-04-26 17:14:06 -07:00
__init__.py views: Rename __init__.py to zerver.views.registration. 2017-01-08 16:21:15 -08:00
alert_words.py request: Rename validator parameter of REQ to json_validator. 2021-04-07 14:13:06 -07:00
archive.py archive: Use access_web_public_stream helper. 2021-04-14 12:37:34 -07:00
attachments.py python: Reformat with Black, except quotes. 2021-02-12 13:11:19 -08:00
auth.py docs: Add missing space to compound verbs “log in”, “set up”, etc. 2021-04-26 09:31:08 -07:00
camo.py python: Convert deprecated Django ugettext alias to gettext. 2021-04-15 18:01:34 -07:00
compatibility.py python: Convert deprecated Django ugettext alias to gettext. 2021-04-15 18:01:34 -07:00
custom_profile_fields.py python: Convert deprecated Django ugettext alias to gettext. 2021-04-15 18:01:34 -07:00
digest.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
documentation.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
drafts.py python: Convert deprecated Django ugettext alias to gettext. 2021-04-15 18:01:34 -07:00
email_mirror.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
events_register.py mypy: Don’t use Iterable for values iterated multiple times. 2021-04-29 16:06:17 -07:00
home.py compose: Move to hbs file and append it to DOM on init. 2021-04-19 16:53:30 -07:00
hotspots.py python: Convert deprecated Django ugettext alias to gettext. 2021-04-15 18:01:34 -07:00
invite.py invites: Allow user to be invited as a moderator. 2021-04-30 15:57:09 -07:00
message_edit.py widgets: Prevent edits to widgets. 2021-04-30 09:55:25 -07:00
message_fetch.py models: Replace __id syntax with _id where possible. 2021-04-22 14:53:00 -07:00
message_flags.py python: Convert deprecated Django ugettext alias to gettext. 2021-04-15 18:01:34 -07:00
message_send.py python: Convert deprecated Django ugettext alias to gettext. 2021-04-15 18:01:34 -07:00
muting.py python: Convert deprecated Django ugettext alias to gettext. 2021-04-15 18:01:34 -07:00
portico.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
presence.py python: Convert deprecated Django ugettext alias to gettext. 2021-04-15 18:01:34 -07:00
push_notifications.py python: Convert deprecated Django ugettext alias to gettext. 2021-04-15 18:01:34 -07:00
reactions.py reactions: Extract check_add_reaction from add_reaction. 2021-04-28 09:11:08 -07:00
realm_domains.py python: Convert deprecated Django ugettext alias to gettext. 2021-04-15 18:01:34 -07:00
realm_emoji.py python: Convert deprecated Django ugettext alias to gettext. 2021-04-15 18:01:34 -07:00
realm_export.py python: Convert deprecated Django ugettext alias to gettext. 2021-04-15 18:01:34 -07:00
realm_icon.py python: Convert deprecated Django ugettext alias to gettext. 2021-04-15 18:01:34 -07:00
realm_linkifiers.py linkifiers: Add an API to support the editing of linkifier. 2021-04-19 18:01:45 -07:00
realm_logo.py python: Convert deprecated Django ugettext alias to gettext. 2021-04-15 18:01:34 -07:00
realm_playgrounds.py docs: Capitalize “Markdown” consistently. 2021-04-26 09:31:08 -07:00
realm.py settings: Add new setting for controlling who can move msgs to stream. 2021-04-16 15:10:39 -07:00
registration.py emails: Transform SMTPException into EmailNotDeliveredException. 2021-05-05 20:16:11 -07:00
report.py request: Rename validator parameter of REQ to json_validator. 2021-04-07 14:13:06 -07:00
storage.py storage: Fix get_storage and remove_storage with empty keys list. 2021-04-13 08:53:03 -07:00
streams.py mypy: Don’t use Iterable for values iterated multiple times. 2021-04-29 16:06:17 -07:00
submessage.py python: Convert deprecated Django ugettext alias to gettext. 2021-04-15 18:01:34 -07:00
thumbnail.py python: Convert deprecated Django ugettext alias to gettext. 2021-04-15 18:01:34 -07:00
tutorial.py request: Rename validator parameter of REQ to json_validator. 2021-04-07 14:13:06 -07:00
typing.py typing: Support sending stream/topic typing status. 2021-04-27 20:52:21 -07:00
unsubscribe.py unsubscribe: Configure as csrf_exempt. 2021-04-28 15:33:32 -07:00
upload.py python: Convert deprecated Django ugettext alias to gettext. 2021-04-15 18:01:34 -07:00
user_groups.py python: Convert deprecated Django ugettext alias to gettext. 2021-04-15 18:01:34 -07:00
user_settings.py emails: Add unsubscribe link infrastructure for marketing emails. 2021-04-27 21:36:09 -07:00
users.py python: Convert deprecated Django ugettext alias to gettext. 2021-04-15 18:01:34 -07:00
video_calls.py python: Convert deprecated Django ugettext alias to gettext. 2021-04-15 18:01:34 -07:00
zephyr.py docs: Add missing space to compound verbs “log in”, “set up”, etc. 2021-04-26 09:31:08 -07:00