Re: How to send a non-standard IMAP command?

2010-06-25 Thread Xianwen Chen
On Jun 24, 2:25 pm, Tim Chase wrote: > On 06/24/2010 04:47 AM, Xianwen Chen wrote: > > > > > Thanks a lot for your reply! I thought it would be simpler if the > > problem was presented in a brief way. Unfortunately, not for this > > case. > > > Here is the d

Re: How to send a non-standard IMAP command?

2010-06-25 Thread Xianwen Chen
On Jun 24, 2:23 pm, Michael Torrie wrote: > On 06/24/2010 03:47 AM, Xianwen Chen wrote: > > > , but I got error messages. Any hint please? > > Why not just use a proxy server: > > http://sourceforge.net/projects/imapidproxy/ Hi Michael Thanks a lot! Yes, it would

Re: How to send a non-standard IMAP command?

2010-06-24 Thread Xianwen Chen
On Thu, Jun 24, 2010 at 2:25 PM, Tim Chase wrote: > On 06/24/2010 04:47 AM, Xianwen Chen wrote: > >> Thanks a lot for your reply! I thought it would be simpler if the >> problem was presented in a brief way. Unfortunately, not for this >> case. >> >> Here is t

Re: How to send a non-standard IMAP command?

2010-06-24 Thread Xianwen Chen
On 6/24/10, Tim Chase wrote: > On 06/23/2010 05:22 PM, Xianwen Chen wrote: >> I need to send one line of commands to an IMAP server. The commands >> are not standard IMAP protocols, hence it's not specified in >> http://docs.python.org/library/imaplib.html. > >

How to send a non-standard IMAP command?

2010-06-23 Thread Xianwen Chen
Dear Pythoners, I need to send one line of commands to an IMAP server. The commands are not standard IMAP protocols, hence it's not specified in http://docs.python.org/library/imaplib.html. Can you please give me a hint? Best regards, Xianwen -- http://mail.python.org/mailman/listinfo/python-li

Parsing email

2010-06-23 Thread Xianwen Chen
Hi guys, I use these codes to read emails from an IMAP server: import imaplib imap_srv_addr = "someserver" imap_srv = imaplib.IMAP4_SSL(imap_srv_addr) imap_srv.login("username","passwd") imap_srv.select("Inbox") msg = imap_srv.fetch(1, '(RFC822)') How can I parse msg so it can be appended to th