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


May 2024
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031