-v anomaly?

David Relson relson at osagesoftware.com
Thu Jan 29 02:38:55 CET 2004


Hi Greg,

'Tis true.  When it comes time to print the message and its statistics,
passthrough ('-p') counts as 1 level of verbosity ('-v').  When I wrote
the code, the thought was that "-v" would add to what's printed with
"-p".  With that thought, "-p -v" has to do something different than
"-p" and printing the histogram is the logical "something".

If the code is changed, then "-p -v" is equivalent to "-p" which doesn't
seem too useful.

If enough people want that behavior the change could be made.

If you want to experiment on your own, the patch is below.

HTH,

David


Index: passthrough.c
===================================================================
RCS file: /cvsroot/bogofilter/bogofilter/src/passthrough.c,v
retrieving revision 1.21
diff -u -r1.21 passthrough.c
--- passthrough.c	19 Jan 2004 18:21:41 -0000	1.21
+++ passthrough.c	29 Jan 2004 01:30:40 -0000
@@ -256,9 +256,7 @@
 	fprintf(fpo, "%s\n", msg_spam_header);
 
     if (passthrough || verbose || Rtable) {
-	verbose += passthrough;
 	print_stats( stdout );
-	verbose -= passthrough;
     }
 
     if (passthrough && !seen_subj) {
.  




More information about the Bogofilter mailing list