upgrade 0.93.1
Chris Wilkes
cwilkes-bf at ladro.com
Tue Nov 23 21:58:20 CET 2004
On Tue, Nov 23, 2004 at 02:46:28PM -0500, Tom Allison wrote:
>
>
> I rebuilt the database using:
> /usr/bin/bogoutil -d .bogofilter/wordlist.db > /tmp/bogotemp
> /usr/bin/bogoutil -l .bogofilter/wordlist_new.db < /tmp/bogotemp
>
> cp .bogofilter/wordlist.db .bogofilter/wordlist.db.old
> if [ -s .bogofilter/wordlist_new.db ]; then
> mv .bogofilter/wordlist_new.db .bogofilter/wordlist.db
> fi
Not that it makes any difference, but you could shorten that down a bit:
in=.bogofilter/wordlist.db
out=.bogofilter/wordlist.tmp
rm $out; bogoutil -d $in | bogoutil -l $out
cp $in $in.old && mv $out $in
saving you from creating a text file of all your words.
What happens when bogofilter is using your wordlist when the move is in
process?
Chris
More information about the Bogofilter
mailing list