Join us and the lead editor of IRL, Mozilla's multi-award-winning podcast, for a behind-the-scenes look at the pod and to contribute your ideas for the next season, themed: "AI and ME." Mark your calendar and join our Community Call on Wednesday, Aug 7, 17:00–17:45 UTC. See you there!

ค้นหาฝ่ายสนับสนุน

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

เรียนรู้เพิ่มเติม

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