You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2004/09/27 05:44:48 UTC
[Bug 3825] New: Unescaped '#' in rawbody causes havoc
http://bugzilla.spamassassin.org/show_bug.cgi?id=3825
Summary: Unescaped '#' in rawbody causes havoc
Product: Spamassassin
Version: 3.0.0
Platform: Sun
OS/Version: Solaris
Status: NEW
Severity: normal
Priority: P5
Component: spamassassin
AssignedTo: dev@spamassassin.apache.org
ReportedBy: bugzilla-spamassassin-org-reg@f2.org
A rawbody rule with an unescaped '#' causes other rawbody
rules matching non-empty patterns to fail, and rawbody rules
matching an empty body to succeed.
The documentation at
http://spamassassin.apache.org/full/3.0.x/dist/doc/Mail_SpamAssassin_Conf.html
says rawbody takes a "Perl regular expression". In a normal Perl re,
the '#' character doesn't have to be escaped.
Could someone clarify whether this is a bug, or if the documentation
should carry a warning about esacaping the '#' in a regular expression
OS: Running on Solaris 9
$ spamassassin -V
SpamAssassin version 3.0.0
running on Perl version 5.8.3
------------- user_prefs file ---------
rawbody HAS_RED_BODY_BG /body bgcolor=["']#fffff/i
score HAS_RED_BODY_BG 0
# Normal 'no-body' test -- usually triggers when body
# is empty. Is falsely triggered when the rule above
# (a rawbody with unescaped '#' in the pattern) is present.
rawbody __TM2_NO_BODY_DATA /\S/
meta NO_BODY !__TM2_NO_BODY_DATA
score NO_BODY 0
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.