Re: bogoutil -R (was Re: Adjusting ROBX and ROBS?)
David Relson <[email protected]> Mon, 20 Dec 2010 20:42:21 -0500
| Newsgroups | gmane.mail.bogofilter.general |
|---|---|
| Organization | Osage Software Systems, Inc. |
| Message-ID | <[email protected]> |
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 _______________________________________________ Bogofilter mailing list [email protected] http://www.bogofilter.org/mailman/listinfo/bogofilter