Този сайт ще има ограничена функционалност, докато се извършва тече неговата поддръжка. Ако дадена статия не може реши проблема ви и искате да зададете въпрос, нашата общност е готова да ви помогне на @firefox в Twitter и /r/firefox в Reddit.

Търсене в помощните статии

Избягвайте измамите при поддръжката. Никога няма да ви помолим да се обадите или изпратите SMS на телефонен номер или да споделите лична информация. Моля, докладвайте подозрителна активност на "Докладване за злоупотреба".

Научете повече

I want to set a message filter 'to contains' and multiple OR conditions on the body of the text

  • 4 отговора
  • 1 има този проблем
  • 1 изглед
  • Последен отговор от CWeinhofer

more options

I want to set a message filter with the following conditions:

to > name@mycompany.com body contains > 'money' OR 'profit' (etc)

The reason is that the body text frequently changes so I need to identify it by having one of several possible terms that is often found in the body of the text. That is, in one message it may include the word 'money', in the next message it may say 'profit'

to contains 'name@mycompany.com' AND body contains ('money' OR 'profit')

Currently, I can only choose to include 'any one of the conditions' or 'all of the conditions' This is not sufficient because I need to check for the 'to condition' AND at least one of the body conditions


I tried using OR, || for the additional conditions and it does not work

Thanks

I want to set a message filter with the following conditions: to > name@mycompany.com body contains > 'money' OR 'profit' (etc) The reason is that the body text frequently changes so I need to identify it by having one of several possible terms that is often found in the body of the text. That is, in one message it may include the word 'money', in the next message it may say 'profit' to contains 'name@mycompany.com' AND body contains ('money' OR 'profit') Currently, I can only choose to include 'any one of the conditions' or 'all of the conditions' This is not sufficient because I need to check for the 'to condition' AND at least one of the body conditions I tried using OR, || for the additional conditions and it does not work Thanks

Всички отговори (4)

more options

I suggest using two filters, one with from and money, and one with from and profit.

more options

I considered using two filters, however there are more than two words or phrases in the body text that I want to check for. As you probably know, spammers are notorious at changing the body text to avoid filters

It seems to me it would be useful to provide way to enter multiple AND or OR conditions for any particular field

Променено на от wasskand

more options

Hello

I don't see why you are trying to create a handcrafted antispam while the software includes a much more advanced solution (Junk Mail Controls).

more options

I would second the need for this. I don't know if the OP is "trying to create a handcrafted antispam", but there are lots of other legitimate use cases.

For example I need to filter messages from a forum where I want general admin notices to go to a folder, but PMs to go to my inbox. Unfortunately, they all come from the same address and the only way to differentiate is by subject line -- but there are about a dozen different subject lines for the admin notices.

I've been using this add-on for a while now (https://addons.thunderbird.net/en-us/thunderbird/addon/expression-search-ng/) and it seems like the dev is working on adding RegEx functionality to the message filters. If anyone is interested, you can find out more and support the effort at https://github.com/opto/Expression-Search-NG