FS#1936 - Spamassassin's Bayesian classifier cannot be trained
|
Details
I am running spamassassin-3.0.1-1, perl-5.8.6-1,
db-4.3.21-1.
When trying to train the Bayesian classifier via: sa-learn --spam --mbox --showdots Mail/spam [where Mail/spam is of course in the mbox format] I get: Use of uninitialized value in numeric gt (>) at /usr/lib/perl5/5.8.6/i686-linux-thread-multi/DB_File.pm line 270. Cannot open bayes databases /home/richard/.spamassassin/bayes_* R/O: tie failed: Use of uninitialized value in numeric gt (>) at /usr/lib/perl5/5.8.6/i686-linux-thread-multi/DB_File.pm line 270. Cannot open bayes databases /home/richard/.spamassassin/bayes_* R/W: tie failed: Inappropriate ioctl for device Use of uninitialized value in numeric gt (>) at /usr/lib/perl5/5.8.6/i686-linux-thread-multi/DB_File.pm line 270. Cannot open bayes databases /home/richard/.spamassassin/bayes_* R/W: tie failed: Inappropriate ioctl for device Use of uninitialized value in numeric gt (>) at /usr/lib/perl5/5.8.6/i686-linux-thread-multi/DB_File.pm line 270. Cannot open bayes databases /home/richard/.spamassassin/bayes_* R/W: tie failed: Inappropriate ioctl for device Learned from 0 message(s) (1 message(s) examined). ERROR: the Bayes learn function returned an error, please re-run with -D for more information Re-running w/ -D didn't seem to give me any helpful output. I edited /usr/lib/perl5/5.8.6/i686-linux-thread-multi/DB_File.pm and set $db_version to 2 manually; after that, i got the following output when running sa-learn w/ the parameters mentioned above: Cannot open bayes databases /home/richard/.spamassassin/bayes_* R/O: tie failed: Cannot open bayes databases /home/richard/.spamassassin/bayes_* R/W: tie failed: Inappropriate ioctl for device Cannot open bayes databases /home/richard/.spamassassin/bayes_* R/W: tie failed: Inappropriate ioctl for device Cannot open bayes databases /home/richard/.spamassassin/bayes_* R/W: tie failed: Inappropriate ioctl for device Learned from 0 message(s) (1 message(s) examined). ERROR: the Bayes learn function returned an error, please re-run with -D for more information I am not sure whether this is a SA, Perl or DB problem. |
This task depends upon
So this is definitely not an SA, but a DB or DB/Perl problem.