Bootstrapping the database in a MUA-embedded scenario

David Relson relson at osagesoftware.com
Wed Aug 10 23:07:13 CEST 2005


On Thu, 11 Aug 2005 00:58:26 +0400
Mikhail Zabaluev wrote:

> Hello and thank you very much,
> 
> __ ______, 10/08/2005 __ 11:48 -0400, David Relson __________:
> > Very close, but not quite.  The following will create a minimal wordlist:
> > 
> > 
> >    mkdir ~/.bogofilter
> >    echo .MSG_COUNT 0 1 20050810 | bogoutil -l ~/.bogofilter/wordlist.db
> 
> I want the plugin to be able to work on an existing wordlist as well,
> and this would destroy it. Not to mention dealing with an extra variable
> which is the wordlist location.
> 
> > Alternatively, one could do something like:
> > 
> >    mkdir ~/.bogofilter
> >    echo ham  | bogofilter -n -H
> >    echo spam | bogofilter -s -H
> > 
> > Where the "-H" says to skip the normal header tagging.  This would
> > actually be slightly better because it will also include the .ENCODING
> > and .WORDLIST_VERSION meta-tokens.  Of course one can substitute
> > whatever words desired for "ham" and "spam", possibly:
> > 
> >    echo bogofilter bogofilter.org | bogofilter -n -H
> >    echo p0rn pron sex | bogofilter -s -H 
> 
> This is much better. How about an empty "message":
> bogofilter -n -H </dev/null

That works too!

Note:  you don't need the '-H'



More information about the Bogofilter mailing list