[PATCH] ids in received lines
David Relson
relson at osagesoftware.com
Fri Nov 14 17:56:20 CET 2003
pi,
Excellent test case. Thank you.
The [:blank:]*id line is bad. It should have doubled square brackets,
i.e. [[:blank:]]. The fix I've actually made is:
RCS file: /cvsroot/bogofilter/bogofilter/src/lexer_v3.l,v
retrieving revision 1.121
diff -u -r1.121 lexer_v3.l
--- lexer_v3.l 14 Nov 2003 14:48:19 -0000 1.121
+++ lexer_v3.l 14 Nov 2003 16:54:20 -0000
@@ -232,7 +232,7 @@
<INITIAL>charset=\"?{CHARSET}\"? { got_charset(yytext); skip_to('='); return TOKEN; }
<INITIAL>(file)?name=\"? /* ignore */
-<INITIAL>[:blank:]*id\ {ID} /* ignore */
+<INITIAL>{WHITESPACE}id\ {ID} /* ignore */
<INITIAL>\n[ \t] { lineno += 1; }
<INITIAL>\n\n { enum mimetype type = get_content_type();
More information about the Bogofilter
mailing list