zulip/zulip

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

開放

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

 (8 則留言) (0 個反應) (0 位負責人)Python (7,339 個分叉)batch import
area: emailsarea: markdown (mentions)bughelp wanted

倉庫指標

星標
 (19,672 顆星)
PR 合併指標
 (平均合併 36天 6小時) (30 天內合併 110 個 PR)

描述

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.

貢獻者指南