为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Need better understanding of the use of Regex in spam filters

  • 2 个回答
  • 0 人有此问题
  • 1 次查看
  • 最后回复者为 Thomas

more options

I have had mixed results with Thunderbird's spam filters. First, even though I have a Personal Address book filter as follows: From -> is in my address book -> Personal Address Book

  Set Junk Status to -> Not Junk
  Move Message to -> Inbox
  Stop Filter Execution

at the top of my filter list, some items get set to the spam folder anyway. Not sure why this happens.

But the problem I am writing about today is spammers who will modify their subject headers to penetrate simple filters, as follows: Subject -> contains -> Re: Take Advantage of this Offer

  Delete Message

The spammer is beating my filter by munging the wording, for example TakeAdvantage-of-this, Offer

So I tried changing it to: Subject Regex Match -> matches -> Take[:print:]*Advantage[:print:]*of[:print:]*this[:print:]*Offer

  <also tried>

Subject Regex Match -> matches -> Take.*Advantage.*of.*this.*Offer

but neither seems to work. If Vanna is available, I'd like to buy a clue.

I have had mixed results with Thunderbird's spam filters. First, even though I have a Personal Address book filter as follows: From -> is in my address book -> Personal Address Book Set Junk Status to -> Not Junk Move Message to -> Inbox Stop Filter Execution at the top of my filter list, some items get set to the spam folder anyway. Not sure why this happens. But the problem I am writing about today is spammers who will modify their subject headers to penetrate simple filters, as follows: Subject -> contains -> Re: Take Advantage of this Offer Delete Message The spammer is beating my filter by munging the wording, for example TakeAdvantage-of-this, Offer So I tried changing it to: Subject Regex Match -> matches -> Take[:print:]*Advantage[:print:]*of[:print:]*this[:print:]*Offer <also tried> Subject Regex Match -> matches -> Take.*Advantage.*of.*this.*Offer but neither seems to work. If Vanna is available, I'd like to buy a clue.

被采纳的解决方案

Lets back up to the beginning.

If you are using IMAP, then some mail is most likely placed as SPAM using server side filtering This is especially so for those using Yahoo based products as they have no way to opt out of their spam filtering on your behalf.

Then we have regex. That is a feature supplied by the Filtaquilla add-on https://addons.thunderbird.net/en-US/thunderbird/addon/filtaquilla/ and as such is not something supported from here. Regular expressions (regex) are a powerful coding tool for searching and matching text to a pattern, but the learning curve is fairly steep. It is not one I have chosen to climb. I suggest you try something like a google search on "regex match" or a site like this https://www.regular-expressions.info/quickstart.html If you are new to regex searching it will take a while. This is not quite wildcards as you might expect.

The hope page for the addon https://quickfilters.quickfolders.org/filtaquilla.html indicates that "Since this code is done using Mozilla javascript, regular expressions should use the Mozilla regex syntax" it also points to the MDN site for reference to regex and to reges101.com to test your regex.

Home that is enough breadcrumbs. .

定位到答案原位置 👍 0

所有回复 (2)

more options

选择的解决方案

Lets back up to the beginning.

If you are using IMAP, then some mail is most likely placed as SPAM using server side filtering This is especially so for those using Yahoo based products as they have no way to opt out of their spam filtering on your behalf.

Then we have regex. That is a feature supplied by the Filtaquilla add-on https://addons.thunderbird.net/en-US/thunderbird/addon/filtaquilla/ and as such is not something supported from here. Regular expressions (regex) are a powerful coding tool for searching and matching text to a pattern, but the learning curve is fairly steep. It is not one I have chosen to climb. I suggest you try something like a google search on "regex match" or a site like this https://www.regular-expressions.info/quickstart.html If you are new to regex searching it will take a while. This is not quite wildcards as you might expect.

The hope page for the addon https://quickfilters.quickfolders.org/filtaquilla.html indicates that "Since this code is done using Mozilla javascript, regular expressions should use the Mozilla regex syntax" it also points to the MDN site for reference to regex and to reges101.com to test your regex.

Home that is enough breadcrumbs. .

由Matt于修改

more options

Thanks, Matt, that is more than enough breadcrumbs. I don't remember installing filtaquilla, but it's possible I was testing quickfilters, forgot about it, and it morphed into filtaquilla. (Website seems to be for both, which itself is confusing.)

Hotmail is the one I have been having trouble with. I wouldn't have bet Micro$oft's spam filtering was effective.

I'm quite experienced with regex, using it with PERL for many years. That was what had me confused. The expressions I tested should have been present in any implementation of regex. Surprised me when they had no effect.

More research needed. Thanks for the breadcrumbs.

由Thomas于修改