stats_in_header, again...

Bob Bernstein bernstein at cesmail.net
Thu Apr 10 19:54:37 CEST 2003


On Thu, Apr 10, 2003 at 07:30:11AM -0400, David Relson wrote:

> The stats_in_header option refers to additional statistics about how 
> bogofilter has classified the message.  If you use one or two "-v"s with 
> the "-p", statistics will be included in the message.

Ah...thanks. But, may I make so bold as to ask whether the connection
between 'stats_in_header', and the 'v' switch, is anywhere made
explicit? Short of guessing that somehow "stats" and, say, "histogram"
might be related to each other, I can't find any mention of their
inter-relatedness in the man page, or in the sample bogofilter.cf. Or
did I just make (another) BDM ("big dummy mistake"), and miss
something obvious? :-)

> Hope this clears it up for you.

Oh yes. Also, it seems a few changes will make the histogram more
readable on 80 character screens:

In bogoconfig.c:

178     stats_prefix= stats_in_header ? "" : "";


and in rstats.c:

214         /* scale histogram to 50 characters */
215         /* make that: 48 */
216         if (maxcnt>48) cnt = (cnt * 48 + maxcnt - 1) / maxcnt;
     
My personal kludges, of course; I'm sure there are more elegant ways
to get that job done.

Best,

-- 
Bob Bernstein                                      




More information about the Bogofilter mailing list