Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

Re: [milter-greylist] Little issue with conf parser

2004-06-14 by Matthieu Herrb

manu@... wrote:

> Cyril Guibourg <cg+milter-greylist@...> wrote:
> 
> 
>>addr 213.91.0.0/17    # Teaser / Firstream
> 
> 
> Um, true. I don't see how to fix that yet, but I'm sure it's possible.
> Anyone has a suggestion? (remove the lex/yacc parser is a bad suggestion
> :)

You can eat comments to the end of line in the lexer using C code 
instead of using an expression. Iirc the usual idiom for that is 
something like:

"#" { 	while (input() != '\n')
		;
	conf_line++;
     }

-- 
					Matthieu

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.