Re: [cvs] bogofilter/src bf_compact,1.15,1.16
Matthias Andree <[email protected]>
| Newsgroups | gmane.mail.bogofilter.devel |
|---|---|
| Message-ID | <[email protected]> |
David Relson <[email protected]> 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 _______________________________________________ Bogofilter-dev mailing list [email protected] http://www.bogofilter.org/mailman/listinfo/bogofilter-dev