Dimitrios wrote: > > I had a SpamAssassin Bayes database in my ~/.spamassassin directory > > on a FreeBSD 4.10 box, and I needed to copy it over to a Mandrake Linux > > 10.0 box. For whatever reason, I couldn't just copy the raw files over; > > SpamAssassin / sa-learn on the Mandrake box was unable to read them. > > Its in the FAQ.
Just for the record, I did try Google, FAQs, Wikis, man pages, and mailing list archives before resorting to my solution. If you Google for SpamAssassin FAQ, you find a bazillion FAQs, none of which are hosted at spamassassin.org. The most prominent one is http://www.dam.brown.edu/computing/SpamAssassin/faq.htm ...which isn't much to go on. If you look on spamassassin.org it says the FAQ is now the Wiki. http://www.spamassassin.org/faq.html If you look in the Wiki, under http://wiki.apache.org/spamassassin/BayesInSpamAssassin there is nothing about exporting. If you look at http://wiki.apache.org/spamassassin/FrequentlyAskedQuestions there is nothing about it there, either. I also tried various other Google searches and found nothing about exporting. The sa-learn(1) man page only mentions the kind of import you can do to upgrade, and that didn't work for me. So where are you talking about? I'm happy to admit I'm wrong, but it doesn't seem like it's in an obvious spot. > you have to use db_dump to export the database, and then db_load to > reconstruct it. > > this works for moving bayes databases along different DB versions etc. Thank you for this info! I wasn't sure whether it would be safe to assume that such tools were available. Python's anydbm module seemed to be a reasonable mechanism for generic dbm access (although I think it depends on what's available on the underlying system). I admit I didn't look too hard for export/import tools for the specific dbm libs installed on each system. I thought all the RTFMing I was doing would suffice. Grateful, but still frustrated, Mike
