You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2004/08/20 23:58:28 UTC

[Bug 3709] New: cannot use bayes on this message; db not initialised yet

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

           Summary: cannot use bayes on this message; db not initialised yet
           Product: Spamassassin
           Version: 2.64
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P5
         Component: spamassassin
        AssignedTo: spamassassin-dev@incubator.apache.org
        ReportedBy: pedrum@etomi.com


I don't think bayes filtering is occuring but I can't tell why. I've looked at
the code (not a perl expert!). The sorted array is empty for some reason. I've
put some dbg statements around the next statement. Do I not have enought
"tokens" to be processed (see nham/nspam)?


In Bayes.pm around line 1077.

    dbg ("before check $pw");
    next if (abs($pw - 0.5) < $self->{robinson_min_prob_strength});
    dbg ("after check $pw");
    push (@sorted, $pw);

spamassassin -D --lint returns:

debug: running body-text per-line regexp tests; score so far=3.917
debug: bayes corpus size: nspam = 1094, nham = 547
debug: uri tests: Done uriRE
debug: tokenize: header tokens for *F = "U*ignore
D*compiling.spamassassin.taint.org D*spamassassin.taint.org D*taint.org D*org"
debug: tokenize: header tokens for *m = " 1093038706 lint_rules "
debug: in loop 150
debug: before check 0.82472161549557
debug: in loop 149
debug: before check 0.776288474810214
debug: in loop 148
debug: before check 0.386300929839391
debug: in loop 147
debug: before check 0.429654879773692
debug: in loop 146
debug: before check 0.4952517093434
debug: cannot use bayes on this message; db not initialised yet
debug: bayes: not scoring message, returning 0.5
debug: bayes: 19548 untie-ing
debug: bayes: 19548 untie-ing db_toks
debug: bayes: 19548 untie-ing db_seen



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