multiple wordlists from the command line?

David Relson relson at osagesoftware.com
Mon Apr 25 13:39:25 CEST 2005


On Mon, 25 Apr 2005 00:41:27 -0700
Chris Fortune wrote:

> > >     "Can't find HOME or BOGOFILTER_DIR in environment."
> >
> > The message means that bogofilter is looking for environment variables
> > $HOME and $BOGOFILTER_DIR and can find neither one.  How are you
> > running the perl script?  Is either of the the environment variables
> > present?
> >
> 
> Doh!  Of course!!  I created the environment variable $ENV{'BOGOFILTER_DIR'} = "/home/defaultuser/.bogofilter";  and now all works
> perfectly.  Many thanks for a job well done.   I can now confidently allow users their personal wordlists (backed up by the default
> wordlist) even if they have only a few emails registered.

Hi Chris,

As a thought ...

If I recall correctly, you've using the same priority, i.e. 1, for your
user and system lists. That'll check both databases for each word, add
the counts together, and compute the probability.

If I was setting up user and system lists, my inclination would be to
make the personal user list the primary (#1) and the global system list
the secondary (#2).  That setup would have bogofilter check the user
list first and, if the token is found, use those values.  The system
list would only be used when a token isn't in the user list.  This
primary/secondary setup makes the user's personal list the king!

Regards,

David



More information about the Bogofilter mailing list