Den här webbplatsen har begränsad funktionalitet medan vi utför underhåll för att förbättra din upplevelse. Om en artikel inte löser ditt problem och du vill ställa en fråga har vi vår gemenskap som väntar på att hjälpa dig på @FirefoxSupport på Twitter, /r/firefox på Reddit.

Sök i support

Akta dig för supportbedrägerier: Vi kommer aldrig att be dig att ringa eller skicka ett sms till ett telefonnummer eller dela personlig information. Rapportera misstänkt aktivitet med alternativet "Rapportera missbruk".

Läs mer

Need better understanding of the use of Regex in spam filters

  • 2 svar
  • 0 har detta problem
  • 1 visning
  • Senaste svar av 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.

Vald lösning

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. .

Läs svaret i sitt sammanhang 👍 0

Alla svar (2)

more options

Vald lösning

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. .

Ändrad av 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.

Ändrad av Thomas