aenetmail
aenetmail copied to clipboard
International decode in mailbox naming
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?
IMAP uses a modified UTF-7 charset encoding for international mailbox names (i.e. anything outside of the US-ASCII range).