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/09/22 19:21:45 UTC
[Bug 3799] New: sa-learn with --dbpath tries to open ~/.spamassassin/bayes* first.
http://bugzilla.spamassassin.org/show_bug.cgi?id=3799
Summary: sa-learn with --dbpath tries to open
~/.spamassassin/bayes* first.
Product: Spamassassin
Version: SVN Trunk (Latest Devel Version)
Platform: Other
OS/Version: Linux
Status: NEW
Severity: minor
Priority: P5
Component: Learner
AssignedTo: dev@spamassassin.apache.org
ReportedBy: matthew@mxtelecom.com
When spamassassin learns into a bayes database specified using --dbpath, it
first appears to try to open ~/.spamassassin/bayes* for the current user
regardless, which may generate warnings & errors which it then appears to ignore.
e.g.:
% sa-learn --dump=magic --dbpath /etc/mail/virtual/domain/localpart/bayes
bayes: bayes db version 2 is not able to be used, aborting! at
/usr/local/share/perl/5.6.1/Mail/SpamAssassin/BayesStore/DBM.pm line 160.
0.000 0 3 0 non-token data: bayes db version
0.000 0 4593 0 non-token data: nspam
0.000 0 6334 0 non-token data: nham
...
the error is obviously inconsistent - and results from trying to open obsolete a
bayes db in ~/.spamassassin/bayes*. The workaround is simply to remove the
bayes db from the ~/.spamassassin folder.
If --dbpath is set, presumably SA should not autocreate ~/.spamassassin paths,
either.
The problem can be diagnosed by running sa-learn in -D mode and seeing what db
it complained about trying to open.
The same problem appears to occur when SA autolearns ham or spam in spamd or
presumably normal spamassassin.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.