I've tried to run larch to copy one mailbox to another and found it cannot copy IMAP folders which contain non latin-1 characters in their names (encoded to UTF-8)
Here is the command I use:
larch --from imap://mail.radiooborontest.ru --to imap://localhost -V insane
This is a little exempt from stdout:
[19:33:24] [info] [>] mailbox INBOX.&BBAEOwQ1BDoEQQQ1BDk-
[19:33:24] [info] mail.radiooborontest.ru/INBOX.&BBAEOwQ1BDoEQQQ1BDk- -> localhost/INBOX.&BBAEOwQ1BDoEQQQ1BDk-
[19:33:24] [debug] [<] INBOX.&BBAEOwQ1BDoEQQQ1BDk-: getting mailbox status
[19:33:25] [error] unable to get status of mailbox: Mailbox doesn't exist: INBOX.&-BBAEOwQ1BDoEQQQ1BDk-
Complete stdout/stderr are in attachments.
Seems that larch (or ruby imap lib) adds extra - sign right after & when checking for folder existence. In the first run, when destination folders didn't exist it created them with correct names, however failed to find them right after creation. In subsequent runs larch doesn't try to create folders neither it can't find existing ones.
Can anyone halp me to overcome this issue? I'm good with programming, but unfamiliar with ruby and its build system, so step-by-step instructions are welcome :)