I need to tokenize an email using python
Means, I need the headers, the text, each and everything to be stored in some different variable.
Currently I am trying to do it with this email class of python
Please let me know how to do it even if you know with email class
Thank you
Regards,
Puneet
Look in the standard python library documentation for the email package
Use email.parser.Parser.parse function to return a email.message.Message object that has the headers in a dictionary like representation