aenetmail icon indicating copy to clipboard operation
aenetmail copied to clipboard

International decode in mailbox naming

Open razinalex opened this issue 12 years ago • 2 comments

Hi again. I have the next problem with correct decode russian names. Code: ImapClient ic = new ImapClient("imap.mail.ru", "[email protected]", "iecnhtymrj",ImapClient.AuthMethods.Login, 993, true); // Select a mailbox. Case-insensitive Mailbox[] boxes = ic.ListMailboxes("",""); foreach (Mailbox m in boxes) { Console.WriteLine("----"); Console.WriteLine(m.Name); Console.WriteLine("----"); }

Some folders have russian name and for them output like "&BB4EQgQ,BEAEMAQyBDsENQQ9BD0ESwQ1-"

Is it possible to fix this?

razinalex avatar Dec 05 '12 09:12 razinalex

IMAP uses a modified UTF-7 charset encoding for international mailbox names (i.e. anything outside of the US-ASCII range).

jstedfast avatar Jan 11 '14 17:01 jstedfast