Bootstrapping the database in a MUA-embedded scenario
Mikhail Zabaluev
mhz at altlinux.org
Wed Aug 10 22:58:26 CEST 2005
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
More information about the Bogofilter
mailing list