Re: [cvs] bogofilter/src tunelist.c,1.6,1.7
Fast Bayesian spam filter along lines suggested by Paul Graham
Brought to you by:
m-a
From: Matthias A. <mat...@gm...> - 2003-11-28 17:49:01
|
On Thu, 27 Nov 2003, re...@us... wrote: > Log Message: > Skip printing if empty list. > > Index: tunelist.c > =================================================================== > RCS file: /cvsroot/bogofilter/bogofilter/src/tunelist.c,v > retrieving revision 1.6 > retrieving revision 1.7 > diff -u -d -r1.6 -r1.7 > --- tunelist.c 24 Nov 2003 05:10:45 -0000 1.6 > +++ tunelist.c 28 Nov 2003 02:06:11 -0000 1.7 > @@ -82,7 +82,7 @@ > int count = 0; > mlitem_t *item; > > - if (verbose <= 2) > + if (verbose <= 2 || list->count == 0) > return; I don't know the exact context, but I'd think it's better to print that we have a list and it's empty in many situations. This removes and uncertainty from the "consumer" (the user reading the output) of the "did bogofilter forget about this one?" kind. |