help with rfc822

drmental at my-deja.com drmental at my-deja.com
Fri Jan 21 00:10:30 EST 2000


Please help a newbie,

I'm trying to parse an email that is received with poplib, what i need
out of it is the email address of the sender and the email body.

I've tried to store the email as a temp file and then use the
rfc822.Message(tmpfile) and that does not return a Message instance.
I've tried to use the StringIO and that give me an error.  Can someone
give me a brief example of how get the email addres out of an email that
is stored as a string?

Thanks in advance,

Mats Nordgren


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list