Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: missing edit-log entry for this revision

How to Dump and Load a Berkeley Database File

You may see errors like this in the output from "spamassassin -D -t < msg":

No Format

debug: bayes: 29843 tie-ing to DB file R/O /home/jm/.spamassassin/bayes_toks
Cannot open bayes databases /home/jm/.spamassassin/bayes_* R/O: tie failed: 

This means that the DB_File module could not attach to a database file, which often means an incompatible version between the file and the libraries installed.

To fix, use Use the db_dump and db_load tools. Here's an example of how to upgrade your bayes_toks file with Berkeley db 4.1 installed:

...