Is any one know some lex/yacc grammar for parsing rfc822 as it looks very horrifying to write a parser from scratch in C.
Is any one know some lex/yacc grammar for parsing rfc822 as it looks very horrifying to write a parser from scratch in C.
Be conservative in what you do, be liberal in what you accept from others.RFC 793, "Transmission Control Protocol."
I don't know of any offhand, but you should be able to find some GNU software implementing some subset of rfc822. That said, how famaliar are you with lex and yacc? Writing the lexical and the grammar file is not so horrifying if the specification is detailed well.
Last edited by okinrus; 11-06-2004 at 07:47 PM.