Bogofilter regular maintaniance ??

Matthias Andree matthias.andree at gmx.de
Sat Nov 13 00:25:19 CET 2004


Michael Gale <michael.gale at utilitran.com> writes:

> db4_archive bogofilter_dir | while read line
> do
> rm $line
> done

You can use: db4_archive -d -h bogofilter_dir

For greater effect, run db4_checkpoint -1h bogofilter_dir
before running db4_archive.

> Then incase of wordlist corruption or some thing ... I would do:
>
> bogofilter -f bogofilter_dir

bogoutil that is.

> if fails
> bogofilter -F bogofilter_dir
> if fail then

Actually, bogoutil (and all other bogo* processes running automatic
recovery) will automatically attempt catastrophic recovery when regular
recovery fails. This is likely to fail, too, because you're removing log
files which are needed for catastrophic recovery.

...
> rm bogofilter_dir/__db*
> rm bogofilter_dir/log**
> rm wordlist.db
> cp wordlist.db_dayofweek wordlist.db

This isn't safe. Use dd, as shown in README.db.

> bogofilter -f bogofilter_dir

Again, that would be bogoutil. It isn't needed when you've restored a
known good database.

> Am I missing anything ??

A little. No procmail or maildrop or other filter should interfere and
run bogofilter while you are replacing a different database file.
Running db_verify wordlist.db_dayofweek before replacing the other file
looks like a good idea to me.

-- 
Matthias Andree



More information about the Bogofilter mailing list