I read this already and wrote this script to fetch body for emails in some mail box which title begins with \'$\' and is sent by some sender.
import email, g
You can get the contents of the body by doing any of the following
msg.as_string() str(msg) repr(msg)
http://docs.python.org/2.7/library/email.message.html#email.message.Message