Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Pesquisar no site de suporte

Evite golpes de suporte. Nunca pedimos que você ligue ou envie uma mensagem de texto para um número de telefone, ou compartilhe informações pessoais. Denuncie atividades suspeitas usando a opção “Denunciar abuso”.

Saiba mais

Esta discussão foi arquivada. Faça uma nova pergunta se precisa de ajuda.

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

  • 4 respostas
  • 1 tem este problema
  • 1 exibição
  • Última resposta de 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

Todas as respostas (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

Alterado por wasskand em

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