bogoutil -R (was Re: Adjusting ROBX and ROBS?)

David Relson relson at osagesoftware.com
Tue Dec 21 02:42:21 CET 2010


On Mon, 20 Dec 2010 10:08:25 -0500
Matt Garretson wrote:

> On 12/20/2010 8:04 AM, Mahmoud Khonji wrote:
> > According to the man page, -R option does the same as -r, but prints
> > more information and saves the result in the training database.
> 
> For me (1.2.2), -R updates the database but outputs nothing, while -r
> outputs the value of ROBX.
> 
> This reminds me that I've always wondered what the impact was of
> saving ROBX to the database.  Does it have any effect at all
> (particularly if I have robx set in bogofilter.cf)?

Looks like a documentation error!

Reading the code, "-r" prints the computed value without saving it to
the wordlist and "-r" saves the value to the wordlist without printing
it.

The value is saved using a special token name, i.e. ".ROBX".
Bogofilter's parsing rules do not allow a leading "." at the start of
a token, so the special token is never confused with something in a
message being scored.  The database is a convenient place for
bogofilter to keep special information such as this setting.

I'll update the documentation to reflect the difference.

Regards,

David



More information about the Bogofilter mailing list