IMAP: How to implement GMail-like threaded conversations view

Grant Edwards grante at visi.com
Fri Dec 19 17:30:43 EST 2008


On 2008-12-19, Jean-Paul Calderone <exarkun at divmod.com> wrote:
> On Fri, 19 Dec 2008 08:47:18 -0800 (PST), Martin <mrtot at gmx.de> wrote:
>>Currently I am trying to get used to Python's imaplib and email
>>modules.
>>I'like to create a webmail client simmilar to GMail.
>
> I'd suggest using Twisted's IMAP4 client.  It's somewhat easier to
> use than Python's imaplib because it does much more parsing of IMAP4's
> complex syntax for you.  It will also be easier to do IMAP4 and HTTP
> simultaneously if you're using Twisted.

Anything that helps with with the IMAP responses is worth
looking at, because parsing IMAP response messages is brutal.

I'm not sure what the IMAP protocol authors thought was going
to be parsing the replies, but it sure couldn't have been a
real-world computer program.  IMO, the IMAP protocol has
achieved a level of suckage that would make Microsoft proud.

But, it works.  Eventually.

-- 
Grant




More information about the Python-list mailing list