I am writing code to parse forwarded emails. I'm not sure if there is a Python library, some RFCs that I could stick to, or some other resource that would allow me to automate the task.
To be precise, I don’t know if the “layout” of the forwarded letters is covered by some standard or recommendation, or if it has just been developed over the years, so now most email clients produce similar products for the text part:
Begin forwarded message: > From: Me <me@me.me> > Date: January 30, 2010 18:26:33 PM GMT+02:00 > To: Other Me <other-me@me.me> > Subject: Unwise question
- and is suitable for attachments (and any other sections of MIME may be there).
If it is not yet accurate enough, I’ll clarify it, I’m just not 100% sure what to ask about (RFC, Python lib, convention or something else).
python rfc
Tomasz zielinski
source share