Using the Contains Clause in Block or Allow

Is it possible to have one block/allow rule containing multiple words or phrases? For example, a block rule like "Contains word1, word2, word3, “phrase here”

Thanks.

You could do that with a matches regex rule, but I think it would probably be counterproductive. What is your goal here?

Simplification. One rule for multiple selections vs one rule per exclusionary word or phrase. I’m lazy. :laughing:

You could write a regex like:

(word1|word2|a phrase)

but I recommend separate rules because:

  • You will be able to see in the Log which part matched.
  • You will be able to see in the rules window how effective each word is.
  • If one word turns out to match messages that you didn’t intend, SpamSieve can automatically disable it without affecting the other words.
  • If you use special characters but don’t escape them properly in the regex it won’t work.
1 Like

Thanks for the insights, Michael. Very helpful. :pray: