简体   繁体   English

如何针对以下内容使用“匹配正则表达式”过滤cpanel中的电子邮件?

[英]How do I filter email in cpanel using 'match regex' for the following?

I'm looking to filter the following emails in cpanel via regex. 我想通过正则表达式在cpanel中过滤以下电子邮件。

Buy New Furniture < spamword 234@ryrtyhd.net> 购买新家具< spamword 234@ryrtyhd.net>

Win Jackpot < spamword 5346@dfsdfs.com> 赢大奖< spamword 5346@dfsdfs.com>

< spamword 678@fdgsaj.com> < spamword 678@fdgsaj.com>

So basically i want to filter an email if it matches the following in the email header. 所以基本上我想过滤电子邮件,如果它与电子邮件标题中的以下内容匹配。

From: any name here, present or absent <spamword(any numbers from 0-9999)@anydomain.extension

Any ideas? 有任何想法吗? Help appreciated! 帮助赞赏!

.*\<spamword[0-9]{1,6}\@.+\>$

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM