I'll open with a summary, present details of the problem, and then
present what I think should have happened. As an appendix, I'll
include the full output of an IMAP "x list inbox.* *" command, and
the full html page produced by IMP's "folders.php" page. (The
inclusion of the "folders.php" page is the reason this report is so
long -- 63k of that, compared against 8k of my own text.)
Be aware that the some of the html excerpts in this document use ASCII
NULLs. Handle this text file with tools that will leave the NULLs
intact. If you think the file has been corrupted, you can go to
to find a link to the
original copy of the file. One of my goals is for IMP to be fixed so
that it stops putting NULLs into its html.
Problem summary:
---------------
This bug report concerns IMP's html frontend. Even though IMP is
capable of reading UTF-7 encoded Unicode folder names from the imap
server, IMP messes up when re-coding the Unicode names into the html
presented to the user's browser.
Raw double-byte characters are dropped into the html stream without
any labeling or protection; the browser renders them as pairs of
single-byte characters, destroying any original meaning.
Additionally, it's not possible to click-navigate to folders whose
names use Unicode, because IMP does not accept as input the html links
that it itself produced as output.
Effects:
The drop-down menus on the corners of pages
have wrongly displayed names, and
don't work when I choose a Unicode-named folder from the menu.
The list of folders produced by "folders.php"
has wrongly displayed names,
fails to list all of my folders, and
doesn't work when I choose a Unicode-named folder on the page.
Details of the problem:
-----------------------
According to the footer on the login page, I'm using IMP 3.0.
My imap account has folders designed to stress-tests imap clients.
Some of the names (as stored on the server) include:
x list inbox.utf.* *
[...]
* LIST () "." "inbox.utf.&-AMA-"
* LIST () "." "inbox.utf.&AMA-"
* LIST () "." "inbox.utf.&ICI-"
* LIST () "." "inbox.utf.&ZeVnLIqe-.&U,BTFw-"
[...]
x OK Completed
The "&ZeVnLIqe-"/"&U,BTFw-" name is copied straight from rfc 2060 and
was created by hand. The other folder names were created with
Mozilla. All encoded names are decoded properly by Mozilla and by
Outlook and by IMP's imap backend.
IMP's web pages have a drop-down menu (a