singletons
Matthias Andree
matthias.andree at gmx.de
Tue Sep 9 00:30:26 CEST 2003
David Relson <relson at osagesoftware.com> writes:
> The lexer presently rules include the following:
>
> <INITIAL>^Message-ID:.* ;
That should be
<INITIAL>^(Resent-)?Message-ID:.* ;
> <INITIAL>^(Delivery-)?Date:.* ;
> <INITIAL>(ESMTP|SMTP)+[ \t\n]+id\ {ID} ;
> <INITIAL>[:blank:]*id\ {ID} ;
>
> The second to last has been changed (fixed) recently and the last is
> new.
Is it safe to do something like:
<INITIAL>^(In-Reply-To|References):.* { yyleng = memchr(yytext, ':',
yyleng) - yytext - 1; return TOKEN; }
or will lexer then read the remainder of the line as well because I
reduced yyleng?
--
Matthias Andree
Encrypt your mail: my GnuPG key ID is 0x052E7D95
More information about the Bogofilter
mailing list