[cvs] bogofilter/src bf_compact,1.15,1.16
Matthias Andree
matthias.andree at gmx.de
Sun May 8 17:25:35 CEST 2005
David Relson <relson at users.sourceforge.net> writes:
> Update of /cvsroot/bogofilter/bogofilter/src
> In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28091
>
> Modified Files:
> bf_compact
> Log Message:
> Use 'ls' to list database files.
>
> Index: bf_compact
> ===================================================================
> RCS file: /cvsroot/bogofilter/bogofilter/src/bf_compact,v
> retrieving revision 1.15
> retrieving revision 1.16
> diff -u -d -r1.15 -r1.16
> --- bf_compact 7 May 2005 14:02:42 -0000 1.15
> +++ bf_compact 7 May 2005 14:09:13 -0000 1.16
> @@ -32,11 +32,11 @@
> esac
> done
>
> -# find wordlist default
> -if [ -z "$1" ] ; then
> - FILE=`bogofilter -QQ -d "$BOGOHOME" | grep '^wordlist' | cut -f3 -d,`
> +# find wordlists
> +if [ -n "$1" ] ; then
> + FILES="$@"
> else
> - FILE="$@"
> + FILESS=`ls "$BOGOHOME" | grep .db$`
> fi
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.
--
Matthias Andree
More information about the bogofilter-dev
mailing list