Package: bogofilter
Version: 0.94.4-1
Severity: normal

$ bogoutil -w ~/.bogofilter/wordlist.db .MSG_COUNT
                                 spam   good
.MSG_COUNT                       1426    479

and

$ bogoutil -w ~/.bogofilter .MSG_COUNT
Error accessing file or directory '/home/cappe/.bogofilter'.
error #9 - Bad file descriptor.

whereas man page says


>      The  -w  file_or_dir option tells bogoutil to display token information
>      from the database. The option takes an argument, which  is  either  the
>      name of the wordlist (usually wordlist.db) or the name of the directory
>      containing it. [...]

This error shows up when running the
/usr/share/doc/bogofilter/examples/contrib/bogominitrain.pl script distributed
with the package due to it lines 86 and 176:

> print `$bogoutil -w $dir .MSG_COUNT`,"\n";

which should be

> print `$bogoutil/wordlist.db -w $dir .MSG_COUNT`,"\n";


It is claimed here http://article.gmane.org/gmane.mail.bogofilter.general/9854
that the bogominitrain.pl has been fixed upstream. The bogoutil manpage should
also be modified.

-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.4.27-2-686
Locale: LANG=POSIX, LC_CTYPE=en_US.iso88591 (charmap=ISO-8859-1)

Versions of packages bogofilter depends on:
ii  libc6                       2.3.2.ds1-22 GNU C Library: Shared libraries an
ii  libdb4.3                    4.3.27-2     Berkeley v4.3 Database Libraries [
ii  libgsl0                     1.6-2        GNU Scientific Library (GSL) -- li

-- no debconf information

Reply via email to