Loading...

dev@spamassassin.apache.org

[Prev] Thread [Next]  |  [Prev] Date [Next]

[Bug 6143] Rule2XSBody segfaults due to rule containing NUL chars bugzilla-daemon Thu Jul 23 18:00:27 2009

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





--- Comment #42 from Sidney Markowitz <[EMAIL PROTECTED]>  2009-07-23 17:25:09 
PST ---
(in reply to comment #39)

The zoom debug shows the correct results like you got, but see what the rule
hits look like for the rules that are compiled:

First, without compiled rules:

$ ~/tmp/bug6143/bin/spamassassin --debug -Lt < sample-spam.txt 2>&1 | tail -n 5
---- ---------------------- --------------------------------------------------
-0.0 NO_RELAYS              Informational: message was not relayed via SMTP
1000 GTUBE                  BODY: Generic Test for Unsolicited Bulk Email
-0.0 NO_RECEIVED            Informational: message has no Received headers

Now with compiled rules:

$ echo 'loadplugin Mail::SpamAssassin::Plugin::Rule2XSBody' >>
~/tmp/bug6143/etc/mail/spamassassin/v320.pre 

$ ~/tmp/bug6143/bin/spamassassin --debug -Lt < sample-spam.txt 2>&1 | grep -i
zoom[10074] dbg: zoom: loading compiled ruleset from
/Users/sidney/tmp/bug6143/var/spamassassin/compiled/5.008/3.003000
[10074] dbg: zoom: using compiled ruleset in
/Users/sidney/tmp/bug6143/var/spamassassin/compiled/5.008/3.003000/Mail/SpamAssassin/CompiledRegexps/body_0.pm
for Mail::SpamAssassin::CompiledRegexps::body_0
[10074] dbg: zoom: able to use 836/836 'body_0' compiled rules (100%)

$ ~/tmp/bug6143/bin/spamassassin --debug -Lt < sample-spam.txt 2>&1 | tail -n 5
pts rule name              description
---- ---------------------- --------------------------------------------------
-0.0 NO_RELAYS              Informational: message was not relayed via SMTP
-0.0 NO_RECEIVED            Informational: message has no Received headers

$

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