upgrade 0.93.1

Tom Allison tallison at tacocat.net
Tue Nov 23 22:29:35 CET 2004


Chris Wilkes wrote:
> 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?
> 

Well, the move isn't very long since it's just rewriting the inode table 
instead of writing the actual data blocks.  Never had a problem since it 
is run on off hours.  Only spam comes in then, if any.



More information about the Bogofilter mailing list