git imap-send: International folder names don't work
- From
- Andreas Grünbacher <andreas.gruenbacher@gmail.com>
- Date
- Jun 1, 2015, 10:31 UTC
- Message-ID
- <CAHpGcMJccbA3j-5MJ6Ux3J6M7p=dcAs4aKqzowSP_dMhf0Mevw@mail.gmail.com>
Hello,
the imap.folder config option specifies the folder name to use on the imap server.
At the protocol level, according to RFC 3501 Section "Mailbox International Naming Convention", folder names use a modified UTF-7 encoding. The git-imap-send command doesn't encode the folder name though; folder names that contain international characters don't work.
For example, my drafts folder is called "Entwürfe". When I set imap.folder to "[Gmail]/Entwürfe" I get an imap server error. When I put the encoded folder name into the config file ("[Gmail]/Entw&APw-rfe"), messages go to my drafts folder.
Could this please be fixed?
Thanks, Andreas