bogofilter and crontab

David Relson relson at osagesoftware.com
Fri Jun 4 15:18:47 CEST 2004


On Tue, 01 Jun 2004 23:11:50 -0400
Tom Allison wrote:

> I haven't had a chance to upgrade yet, but I was wondering if there
> was a way that I could put a crontab entry for bogotune to give me a
> monthly output of what it recommends and then compare that to what I
> currently have.
> 
> The difficulty seems to be the progression dots...
> It comes across as:
> 
> .
> ..
> ...
> ....
> .....
> 
> You get the idea...
> I don't mind the rest, but the dots kind of spoil it.
> 
> My intention here was to have a means of getting a periodic reading on
> 
> what my bogotune parameters might be in order to optimize the 
> configuration and then decide to go from there.
> 
> But bogotune takes a long time to run and with the new version and
> it's options, I suspect this will become much longer, making crontab
> entries a more viable option (to burn CPU cycles while I burn ZZZ's).

Hi Tom,

The progress bar should be subservient to the "-q" switch, but isn't. 
Here's a patch which I've just added to cvs.

Index: bogotune.c
===================================================================
RCS file: /cvsroot/bogofilter/bogofilter/src/bogotune.c,v
retrieving revision 1.141
diff -u -r1.141 bogotune.c
--- bogotune.c	29 May 2004 13:27:19 -0000	1.141
+++ bogotune.c	4 Jun 2004 13:15:49 -0000
@@ -1122,6 +1122,10 @@
 {
     uint i;
     uint ndots = ceil(70.0 * cur / top);
+
+    if (quiet)
+	return;
+
     if (ndots < 1)
 	ndots = 1;
      printf("\r%3u [", cur);



More information about the Bogofilter mailing list