1. NAME

bogoupgrade - upgrades bogofilter database to current version

2. SYNOPSIS

bogoupgrade [-h] -d directory [-i input file] [-o output file] [-b path to bogoutil]

3. DESCRIPTION

bogoupgrade is a command to upgrade bogofilter\'s databases from an old format to the current format. Since the format of the database changes once in a while, the utility is designed to make the upgrade easy.

4. OPTIONS

The -h option prints the help message and exits.

The -d specifies the directory with the wordlists for converting. This option is used when converting from multiple, separate wordlists (spamlist.db and goodlist.db - containing spam and ham tokens, respectively) to a combined wordlist (wordlist.db) which contains both spam and ham tokens.

The -i specifies the input file to be converted. It should be a text file containing message counts, and possibly data. If there is no data in the text file, there should be a Berkeley DB file in the same directory as the text file which contains the data.

The -o specifies the output Berkeley DB file.

The -b gives the path to the bogoutil command. It defaults to \'bogoutil\', in the hopes that your shell will find it.

5. UPGRADING

Follow these instructions to upgrade bogofilter\'s databases to the latest version.


    .ie n \ \h'-04' 1.\h'+01'\c .

1. 4.2 . 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.


    .ie n \ \h'-04' 2.\h'+01'\c .

2. 4.2 . Backup your data. Let\'s assume that you said:


    .

 
Sélectionnez
$ mv ~/.bogofilter ~/.bogofilter.safe
$ mkdir ~/.bogofilter

.


    .ie n \ \h'-04' 3.\h'+01'\c .

3. 4.2 . If your bogofilter version is less than 0.7, say:


    .

 
Sélectionnez
$ bogoupgrade -i ~/.bogofilter.safe/goodlist -o ~/.bogofilter/goodlist.db
$ bogoupgrade -i ~/.bogofilter.safe/badlist -o ~/.bogofilter/spamlist.db

.

If your bogofilter version is 0.7 or greater, say:


    .

 
Sélectionnez
$ bogoupgrade -i ~/.bogofilter.safe/hamlist.count -o ~/.bogofilter/goodlist.db
$ bogoupgrade -i ~/.bogofilter.safe/spamlist.count -o ~/.bogofilter/spamlist.db

.


    .ie n \ \h'-04' 4.\h'+01'\c .

4. 4.2 . 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:


    .

 
Sélectionnez
$ bogoupgrade -d ~/.bogofilter.safe

.


    .ie n \ \h'-04' 5.\h'+01'\c .

5. 4.2 . Done. Restart any stopped daemons, cron tasks, etc.

6. AUTHOR

bogoupgrade was written by Gyepi Sam and David Relson .

For updates, see \m[blue]the bogofilter project page\m[]\s-2\u[1]\d\s+2.

7. SEE ALSO

8. NOTES

1. 4 the bogofilter project page
    http://bogofilter.sourceforge.net/