zulip/zulip

Forwarding an email containing `@all` to the email gateway drops the email with an error.

Open

#19,655 opened on Sep 1, 2021

View on GitHub
 (8 comments) (0 reactions) (0 assignees)Python (19,672 stars) (7,339 forks)batch import
area: emailsarea: markdown (mentions)bughelp wanted

Description

The email gateway doesn't have permissions to use @all (or @stream or @everyone) and so attempts to send messages containing those characters fails.

We should escape those characters, or at least make this not a logged exception.


Sentry Issue: ZULIP-RZ

JsonableError: You do not have permission to use wildcard mentions in this stream.
  File "zerver/lib/actions.py", line 3396, in _internal_prep_message
    email_gateway=email_gateway,
  File "zerver/lib/actions.py", line 3357, in check_message
    _("You do not have permission to use wildcard mentions in this stream.")

Error queueing internal message by emailgateway@zulip.com: You do not have permission to use wildcard mentions in this stream.

Contributor guide