On Tuesday 26 August 2008 10:09:37 mouss wrote:
> dms dms wrote:
> > Hello all,
> > I searched high and low but could not find anywhere that says the
> > following rule patten is invalid or not allowed in SpamAssassin 3.2.5 on
> > CentOS 5.1 However it works with non-zero numbers... Thoughts? and TIA
> >
> > header LOCAL_TESTHEADER TESTHEADER =~ /^0$/
> > score LOCAL_TESTHEADER 1000
> >
> > message:
> > TESTHEADER: 0
> > From:blah@example.com
> > To: blah1@example.com
> > Subject: This is a TESTHEADER: 0 test
> >
> > blahblah blah
>
> looks like a bug to me. "0" is matched and returned, then the string "0"
> is confused with 0=FALSE.
>
> Using 1 instead of 0 works! also, using /0$/ and putting "foo0" in the
> header.
It is a bug, also present in the current CVS 3.3 trunk.
It is also a bug or the same nature that a message:
From:blah
@example.com
To: blah1@example.com
Subject: 0
blahblah blah
hits a MISSING_SUBJECT rule.
Please open up a bug report.
Mark