Re: [Tutor] Email and MIME

2008-09-11 Thread Kent Johnson
On Wed, Sep 10, 2008 at 10:30 PM, grishma govani <[EMAIL PROTECTED]> wrote: > Yes, I used the part of the code from the second link. > I am using the mailbox modules too. > > I have the e-mails from gmail in a file on my computer. I have used the code > below extract all the headers. As you can see

Re: [Tutor] Email and MIME

2008-09-10 Thread Kent Johnson
On Wed, Sep 10, 2008 at 4:06 PM, grishma govani <[EMAIL PROTECTED]> wrote: > Hello Everybody, > > I have been trying to extract the body of all the email messages from an > mbox file. How are you doing this? Have you seen the mailbox module and this recipe: http://docs.python.org/lib/mailbox-mbox.

[Tutor] Email and MIME

2008-09-10 Thread grishma govani
Hello Everybody, I have been trying to extract the body of all the email messages from an mbox file. I have manages to separate the headers and get a string out that looks like 1) and 2) I would like to just extract the message and if there is only jibberish as in the case of 1), I would ex