tokens value
David Relson
relson at osagesoftware.com
Sun Oct 9 00:33:09 CEST 2005
On Sun, 09 Oct 2005 01:54:09 +0400
Milan Jovanovic wrote:
>
> -----Original Message-----
> From: David Relson <relson at osagesoftware.com>
> To: Milan Jovanovic <milanj at bk.ru>
> Date: Sat, 8 Oct 2005 17:25:19 -0400
> Subject: Re: tokens value
>
> >
> > On Sat, 08 Oct 2005 21:56:42 +0400
> > Milan Jovanovic wrote:
> >
> > > Hi to all .. one question
> > > How can I manulay set value for specific token ?
> >
> > Hi Milan,
> >
> > Good question!
> >
> >
> > There is no direct way to set a token's score to a particular value.
> > Each token has ham and spam counts and bogoutil can be used to display
> > the values and change them.
> >
> > "bogoutil -w /wordlist_dir/ token" will print the values for "token"
> >
> > "bogoutil -p /wordlist_dir/ token" will also print the token's Fisher
> > score (also known as its spamicity)
> >
> > "echo token 17 3 | bogoutil -l /wordlist_dir/" will add 17 to its
> > spam count and 3 to its ham count..
> >
> > You can also have bogofilter ignore a list of tokens, i.e. not include
> > them when scoring a message. Search bogofilter's documents for info
> > about "ignore list".
> >
> > HTH,
> >
> > David
> Thanks David, that is what i need
> "echo token 17 3 | bogoutil -l /wordlist_dir/" - i didnt see that in faq or man pages ... this is all i need, this way i can manualy change token value .... can i add new token like this ?
> Thanks again
The "echo token | bogoutil -l" technique may well not be in the faq.
It uses the fact that loading a wordlist via "bogoutil -l" increments
the counts. You can perform an experiment of your own to see if new
tokens can be added. Something like the following should work:
mkdir test
echo new_token 1 2 | bogoutil -l test
bogoutil -w test new_token
bogoutil -p test new_token
More information about the Bogofilter
mailing list