SA Bugzilla – Bug 4256
sa-learn fails to learn
Last modified: 2005-04-12 22:24:40 UTC
Running Fedora Core 1. Upgraded (via DAGs RPMs) from spamassassin-3.0.2-1.1.fc1.rf.i386.rpm to spamassassin-3.0.2-2.1.fc1.rf.i386.rpm. Suddenly, much more spam is getting through. And, sa-learn does not appear to be learning. Example, I run: "sa-learn --spam --mbox SpamMissed" And get this: "Learned from 169 message(s) (169 message(s) examined)." It usually does not learn from every message in the mailbox. If I run it a second time, same message, no learning. Perhaps the reason that more spam is suddenly get through is because the learner is broken and previous learning has been 'forgotten'?
> Perhaps the reason that more spam is suddenly get through is because the learner is broken and previous learning has been 'forgotten'? Sounds very likely, and if your problem is a corrupt database (which can be corrupted by a variety of O/S problems, not necessarily an SA bug), then a) the easy fix is to wipe your Bayes database and start over, and b) you're more likely to get more help from the SA users' list than through the bugzilla system. I'd suggest report your problem there and see if that will help resolve it.
Triage on the database solved the problem, the db was corrupt. Used the --backup and --restore options to complete the triage. Will use the --no-sync option for all future training. Thank you.