Posts tagged ‘parsing’
There may be a better way to go about this… however this works without requiring too much code.
* Use imapclient to fetch messages.
* Use fetch to get the full message using ‘BODY‘
* Parse this with email.parser.Parser
* Use walk to pull out the message part (emails contain multiparts)