new bf_compact [was: [cvs] bf_compact...]

David Relson relson at osagesoftware.com
Sun May 8 19:17:14 CEST 2005


On Sun, 08 May 2005 19:09:50 +0200
Matthias Andree wrote:

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

True.

> > "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 :-)

The current version is attached.


More information about the bogofilter-dev mailing list