[英]Exchange 2013 Mail flow rule using RegEx
We're trying to implement a rule on certain mailboxes that it shouldn't accept an email without a subject. 我们正在尝试在某些邮箱上实施一条规则,该规则不接受没有主题的电子邮件。
I found documentation from Microsoft on exchange 2010 to Configure a Transport Rule for Messages That Have a Blank Subject , but I tried using the ^$
RegEx with Exchange 2013 and it doesn't seem to work. 我在Exchange 2010上找到了Microsoft的文档, 以为主题为空的邮件配置传输规则 ,但是我尝试将
^$
RegEx与Exchange 2013结合使用,但似乎不起作用。
I also looked at the Transport Rule Predicates for Exchange 2013 and it clearly says that SubjectMatchesPatterns matches messages where text patterns in the Subject field match a specified regular expression
. 我还查看了Exchange 2013的传输规则谓词 ,它清楚地表明
SubjectMatchesPatterns matches messages where text patterns in the Subject field match a specified regular expression
。
My workaround was to reject all messages to those specific mailboxes except if subject pattern matches .
我的解决方法是拒绝所有发送到那些特定邮箱的邮件,除非主题模式匹配
.
but if I want to add now conditions ie. 但是,如果我想现在添加条件,即。 to reject emails with a subject "Sent from my snipping tool" I can't do it.
拒绝主题为“从我的截图工具发送”的电子邮件,我做不到。
I found Here that Exchange 2013 now supports extended RegEx but I didn't find that the syntax for ^$
should be any different in extended RegEx. 我在这里发现Exchange 2013现在支持扩展的RegEx,但是我没有发现
^$
的语法在扩展的RegEx中应该有所不同。
\\s+
匹配空格,也许尝试一下。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.