Posts tagged ‘parsing’

Reading mail using python

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)

Victory.

July 20, 2011 at 3:36 pm Leave a comment

A book on parsing

Seems quite complete…

http://www.cs.vu.nl/~dick/PTAPG.html

February 12, 2008 at 2:30 am Leave a comment


August 2017
M T W T F S S
« Nov    
 123456
78910111213
14151617181920
21222324252627
28293031