new bf_compact [was: [cvs] bf_compact...]
David Relson <[email protected]>
| Newsgroups | gmane.mail.bogofilter.devel |
|---|---|
| Organization | Osage Software Systems, Inc. |
| Message-ID | <[email protected]> |
On Sun, 08 May 2005 19:09:50 +0200 Matthias Andree wrote: > 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. 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. _______________________________________________ Bogofilter-dev mailing list [email protected] http://www.bogofilter.org/mailman/listinfo/bogofilter-dev