On Wed, 10 Dec 2003, AthlonRob wrote:

> > Just for S&G, try doing a 'sa-learn --dump magic' and see if it
> > likes what it sees. If you cannot even --dump magic then it's
> > truly corrupted, no repair, just delete and start fresh.
>
> I got some funky output:
>
> [EMAIL PROTECTED]:~/.spamassassin$ sa-learn --dump magic
> Cannot open bayes databases /var/amavis/.spamassassin/bayes_* R/O: tie failed:
> Use of uninitialized value in numeric lt (<) at 
> /usr/lib/perl5/site_perl/5.8.0/Mail/SpamAssassin/BayesStore.pm line 1281.
> 0.000          0          0          0  non-token data: bayes db version
> 0.000          0          0          0  non-token data: nspam
> 0.000          0          0          0  non-token data: nham
> 0.000          0          0          0  non-token data: ntokens
> 0.000          0          0          0  non-token data: oldest atime
> 0.000          0          0          0  non-token data: current scan-count
> 0.000          0          0          0  non-token data: last expiry atime
>
> > You've got a boat-load of stuff in that bayes_journal, so delete
> > the bayes_seen & bayes_toks and let that journal seed you a fresh start.
>
> I'm guessing, from the above output... that won't work for me....

The bad values from the corrupt bayes_toks could cause that
perl error. (It seems that the SA database code needs a bit of
update to better defend itself from bad database values ;).

Just try completely removing those bayes_toks & bayes_seen files
and do a 'sa-learn --rebuild'. It should take that bayes_journal file
and use its data to create a new database.


-- 
Dave Funk                                  University of Iowa
<dbfunk (at) engineering.uiowa.edu>        College of Engineering
319/335-5751   FAX: 319/384-0549           1256 Seamans Center
Sys_admin/Postmaster/cell_admin            Iowa City, IA 52242-1527
#include <std_disclaimer.h>
Better is not better, 'standard' is better. B{



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to