Is there any way to reliably parse email messages?

What I’m talking about is constructing a tree from an email message. Usually when you get an email and reply back and forth then you end up with something that looks something like this:

Is there any way to reliably parse a message like this and get a tree of messages with headers, top-posts, inline replies, bottom-posts, etc? I’ve been looking around for some time but I haven’t been able to find anything close to that.

Well this is something I plan on adding to the Notifiy wave robot so that it parses incoming emails and posts the relevant content to wave and even corrections to previous posts. Maybe in this case is easier than a multi level email since replies will always start from a clean message, so there’s just one level up.

Leave a Reply