patch for bogofilter status line

Greg Louis glouis at dynamicro.on.ca
Sat Nov 30 14:39:57 CET 2002


On 20021130 (Sat) at 0029:48 -0600, Graham Wilson wrote:

> the four configurable options are 'header_format', 'terse_format',
> 'update_log_format', and 'check_log_format'. see main.c for when they
> are used.
> 
> the format strings are similar to those used by printf(3) and friends.
> minimum field width and precision values are supported. the only two
> flags are:
> 
>  0  tells will print leading zeros instead of spaces
>  #  will print 1 - spamicity if status == RC_SPAM
> 
> the conversion specifiers are:
> 
>  %  print a percent sign
>  c  spam_cutoff
>  n  1 for spam, 0 for non-spam
>  f  spamicity printed using %f
>  v  VERSION
>  m  method->name
>  e  spamicity printed using %e
>  y  Yes for spam, No for non-spam
>  h  spam_header_name
> 
> improvements: support for unknown spamicity (i think greg louis is
> working on this)

Very nice!  Unfortunately, no, I'm doing no coding on mainstream
bogofilter right now, because all my spare time is going into
investigating yet another promising algorithm.  My 0.8.0-derived
production version reports 1 0 or ? followed by spamicity (%7.2e), or
1-spamicity if spam; this goes to stderr if -v is used, and into the
log output if -l is used; it's the only output for just one -v.  If -p
is used the traditional "X-Bog" header is written.  My current cutoffs
for ? are 0.1 <= spamicity < 0.96; this is with Robinson-Fisher, which
is all I use now in production.

-- 
| G r e g  L o u i s          | gpg public key:      |
|   http://www.bgl.nu/~glouis |   finger greg at bgl.nu |



More information about the bogofilter-dev mailing list