[PATCH] Bogofilter inconsistent spam_subject_tag

David Relson relson at osagesoftware.com
Fri Aug 1 14:14:53 CEST 2003


Rob,

The patch below fixes your problem.

David

--- src/main.c	1 Aug 2003 00:30:12 -0000	1.59
+++ src/main.c	1 Aug 2003 12:11:23 -0000
@@ -339,7 +339,7 @@
  	    if (status == RC_SPAM &&
  		rd >= subjlen &&
  		spam_subject_tag != NULL &&
-		strncasecmp(out, subjstr, subjlen)) {
+		strncasecmp(out, subjstr, subjlen) == 0) {
  		(void) fprintf(fp, "%.*s %s", subjlen, out, spam_subject_tag);
  		if (out[subjlen] != ' ')
  		    fputc(' ', fp);





More information about the Bogofilter mailing list