This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: imaplib: prefix-quoted strings
Type: Stage:
Components: Library (Lib) Versions: Python 2.2
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: pierslauder Nosy List: doko, mwh, pierslauder
Priority: high Keywords:

Created on 2002-07-30 19:07 by doko, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Messages (4)
msg11753 - (view) Author: Matthias Klose (doko) * (Python committer) Date: 2002-07-30 19:07
[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.
msg11754 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2002-07-31 08:29
Logged In: YES 
user_id=6656

Maybe you can stop test_imaplib failing while you're at it.
msg11755 - (view) Author: Piers Lauder (pierslauder) * (Python triager) Date: 2002-08-03 10:53
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!
msg11756 - (view) Author: Piers Lauder (pierslauder) * (Python triager) Date: 2002-08-21 22:27
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.
History
Date User Action Args
2022-04-10 16:05:32adminsetgithub: 36951
2002-07-30 19:07:21dokocreate