Guenther wrote: >> Do you use customized headers? (Sorry, don't have the OP, but IIRC I >> spotted some.) What are the results of the snippets in comment 4, and >> what about comment 11? >> > > A question is for Benedict I suppose. > > >> Puzzling, how he gets NaN in the first place. Benedict, did you lint >> your rc files? Did you carefully check all score definitions (possibly >> including user_prefs) for that rule? (Like using a wrong decimal >> separator, or some invisible stray chars.) >> > > 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. > > Mark >
Hi, thanks Mark and Guenther. 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 Is there a way to check if i have custom rules being loaded? Thanks, Benedict