On 2022-12-15 at 07:03:25 UTC-0500 (Thu, 15 Dec 2022 12:03:25 +0000 (UTC))
Pedro David Marco via users <pedrod_ma...@yahoo.com>
is rumored to have said:

HI,
Situation:i have 2 twin servers running exactly the same OS, and SA. (3.4.4)
i have an email with the word 'dog' inside.
i have this rule:      body    __ANIMALS    /cat|mouse|bird|dog/i

Problem:Rule  __ANIMALS  its in one server, but in the other one, does not!

i have noticed that if i switch the rule words order, like this:

  body    __ANIMALS    /cat|mouse|dog|bird/i

and 'dog' is not the latest word, then it hits on both servers.

I have tried many permutations and it only fails with the word that appears the last in regular expressions with multiple OR
Has anyone seed this before? is that a known bug?  

This is absolutely NOT a known bug. I'm not sure how it is possible for something so fundamental to still be lurking in SA undiscovered. I don't think the basic parsing of REs in rules has changed since v2.

It would help a great deal if you could open a bug at https://bz.apache.org/SpamAssassin/ with sample messages that are hit or not by different variants of the rule.




Thanks...

Pete.


--
Bill Cole
b...@scconsult.com or billc...@apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Not Currently Available For Hire

Reply via email to