[Python-bugs-list] [ python-Bugs-588711 ] imaplib: prefix-quoted strings

noreply@sourceforge.net noreply@sourceforge.net
Wed, 21 Aug 2002 15:27:52 -0700


Bugs item #588711, was opened at 2002-07-31 05:07
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=588711&group_id=5470

Category: Python Library
Group: Python 2.2.1
>Status: Closed
>Resolution: Duplicate
Priority: 7
Submitted By: Matthias Klose (doko)
Assigned to: Piers Lauder (pierslauder)
Summary: imaplib: prefix-quoted strings

Initial Comment:
[From Debian BTS http://bugs.debian.org/150485]

From: John Goerzen <jgoerzen@quovix.com>
Subject: python2.2: imaplib: doesn't properly support
prefix-quoted strings

imaplib's fetch command is totally useless with many
servers.

They'll send the message body in this form:
{100}
Headers here, body here, (100 characters worth)

This is specified in RFC2060 secion 4.3.  imaplib's
fetch chokes on
"unexpected data" in the response.

imaplib should receive this prefix-quoted string
properly and return it in a
non-quoted fashion.

As it is, it is totally impossible to read messages
from most imap servers.

----------------------------------------------------------------------

>Comment By: Piers Lauder (pierslauder)
Date: 2002-08-22 08:27

Message:
Logged In: YES 
user_id=196212

This has been established to be the same bug report as
571334 "imaplib
fetch is broken" which has been fixed. This is a duplicate.
Closed.


----------------------------------------------------------------------

Comment By: Piers Lauder (pierslauder)
Date: 2002-08-03 20:53

Message:
Logged In: YES 
user_id=196212

(Apologies for delay in responding, i've been away.)

This command has been working fine for ages, so I'm
surprised it has suddenly stopped working. It still works
on my imap server which sends prefix-quoted
strings for fetch responses.

Can you run the test at the bottom of imaplib.py with
debugging turned on and e-mail me the output?

  python imaplib.py -d5 <imap_server_host>

Repeat if for each of the different imap servers you are
having the problem with (it would help if you could identify
the imap server version as well.)

That will help me track down the problem. Thanks!

----------------------------------------------------------------------

Comment By: Michael Hudson (mwh)
Date: 2002-07-31 18:29

Message:
Logged In: YES 
user_id=6656

Maybe you can stop test_imaplib failing while you're at it.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=588711&group_id=5470