Re: Trying to understand rfc822.Message() behaviour

2006-11-30 Thread Phoe6
Fredrik Lundh wrote: > Phoe6 wrote: > > > Have a look at this snippet, I have a file direct.txt and I want to > > read it as rfc8222.Message() so that I get the Subject: and Mood: as > > Dict Keys and content separately, but I am unable to get the Content > > Properly. > > because the rfc822.Messa

Re: Trying to understand rfc822.Message() behaviour

2006-11-30 Thread Neil Cerutti
On 2006-11-30, Phoe6 <[EMAIL PROTECTED]> wrote: > Hi all, > Have a look at this snippet, I have a file direct.txt and I want to > read it as rfc8222.Message() so that I get the Subject: and Mood: as > Dict Keys and content separately, but I am unable to get the Content > Properly. > fhandle =

Re: Trying to understand rfc822.Message() behaviour

2006-11-30 Thread Fredrik Lundh
Phoe6 wrote: > Have a look at this snippet, I have a file direct.txt and I want to > read it as rfc8222.Message() so that I get the Subject: and Mood: as > Dict Keys and content separately, but I am unable to get the Content > Properly. > fhandle = open('direct.txt','r') print fhandle.

Trying to understand rfc822.Message() behaviour

2006-11-30 Thread Phoe6
Hi all, Have a look at this snippet, I have a file direct.txt and I want to read it as rfc8222.Message() so that I get the Subject: and Mood: as Dict Keys and content separately, but I am unable to get the Content Properly. >>> fhandle = open('direct.txt','r') >>> print fhandle.read() Subject: te