Unicode in folder names
konrad.hinsen at fastmail.net
Fri May 11 08:18:12 BST 2012
I have been running offlineimap 184.108.40.206 for a while without any problems.
Now I am setting it up on a new machine, using the latest release, 220.127.116.11,
and I am running into problems with the IMAP folder names that contain
non-ASCII characters. Both machines run MacOS X 10.6.
IMAP uses utf-7 for encoding folder names. Offlineimap doesn't handle
this, but recipes for fixing this are easy to find,
That's what I was using with 18.104.22.168.
For 22.214.171.124, I had to modify my setup because of the new requirement for
reverse name translation. Inverting the re-encoding is of course no more
difficult, so this looked easy. The problem is just that it doesn't work.
I verified that back-and-forth translation reproduces the original
folder name, so that is not the cause of my trouble. Further investigation
showed that the name of the local folder generated by offlineimap
is wrong; it does not match the utf-8 string that my nametrans function
Before digging deeper into this, I wonder if anyone else has already
looked into this? I also wonder what the long-term plans for offlineimap
are concerning international characters. The best solution would be to
have offlineimap handle UTF-7 foldernames automatically. Is this something
that just didn't get done yet, or is there a good reason for not doing it?
More information about the OfflineIMAP-project