Mark Martinec schreef:
Benedict,
Thing is, what is causing the nan?
My guess is that a NaN somehow got into your AWL database.
I have reopened bug 3364, and attached a richer patch:
"Deal with NaN in AutoWhitelist and PerMsgStatus"
which includes my previous patch and also instruments
AutoWhitelist module to check for NaN on data entering
or leaving a database. It should produce warnings and
ignore such data. Please try it.
Mark
Mark,
i applied the next patch and ran a new debug session.
This is part of the result.
In the logging there is reference to a NaN score that is being ignored
now so that is good.
A few lines later it calculates a new total score (totscore) however
that is "nan"
dbg: auto-whitelist: add_score: new count: 6, new totscore: nan
The endresult is good however as it's flagged as spam.
This is the excerpt from the debug test.
[1467] warn: !!!!!! rules: score 'nan' for rule 'MSOE_MID_WRONG_CASE' in
'' 'MSOE_MID_WRONG_CASE' at
/usr/share/perl5/Mail/SpamAssassin/PerMsgStatus.pm line
2147.
[1467] dbg: check: running tests for priority: 1000
[1467] dbg: rules: running head tests; score so far=7.116
[1467] dbg: rules: compiled head tests
[1467] dbg: config: using "/root/.spamassassin" for user state dir
[1467] dbg: locker: safe_lock: created
/root/.spamassassin/auto-whitelist.mutex
[1467] dbg: locker: safe_lock: trying to get lock on
/root/.spamassassin/auto-whitelist with 30 timeout
[1467] dbg: locker: safe_lock: link to
/root/.spamassassin/auto-whitelist.mutex: link ok
[1467] dbg: auto-whitelist: tie-ing to DB file of type DB_File R/W in
/root/.spamassassin/auto-whitelist
[1467] dbg: auto-whitelist: db-based [EMAIL PROTECTED]|ip=84.126
scores 5/nan
[1467] warn: auto-whitelist: totscore for ([EMAIL PROTECTED],
84.126.65.162) is a NaN, ignored
[1467] dbg: auto-whitelist: AWL active, pre-score: 7.116, autolearn
score: 7.116, mean: undef, IP: 84.126.65.162
[1467] dbg: auto-whitelist: add_score: new count: 6, new totscore: nan
[1467] dbg: auto-whitelist: DB addr list: untie-ing and unlocking
[1467] dbg: auto-whitelist: DB addr list: file locked, breaking lock
[1467] dbg: locker: safe_unlock: unlocked
/root/.spamassassin/auto-whitelist.mutex
[1467] dbg: auto-whitelist: post auto-whitelist score: 7.116
[1467] dbg: rules: running body tests; score so far=7.116
[1467] dbg: rules: compiled body tests
[1467] dbg: rules: running uri tests; score so far=7.116
[1467] dbg: rules: compiled uri tests
[1467] dbg: rules: running rawbody tests; score so far=7.116
[1467] dbg: rules: compiled rawbody tests
[1467] dbg: rules: running full tests; score so far=7.116
[1467] dbg: rules: compiled full tests
[1467] dbg: rules: running meta tests; score so far=7.116
[1467] dbg: rules: compiled meta tests
[1467] dbg: plugin:
Mail::SpamAssassin::Plugin::AutoLearnThreshold=HASH(0x910f440)
implements 'autolearn_discriminator', priority 0
[1467] dbg: learn: auto-learn: currently using scoreset 3, recomputing
score based on scoreset 1
[1467] dbg: learn: auto-learn: message score: 7.116, computed score for
autolearn: 7.199
[1467] dbg: learn: auto-learn? ham=0.1, spam=12, body-points=7.199,
head-points=7.199, learned-points=1
[1467] dbg: learn: auto-learn? no: inside auto-learn thresholds, not
considered ham or spam
[1467] dbg: check: is spam? score=7.116 required=4
[1467] dbg: check: tests=ADVANCE_FEE_2,BAYES_60,FORGED_MUA_OUTLOOK
[1467] dbg: check:
subtests=__ANY_OUTLOOK_MUA,__CT,__CTE,__CTYPE_CHARSET_QUOTED,__CT_TEXT_PLAIN,__DOS_HAS_ANY_URI,__DOS_RCVD_MON,__DOS_RELAYED_EXT,
__ENV_AND_HDR_FROM_MATCH,__FH_HAS_XMSMAIL,__FH_HAS_XPRIORITY,__FORGED_OE,__FRAUD_DBI,__FRAUD_IOU,__FRAUD_MCQ,__HAS_ANY_EMAIL,__HAS_ANY_URI,__HAS_MIMEOLE,
__HAS_MSGID,__HAS_MSMAIL_PRI,__HAS_RCVD,__HAS_SUBJECT,__HAS_X_MAILER,__KAM_LOTTO3,__LAST_UNTRUSTED_RELAY_NO_AUTH,__MIMEOLE_MS,__MIME_VERSION,__MISSING_REF,
__MSGID_OK_DIGITS,__MSOE_MID_WRONG_CASE,__NONEMPTY_BODY,__NO_INR_YES_REF,__OE_MUA,__SANE_MSGID,__TOCC_EXISTS,__TVD_BODY,__TVD_MIME_ATT_TP,__XM_MSOE6,
__XM_MS_IN_GENERAL,__XM_OUTLOOK_EXPRESS
Return-Path: <[EMAIL PROTECTED]>
X-Spam-Flag: YES
....
Thanks,
Benedict