[Tutor] Stdin email question

james dean jamesdean@hotmail.com
Sat May 17 05:55:03 2003


I'm trying to read an email message from stdin.

I can get the email headers:

      headers = rfc822.Message(sys.stdin)

I can get the message body:

       body = sys.stdin.read()


but I can't for the life of me get the whole message headers and body in one 
go.

How can I do this please.

James

_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail