Problem with imaplib (weird result if mailbox contains a %)

Donn Cave donn at u.washington.edu
Thu Nov 30 12:59:54 EST 2006


In article <slrnemr1if.1ra.apardon at rcpc42.vub.ac.be>,
 Antoon Pardon <apardon at forel.vub.ac.be> wrote:
...
> $ telnet machine.domain imap
> Trying xxx.xxx.xxx.xxx...
> Connected to machine.domain
> Escape character is '^]'.
> * OK maxi Cyrus IMAP4 v2.2.13 server ready
> 0001 LOGIN ... ....
> 0001 OK User logged in
> 0002 LIST "" user/cpapen/*
> * LIST (\HasNoChildren) "/" "user/cpapen/Out"
> ...
> * LIST (\HasNoChildren) "/" "user/cpapen/music &- beats"
> * LIST (\HasNoChildren) "/" {25}
> user/cpapen/newsletters %
> * LIST (\HasNoChildren) "/" "user/cpapen/organisatie &- structuur"
> * LIST (\HasNoChildren) "/" "user/cpapen/sociale wetenschappen"


{5}\r\nhello\r\n is an IMAP "literal".  It's unlucky that
Cyrus uses this for some LIST responses and not others, since
that will be a surprise to clients that use ad hoc parsing -
like imaplib users.

   Donn Cave, donn at u.washington.edu



More information about the Python-list mailing list