Reading e-mail body (newbie)

Jacobus van der Merwe jacobus at geo.co.za
Tue Mar 27 14:51:08 CEST 2001


Hi,

I have a script to which e-mail to a certain address is relayed.

I need to write the body of the e-mail to a file.

I use

rfc822.Message(sys.stdin)

to read the e-mail, but I can't figure out how to access the body.
It seems that rfc822 only have methods to access the headers. ????

Any help will be appreciated.

Jacobus






More information about the Python-list mailing list