Is there any way to reliably parse email messages?

What I’m talking about is constructing a tree from an email message. Usuallu when you get an email and reply back and forth then you end up with something that looks something like this: [cc lang=”email”] Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. […]