I'm writing some code to parse forwarded emails. What I'm not sure is if maybe there is some Python library, some RFC I could stick to or some other resource that would allow me to automatize the task.
To be precise, I don't know if "layout" of forwarded email is covered by some standard or recommendation, or it has just evolved over the years so now most email clients produce similar output for the text part:
Begin forwarded message:
> From: Me <[email protected]>
> Date: January 30, 2010 18:26:33 PM GMT+02:00
> To: Other Me <[email protected]>
> Subject: Unwise question
-- and go wild for attachements and whatever other MIME sections can be there.
If it's still not precise enough I'll clarify it, it's just that I'm not 100% sure what to ask about (RFC, Python lib, convention or something else).