mbox parsing, specifically message body
cloughrm at gmail.com
Thu Jun 14 21:57:47 CEST 2012
Is anyone familiar with a simple way to parse mbox emails in Python? I use Mail::MBoxParser in perl and it provides a simple way to grab the bodies from the emails. In my research online, people have suggested searching for lines starting with "From ", but this doesn't seem reliable to me. I am using the built in mailbox module and am able to do something like:
for message in mbox:
It would be great if you could do something like the following:
Any thoughts are appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list