http://bugzilla.spamassassin.org/show_bug.cgi?id=4524

           Summary: broken header rule causes parser error
           Product: Spamassassin
           Version: 3.1.0
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Libraries
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


Some of this code should handle failures better.  For example, check $pat
to make sure it matched before proceeding.  The other errors and similar
code in the parser too.

devel/svn/trunk $ cat >> rules/70_testing.cf
header FOO bar
devel/svn/trunk/masses $ ./mass-check  --file ../sample-nonspam.txt 
Use of uninitialized value in substitution (s///) at
/usr/home/quinlan/devel/svn/trunk/masses/../lib/Mail/SpamAssassin/Conf/Parser.pm
line 791.
Use of uninitialized value in pattern match (m//) at
/usr/home/quinlan/devel/svn/trunk/masses/../lib/Mail/SpamAssassin/Conf/Parser.pm
line 864.
Use of uninitialized value in concatenation (.) or string at
/usr/home/quinlan/devel/svn/trunk/masses/../lib/Mail/SpamAssassin/Conf/Parser.pm
line 865.
config: invalid regexp for rule FOO: : missing or invalid delimiters



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to