|BOGOUPGRADE(1)||Bogofilter Reference Manual||BOGOUPGRADE(1)|
bogoupgrade [-h] -d directory [-i input file] [-o output file] [-b path to bogoutil]
1.Stop all instances of bogofilter. While the upgrade tools lock the database files, the upgrade may take a long time if you have a busy site. Don't forget to stop cron jobs or daemons that fetch and process mail and could fire off bogofilter.
2.Backup your data. Let's assume that you said:
$ mv ~/.bogofilter ~/.bogofilter.safe $ mkdir ~/.bogofilter
3.If your bogofilter version is less than 0.7, say:If your bogofilter version is 0.7 or greater, say:
$ bogoupgrade -i ~/.bogofilter.safe/goodlist -o ~/.bogofilter/goodlist.db $ bogoupgrade -i ~/.bogofilter.safe/badlist -o ~/.bogofilter/spamlist.db
$ bogoupgrade -i ~/.bogofilter.safe/hamlist.count -o ~/.bogofilter/goodlist.db $ bogoupgrade -i ~/.bogofilter.safe/spamlist.count -o ~/.bogofilter/spamlist.db
4.Current versions of bogofilter use a combined wordlist that holds both spam and non-spam tokens. It is named wordlist.db. If you're updating from a version older than 0.14.0 that has separate wordlists (named goodlist.db and spamlist.db), use:
$ bogoupgrade -d ~/.bogofilter.safe
5.Done. Restart any stopped daemons, cron tasks, etc.
- the bogofilter project page