On Wed, Jan 24, 2007 at 11:19:37AM -0500, Kris Deugau wrote: > I'm now trying to get the global Bayes DBs from the 2.64 installs > upgraded as necessary. I knew there was a format change, and I thought > there was a simple upgrade procedure: sa-learn --import is *supposed* > to make whatever changes are necessary in the data storage to allow you > to keep your Bayes files from earlier SA releases.
I don't believe the docs say it'll make "whatever changes are necessary". What it says is that it'll read in your old DB and make a new DB_File based one. There's nothing about upgrading db versions. > [ Er, what? It's already DB_File, as I so very carefully beat Debian > woody into continuing to use after I migrated from RH7.3. Whatever. ] --import takes what you had before and writes it out using DB_File. It doesn't check to see if it's necessary, it just does it because you asked it to. > [EMAIL PROTECTED] spamassassin]# sa-learn --dump magic > bayes: bayes db version 2 is not able to be used, aborting! at > /usr/lib/perl5/vendor_perl/5.8.5/Mail/SpamAssassin/BayesStore/DBM.pm > line 160. The bayes DB isn't v3, so SA won't use it for reads, such as dump. > sa-learn -D returns no useful information beyond being fractionally more > verbose in complaining that it can't deal with a v2 DB. You need to get the DB to go read-write, which will cause the DB to be upgraded from version 2 to 3. Such as the documented "sa-learn --sync". :) -- Randomly Selected Tagline: "Cuidado esta llamas!" - rc5proxy.llamas.net
pgp7DG0heHWUl.pgp
Description: PGP signature