[PATCH - second version] ids in received lines
David Relson
relson at osagesoftware.com
Fri Nov 14 18:46:59 CET 2003
On Fri, 14 Nov 2003 11:56:20 -0500
David Relson <relson at osagesoftware.com> wrote:
> 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:
Further testing showed the earlier patch to be wrong. This one passes
"make check" and hasn't done anything wrong -- that I've noticed. It's
been committed to cvs.
--- lexer_v3.l 14 Nov 2003 14:48:19 -0000 1.121
+++ lexer_v3.l 14 Nov 2003 17:44:32 -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>\n?[[:blank:]]id\ {ID} /* ignore */
<INITIAL>\n[ \t] { lineno += 1; }
<INITIAL>\n\n { enum mimetype type = get_content_type();
More information about the Bogofilter
mailing list