http://bugzilla.spamassassin.org/show_bug.cgi?id=3721
Summary: a-learn error - no dbs present, cannot scan:
.spamassassin/bayes_toks
Product: Spamassassin
Version: SVN Trunk (Latest Devel Version)
Platform: Other
URL: http://bugs.debian.org/265887
OS/Version: other
Status: NEW
Severity: normal
Priority: P5
Component: spamassassin
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
After running sa-learn the first time (~/.spamassassin empty) it displays
error:
ERROR: the Bayes learn function returned an error, please re-run with -D for
more information
I assume that this is non-important because the program tries to open
bayes_* files that are not there.
Suggestion: Do not display error message, but a warning instead, like
something:
WARN: No ~/.spamassassin/bayes_* files found (ignore if generating database)
That would be more informative. Attached -D output.
$ sa-learn $opt --local --no-rebuild --spam -f $filelist.spam
debug: Score set 0 chosen.
debug: running in taint mode? yes
debug: Running in taint mode, removing unsafe env vars, and resetting PATH
debug: PATH included '/usr/local/bin', keeping.
debug: PATH included '/home/jaalto/bin/perl/my', keeping.
debug: PATH included '/home/jaalto/bin/perl', keeping.
debug: PATH included '/home/jaalto/bin/shell', keeping.
debug: PATH included '/home/jaalto/bin', keeping.
debug: PATH included '/usr/bin', keeping.
debug: PATH included '/bin', keeping.
debug: PATH included '/usr/bin/X11', keeping.
debug: PATH included '/usr/games', keeping.
debug: PATH included '/usr/X11R6/bin', keeping.
debug: PATH included '/usr/sbin', keeping.
debug: PATH included '/sbin', keeping.
debug: PATH included '/home/jaalto/vc/project/sforge/pm-doc/bin', keeping.
debug: PATH included '/home/jaalto/vc/project/sforge/pm-lib/bin', keeping.
debug: PATH included '/home/jaalto/vc/project/sforge/perl-text2html/bin',
keeping.
debug: PATH included '/home/jaalto/vc/project/sforge/perl-dyndns/bin',
keeping.
debug: PATH included '/home/jaalto/vc/project/sforge/perl-webget/bin',
keeping.
debug: PATH included '/home/jaalto/vc/project/sforge/cvs-tools/bin',
keeping.
debug: PATH included '/home/jaalto/vc/project/sforge/tiny-tools/bin',
keeping.
debug: PATH included '/home/jaalto/vc/project/sforge/js-tools/bin', keeping.
debug: Final PATH set to:
+/usr/local/bin:/home/jaalto/bin/perl/my:/home/jaalto/bin/perl:/home/jaalto/bin/shell:/home/jaalto/bin:/usr/bin:/bin:/usr/bin/X11:/
+usr/games:/usr/X11R6/bin:/usr/sbin:/sbin:/home/jaalto/vc/project/sforge/pm-doc/bin:/home/jaalto/vc/project/sforge/pm-lib/bin:/home
+/jaalto/vc/project/sforge/perl-text2html/bin:/home/jaalto/vc/project/sforge/perl-dyndns/bin:/home/jaalto/vc/project/sforge/perl-we
+bget/bin:/home/jaalto/vc/project/sforge/cvs-tools/bin:/home/jaalto/vc/project/sforge/tiny-tools/bin:/home/jaalto/vc/project/sforge
+/js-tools/bin
debug: using "/usr/share/spamassassin" for default rules dir
debug: using "/etc/spamassassin" for site rules dir
debug: using "/home/jaalto/.spamassassin/user_prefs" for user prefs file
debug: bayes: no dbs present, cannot scan:
/home/jaalto/.spamassassin/bayes_toks
debug: Score set 0 chosen.
debug: Initialising learner
debug: Initialising learner
debug: Learning Ham
debug: uri tests: Done uriRE
debug: bayes: no dbs present, cannot scan:
/home/jaalto/.spamassassin/bayes_toks
Learned from 0 message(s) (1 message(s) examined).
debug: bayes: 3650 untie-ing
ERROR: the Bayes learn function returned an error, please re-run with -D for
more information
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.