small enhancement patch for bogofilter's passthrough mode

Graham Wilson bob at decoy.wox.org
Mon Nov 25 01:20:11 CET 2002


im not sure if this is useful, but here is patch that cause bogofilter
to add the algorithm used to the X-Bogosity header in passthrough mode.
it changes the test name from 'bogofilter' to 'bogofilter-algorithm'.

--- main.c.orig	2002-11-24 18:16:13.000000000 -0600
+++ main.c	2002-11-24 18:15:59.000000000 -0600
@@ -22,6 +22,7 @@
 
 #include <config.h>
 #include "common.h"
+#include "method.h"
 
 #ifdef HAVE_SYSLOG_H
 #include <syslog.h>
@@ -163,9 +164,10 @@
 		    {
 			/* print spam-status at the end of the header
 			 * then mark the beginning of the message body */
-			(void)printf("%s: %s, tests=bogofilter, spamicity=%0.6f, version=%s\n", 
+			(void)printf("%s: %s, tests=bogofilter-%s, spamicity=%0.6f, version=%s\n", 
 				     spam_header_name, 
 				     (status==RC_SPAM) ? "Yes" : "No", 
+					 method->name,
 				     spamicity, VERSION);
 		    }
 		}

--
gram



More information about the bogofilter-dev mailing list