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


Mark Martinec <[EMAIL PROTECTED]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WORKSFORME                  |




--- Comment #13 from Mark Martinec <[EMAIL PROTECTED]>  2008-10-13 08:27:06 PST 
---
Reopening a bug based on new evidence from a mailing list, topic
"spam score not counted correctly", problem report by Benedict Verheyen.

from Mark:

> Please try the following patch (to 3.2.5).
> It should produce a warning on stderr when some plugin
> would attempt to add a NaN to score:

> That's puzzling for me too. I far as I can tell, a NaN can only happen
> as a result of floating point arithmetics (like: (-3)**0.5 ), or when
> directly specified in Perl code, e.g. $a = NaN;  I don't think is can
> result from simple string conversions and the like.
>
> Catching which rule or pluging is trying to add it would help narrowing
> down the cause. I hope all score additions go through the now instrumented
> subroutine, otherwise someone more knowledgable in SA internals may
> indicate what additional code paths should add a test for a NaN.

Benedict writes:

> I patched the score part as indicated in Mark's mail and when i run
> spamassassin in debug mode, i do see a message popping up with results
> to a NaN score:
> [6443] warn: !!!!!!!! rules: score 'nan' for rule 'AWL' in 'AWL: '
> 'From: address is in the auto white-list' at /usr/share/perl5/Mail/
>    SpamAssassin/PerMsgStatus.pm line 2146.
>
> The message is now correctly marked as spam and no nan reference
> is printed in the spam report (in debug mode that is)
>
> When i run spamassassin with the lint option, no errors pop up,
> only this message:
> warn: Character in 'C' format wrapped in pack at
> /usr/share/perl5/Mail/SpamAssassin/Util.pm line 800.
> If i edit Util.pm and change the sub my_inet_aton function (more
> specific C4 to U4) i don't get that warning. But testing revealed
> that it doesn't influence the scoring/nan.
>
> As for custom rules, i reinstalled spamassassin (with purge option in
> debian it should be removing all dirs as well) and i'm not using any
> custom rules in my /etc/spamassassin/local.cf.
> I do however alter scores (started because of the nan's influencing
> the scores) in my local.cf


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

Reply via email to