Цей вебсайт матиме обмежену функціональність, доки ми проводимо його обслуговування для поліпшення роботи. Якщо прочитана стаття не розв'язала вашу проблему і ви хочете поставити питання, наша спільнота підтримки з радістю допоможе вам на @FirefoxSupport у Twitter та /r/firefox на Reddit.

Шукати в статтях підтримки

Остерігайтеся нападів зловмисників. Mozilla ніколи не просить вас зателефонувати, надіслати номер телефону у повідомленні або поділитися з кимось особистими даними. Будь ласка, повідомте про підозрілі дії за допомогою меню “Повідомити про зловживання”

Докладніше

Ця тема перенесена в архів. Якщо вам потрібна допомога, запитайте.

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