zulip/zulip

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

Open

#19,655 建立於 2021年9月1日

在 GitHub 查看
 (8 留言) (0 反應) (0 負責人)Python (19,672 star) (7,339 fork)batch import
area: emailsarea: markdown (mentions)bughelp wanted

描述

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.

貢獻者指南