Home > Archive > Compilers > September 2007 > Mail grammar parse ?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Mail grammar parse ?
|
|
| superpippo 2007-09-20, 10:14 pm |
| I am interested in getting a of a grammar for parsing email
(headers, MIME attachments, etc)?
I have read the RFC 822 but I'm a bit .
Any help would be much appreciated
[Parsing mail headers with a formal grammar doesn't work very well, partly
because the grammar is so ugly, largely because real mail headers frequently
don't match the grammar. There's plenty of freeware mail parsers available,
no need to write yet another one. -John]
| |
| Detlef Meyer-Eltz 2007-09-23, 7:15 pm |
| > I am interested in getting a of a grammar for parsing email
> (headers, MIME attachments, etc)?
A parser of e-mail addresses according to the RFC 822 standard is one
of the examples of TextTransformer:
http://www.texttransformer.com
> I have read the RFC 822 but I'm a bit .
TextTransformer is a visual parser generator, by which you can execute
parsers step by step. So you can see which part of the input is
matched by which rules and tokens.
The parser for e-mail addresses is described in the documentation,
which is online too:
http://www.texttransformer.com/tthelp/example_email.htm
|
|
|
|
|