Join the Mozilla’s Test Days event from Dec 2–8 to test the new Firefox address bar on Firefox Beta 134 and get a chance to win Mozilla swag vouchers! 🎁

Search Support

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.

Learn More

Message Filter with Except Condition

  • 1 reply
  • 1 has this problem
  • 1 view
  • Last reply by Zenos

more options

I need to write a Filter for incoming emails that automatically moves all the items from a specific sender to a specified folder *except* if a specific word is in the Subject line... in which case I want it to pass the filter and go to the Inbox like a normal piece of email. I have no problem setting up the first part -- Match the following: From contains "X", Move Messages to Folder "Y". But how do I make it say "Except if Z is in the Subject line"?

Thanks!

I need to write a Filter for incoming emails that automatically moves all the items from a specific sender to a specified folder *except* if a specific word is in the Subject line... in which case I want it to pass the filter and go to the Inbox like a normal piece of email. I have no problem setting up the first part -- Match the following: From contains "X", Move Messages to Folder "Y". But how do I make it say "Except if Z is in the Subject line"? Thanks!

Chosen solution

You could create two filters. The first one detects the sender and the "escape" word and does nothing to the message, just halts processing of filters. The second one then can detect the same sender and do the move. The second one runs only when the first filter hasn't triggered.

I'm not sure if I have understood your logic, but you could try:

match all the following

sender is <sender> subject doesn't contain <escape word>

move message to <folder>

..so messages from this sender with the escape word in the subject line won't be moved.

Read this answer in context 👍 2

All Replies (1)

more options

Chosen Solution

You could create two filters. The first one detects the sender and the "escape" word and does nothing to the message, just halts processing of filters. The second one then can detect the same sender and do the move. The second one runs only when the first filter hasn't triggered.

I'm not sure if I have understood your logic, but you could try:

match all the following

sender is <sender> subject doesn't contain <escape word>

move message to <folder>

..so messages from this sender with the escape word in the subject line won't be moved.