How can I get text of the body (payload) of an email?

Paul Rubin http
Fri Oct 15 21:55:54 EDT 2004


"andrew blah" <andrew.stuart at xse.com.au> writes:
> Can anyone suggest a convenient way to get access to the raw message
> payload?

If you're using the mailbox module, the body text is what you get
from message.fp.read() where message is an rfc822 message object
from reading the mailbox.  Is that what you wanted to know?



More information about the Python-list mailing list