[cvs] bogofilter/src bf_compact,1.15,1.16

Matthias Andree matthias.andree at gmx.de
Sun May 8 19:09:50 CEST 2005


David Relson <relson at osagesoftware.com> writes:

>> This is bogus. Only bogofilter knows - from its configuration - what
>> files to expect. In transactional environments, a missing database file
>> in not an error per se - the data may be in the logs.
>
> Suppose I'm compacting a test directory that has no relationship to
> what's in bogofilter.cf.

I wouldn't consider this a common use.

> "bogofilter -QQ" is appropriate if BOGOHOME
> is _not_ specified.  Perhaps we need:

OK.

>   if [ -n "$1" ] ; then
>      BOGOHOME="$1"
>   fi
>   ...
>   if [ -n "$BOGOHOME" ] ; then
>     FILES=`ls $BOGOHOME/*.db`
>   else
>     FILES=`bogofilter -QQ | grep ^wordlist | cut -f3 -d,`
>   fi
>
> or something like it?

Looks better. We'll try that and see if users complain :-)

-- 
Matthias Andree



More information about the bogofilter-dev mailing list