Konrad Hinsen reports (viewmail-info, 2011-12-29)
I noticed that IMAP folder names containing non-ASCII characters are
represented incorrectly in VM. They work perfectly well, but the name
that is displayed (and required for input) is messed up. For the
German and French names I have in my account that's not so bad, but I
wouldn't want to deal with Greek or Chinese names.
I explored the issue a bit and found that the folder names are not
decoded from UTF-7 (which is what IMAP specifieds). The raw UTF-7
strings are used as Emacs strings. Inserting a simple utf7-decode
produces a perfectly fine folder list, but then all actions on those
folders fail because the folder names are not properly re-encoded in
UTF-7.
I think the easiest way of encoding folder names would be to decide that
- the "maildrop spec" would use UTF-7 names and
- the human-readable account:mailbox specifications would have decoded
characters.
In that case, `vm-imap- parse-spec- to-list' should decode the folder names
from UTF-7 into Emacs internal character set.
And, we would need to define a converse `vm-imap- encode- list-to- spec'
function that does the encoding. I will add this function in the trunk, and
you can then modify it.
When you get it to work, please send me a patch and I can add it in.
If you are going to be playing with code, it would be best to register as a
user on launchpad.net so that you can file and participate in bug reports
etc.
Cheers,
Uday