IMAP response parsing

Roger Binns rogerb at rogerbinns.com
Wed Jun 13 00:42:24 CEST 2001


The imaplib code seems very incomplete as it provides no
functionality at all in order to actually parse imap
responses.  You generally get back the raw imap response
with literals as seperate members of a tuple.  However
since an imap server *could* return almost everything
as a tuple, this is a nightmare to deal with, not to mention
the arbitrary use of quotes and parentheses by different
server vendors.

Has anyone got any parsing code out there that can make
more sense?

Roger
--
Roger Binns   rogerb at tarantella.com  http://www.tarantella.com
Business Development Manager, Tarantella
425 Encinal Street, Santa Cruz, CA 95060, USA
Tel 831 427 7367  Fax 831 427 5406






More information about the Python-list mailing list