a python script which will parse an email message
chuck.amadi at ntlworld.com
Tue Jun 1 00:48:15 CEST 2004
Skip Montanaro wrote:
> chuck> Thus I home to get the body of the email messages as well using
> chuck> print >> output, msg['body'] Thus the None will hopefully contain
> chuck> Body Message Data.
>Nope, that's not how you get the message body. Read the docs for the email
>In particular, check out the get_payload method of the email.Message module.
>The dictionary-style access is only for getting header values and returns
>None for missing headers.
Cheers for getting me on the write track.take a look at it tomorrow .
More information about the Python-list