https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6360
Summary: "negative match" on a "0" string
Product: Spamassassin
Version: 3.3.0
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P5
Component: Libraries
AssignedTo: [email protected]
ReportedBy: [email protected]
sub hit_rule_plugin_code currently has code like:
$match = '($' . '&' . '|| "negative match")';
which yields surprising result:
Sample mail:
From: [email protected]
To: [email protected]
Subject: test
Message-ID: <[email protected]>
Date: Fri, 26 Feb 2010 13:19:00 +0100
http://www.example.com:80/
Sample rules:
uri L_HAS_ANY_URI_EIGHTS /8/
uri L_HAS_ANY_URI_ZEROES /0/
score L_HAS_ANY_URI_EIGHTS 0.1
score L_HAS_ANY_URI_ZEROES 0.1
Log:
dbg: rules: ran uri rule L_HAS_ANY_URI_EIGHTS ======> got hit: "8"
dbg: rules: ran uri rule L_HAS_ANY_URI_ZEROES ======> got hit: "negative match"
Another case of a third party string being interpreted as a perl boolean.
I hope this is only a cosmetic flaw.
--
Configure bugmail:
https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.