bogoutil problem

David Relson relson at osagesoftware.com
Sun Apr 24 20:55:51 CEST 2005


On Sun, 24 Apr 2005 17:50:04 +0200
Boris 'pi' Piwinger wrote:

> David Relson <relson at osagesoftware.com> wrote:
> 
> >> Maybe I missed some change, but when I do (as described in
> >> the FAQ): `bogoutil -w .bogofilter .MSG_COUNT` I get:
> >> Error accessing file or directory './.bogofilter'.
> >> error #22 - Invalid argument.
> >
> >You need to give bogoutil the name of the wordlist file, not the
> >directory.  Since bogoutil works on a specific file, its parameter
> >processing was tightened a while back.
> 
> OK. So the error message should no longer say that there is
> a problem accessing the directory. It could say "Error
> accessing file './.bogofilter'". Also "Invalid argument" is
> unclear, it made me belief that .MSG_COUNT might be
> incorrect.
> 
> Now I am wondering how to use it in bogominitrain.pl. There
> are places where I need to give the directory (e.g. as a
> argument to bogofilter itself) and where I need to give the
> file. My assumpition is that I can always use wordlist.db,
> would that cause any problems?
> 
> pi

Hi pi,

I've done some reworking of bogoutil's argument processing and
documentation.  Back when there were separate spam and ham wordlists,
it made sense for bogoutil to take a directory as the argument for
options like -d, -l, -w, -p, etc.  Now that a wordlist is a file (and
can have any name you want) it makes sens for these options to accept
only a filename.

I've made a pass through the code and documentation to fix up the
inconsistencies.

Regards,

David



More information about the Bogofilter mailing list