https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6305

Sidney Markowitz <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #9 from Sidney Markowitz <[email protected]> 2010-01-30 05:26:36 
UTC ---
I suspect that it is not differences in their t-bird user-agent causing some
people to not see the rule triggered, but differences in the perl they are
running. I'm seeing the rule not being triggered to and I did the following
experiment.

I created a test message with the following line both in the headers and again
in the body:

User-Agent: Gecko/20100111 Lightning

I then added the following to local.cf:

header TEST_GB1 User-Agent =~ /Gecko\/(?!200\d\d\d\d\d)\d/
describe TEST_GB1       Test header 1
score TEST_GB1 1.0

header TEST_GB2 User-Agent =~ /Gecko\/(?!200\d\d\d\d\d)[0-9]/
describe TEST_GB2       Test header 2
score TEST_GB2 1.0

header TEST_GB3 User-Agent =~ /Gecko\/(?!200\d\d\d\d\d)(\d)/
describe TEST_GB3       Test header 3
score TEST_GB3 1.0

rawbody TEST_GB4        /User-Agent: Gecko\/(?!200\d\d\d\d\d)\d/
describe TEST_GB4       Test rawbody
score TEST_GB4 1.0

body TEST_GB5   /User-Agent: Gecko\/(?!200\d\d\d\d\d)\d/
describe TEST_GB5       Test body
score TEST_GB5 1.0

I then ran spamassassin -t -L on the message and the result was that TEST_GB1
did not hit and all the others did.

I can't explain the results, but notice that the problem only occurs in a
header rule and that it goes away if you change the final \d into either [0-9]
or into (\d)

Any ideas about how this can be true? BTW, I'm running perl 5.8.9 from MacPorts
under Mac OS 10.6.2

-- 
Configure bugmail: 
https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to