Re: Parsing Email Headers

2010-03-12 Thread Thomas Guettler
T wrote: > Thanks for your suggestions! Here's what seems to be working - it's > basically the same thing I originally had, but first checks to see if > the line is blank > > response, lines, bytes = M.retr(i+1) > # For each line in message > for li

Re: Parsing Email Headers

2010-03-11 Thread T
Thanks for your suggestions! Here's what seems to be working - it's basically the same thing I originally had, but first checks to see if the line is blank response, lines, bytes = M.retr(i+1) # For each line in message for line in lines:

Re: Parsing Email Headers

2010-03-11 Thread MRAB
T wrote: On Mar 11, 3:13 pm, MRAB wrote: T wrote: All I'm looking to do is to download messages from a POP account and retrieve the sender and subject from their headers. Right now I'm 95% of the way there, except I can't seem to figure out how to *just* get the headers. Problem is, certain

Re: Parsing Email Headers

2010-03-11 Thread T
On Mar 11, 3:13 pm, MRAB wrote: > T wrote: > > All I'm looking to do is to download messages from a POP account and > > retrieve the sender and subject from their headers.  Right now I'm 95% > > of the way there, except I can't seem to figure out how to *just* get > > the headers.  Problem is, cer

Re: Parsing Email Headers

2010-03-11 Thread Grant Edwards
On 2010-03-11, T wrote: > All I'm looking to do is to download messages from a POP account and > retrieve the sender and subject from their headers. Right now I'm 95% > of the way there, except I can't seem to figure out how to *just* get > the headers. The headers are saparated from the body by

Re: Parsing Email Headers

2010-03-11 Thread MRAB
T wrote: All I'm looking to do is to download messages from a POP account and retrieve the sender and subject from their headers. Right now I'm 95% of the way there, except I can't seem to figure out how to *just* get the headers. Problem is, certain email clients also include headers in the me

Parsing Email Headers

2010-03-11 Thread T
All I'm looking to do is to download messages from a POP account and retrieve the sender and subject from their headers. Right now I'm 95% of the way there, except I can't seem to figure out how to *just* get the headers. Problem is, certain email clients also include headers in the message body