SA Bugzilla – Bug 1162
spamd fails to find per-user bayes database
Last modified: 2002-10-29 22:34:09 UTC
spamassassin -D shows this: debug: bayes: tie-ing to DB file R/O /home/schaefer/.spamassassin/bayes_count debug: bayes: tie-ing to DB file R/O /home/schaefer/.spamassassin/bayes_toks_ham debug: bayes: tie-ing to DB file R/O /home/schaefer/.spamassassin/bayes_toks_spam debug: bayes: tie-ing to DB file R/O /home/schaefer/.spamassassin/bayes_probs debug: bayes: tie-ing to DB file R/O /home/schaefer/.spamassassin/bayes_seen debug: bayes corpus size: nspam = 243, nham = 346 spamd -D shows (upon connection from spamc): logmsg: processing message <message-id> for schaefer:674, expecting 2126 bytes. debug: corpus too small (0 < 200), skipping debug: bayes: not scoring message, returning 0.5
Created attachment 429 [details] Create new per-user Bayes objects
Patched as attachment 429 [details]. I'm not entirely happy with the patch as it pierces the SpamAssassin object abstraction, but it gets the job done.
I've checked in a change which does essentially this (along with a load of interface consolidation and simplification, and some refactoring ;). so FIXED until a bug crops up in all those changes ;)