Re: [Tutor] Splitting email headers when using imaplib

2014-02-05 Thread Some Developer
On 05/02/2014 09:12, Peter Otten wrote: Some Developer wrote: I'm currently trying to download emails from an IMAP server using Python. I can download the emails just fine but I'm having an issue when it comes to splitting the relevant headers. Basically I'm using the following to fetch the he

Re: [Tutor] Splitting email headers when using imaplib

2014-02-05 Thread Dave Angel
spir Wrote in message: > > I have no idea of the pattern or structure of email headers. Would you post > some > example of 'msg_header_content[0][1]'? > > In the meantine, try to suppress \r from the regex formats. (Shouldn't be > here, > because when reading strings from files, python con

Re: [Tutor] Splitting email headers when using imaplib

2014-02-05 Thread Peter Otten
Some Developer wrote: > I'm currently trying to download emails from an IMAP server using > Python. I can download the emails just fine but I'm having an issue when > it comes to splitting the relevant headers. Basically I'm using the > following to fetch the headers of an email message: > > typ,

Re: [Tutor] Splitting email headers when using imaplib

2014-02-04 Thread spir
On 02/04/2014 06:38 PM, Some Developer wrote: I'm currently trying to download emails from an IMAP server using Python. I can download the emails just fine but I'm having an issue when it comes to splitting the relevant headers. Basically I'm using the following to fetch the headers of an email m

[Tutor] Splitting email headers when using imaplib

2014-02-04 Thread Some Developer
I'm currently trying to download emails from an IMAP server using Python. I can download the emails just fine but I'm having an issue when it comes to splitting the relevant headers. Basically I'm using the following to fetch the headers of an email message: typ, msg_header_content = self.m.fe