【问题标题】:Exchange 2013 Mail flow rule using RegEx使用 RegEx 的 Exchange 2013 邮件流规则
【发布时间】:2023-03-24 22:32:01
【问题描述】:

我们正在尝试对某些邮箱实施一条规则,即它不应接受没有主题的电子邮件。

我在 Exchange 2010 上找到了 Microsoft 的文档到 Configure a Transport Rule for Messages That Have a Blank Subject,但我尝试将 ^$ RegEx 与 Exchange 2013 一起使用,但它似乎不起作用。

我还查看了 Exchange 2013 的 Transport Rule Predicates,它清楚地表明 SubjectMatchesPatterns matches messages where text patterns in the Subject field match a specified regular expression

我的解决方法是拒绝发送到这些特定邮箱的所有邮件,除非主题模式与. 匹配,但如果我想添加现在条件,即。拒绝主题为“从我的截图工具发送”的电子邮件我做不到。

我发现Here Exchange 2013 现在支持扩展 RegEx,但我没有发现 ^$ 的语法在扩展 RegEx 中应该有任何不同。

【问题讨论】:

  • 您知道,serverfault.com 也有很多 Exchange 专家。这是这个网站的姐妹网站。

标签: regex email exchange-server rule


【解决方案1】:

\s+ 匹配空格,不妨试试。

【讨论】:

  • 感谢您的帮助,但仍无法与 Exchange 合作。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2020-10-08
  • 2020-03-25
  • 2022-07-25
  • 1970-01-01
  • 2022-08-10
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多