[PATCH] X-Bogosity header

David Relson relson at osagesoftware.com
Mon May 5 16:40:33 CEST 2003


Fletcher,

Like other header lines, the "X-Bogosity:" line can be folded (wrap to 
additional lines).  The code to skip the spam header line was faulty.  It 
considered an empty line to be part of a folded header, so the lexer wasn't 
switching from header mode to body mode when it should.

The attached patch fixes the problem and has been added to the cvs repository.

David
-------------- next part --------------
Index: lexer.c
===================================================================
RCS file: /cvsroot/bogofilter/bogofilter/src/lexer.c,v
retrieving revision 1.21
diff -u -r1.21 lexer.c
--- lexer.c	17 Apr 2003 01:45:21 -0000	1.21
+++ lexer.c	5 May 2003 14:34:56 -0000
@@ -149,7 +149,7 @@
 	int count;
 	buff->t.leng = 0;		/* discard X-Bogosity line */
 	count = lgetsl(buff);
-	if (count <= 0 || !isspace(buff->t.text[0])) 
+	if (count <= 1 || !isspace(buff->t.text[0])) 
 	    return count;
     }
 



More information about the Bogofilter mailing list