Bug I think with configfile.c

David Relson relson at osagesoftware.com
Fri Jan 23 13:42:21 CET 2004


On Fri, 23 Jan 2004 14:16:45 +0530
Manvendra Bhangui wrote:

> 
> After migrating to bogofilter-0.16.3 from bogofilter-0.16.2,
> bogofilter looks for wordlist.db in $HOME/.bogofilter if
> -d option is not specified. 
> 
> my configure options were
> ./configure --prefix=/var/sifymail

Welcome Manvendra,

The "--prefix" option tells where to install the executables,
documentation, etc.  It is not used in finding either the config file or
the wordlist.

To have bogofilter in /var/sifymail/etc, you can configure with
"--sysconfdir=/var/sifymail/etc" or you can run bogofilter with argument
"-c /var/sifymail/etc/bogofilter.cf"

> My wordlist.db and bogofilter.cf lie in /var/sifymail/etc

To have wordlist.db in /var/sifymail/etc, you can include
"bogofilter_dir=/var/sifymail/etc" in your bogofilter.cf file or you can
run bogofilter with argument "-d /var/sifymail/etc"


> If i run bogofilter -vvv < /etc/hosts i get the following output
>
> Can't open file 'wordlist.db' in directory '/usr1/root/.bogofilter'.
> error #2 - No such file or directory.
> 
> Remember to register some spam and ham messages before you
> use bogofilter to evaluate mail for its probable spam status!

Correct!

> The above runs without problem if i use
> bogofilter -d /var/sifymail/etc -vvv < /etc/hosts

Correct!

> -- 
> Manvendra Bhangui <mbhangui at yahoo.com>




More information about the Bogofilter mailing list