1
Vote

Imap Select MailBox Issue

description

Hi there,

When I try to select a folder which contains turkish character it returns me an error.
string folderName = "[Gmail]/Yıldızlı";            
Mailbox inbox = imap.SelectMailbox(folderName);
and the Imap4Exception is that;
Command "select "[Gmail]/Yıldızlı"" failed : 150721051043320 NO [NONEXISTENT] Unknown Mailbox: [Gmail]/Y?ld?zl? (now in authenticated state) (Failure)
How can I select the folder which's name has turkish character?

Thanks.

comments

jstedfast wrote Jul 22, 2015 at 3:28 PM

MailSystem.NET is broken beyond repair. You should switch to MailKit instead as it properly encodes non-ASCII mailbox names.

You can find MailKit at https://github.com/jstedfast/MailKit

If you have any further questions regarding MailKit, I would be happy to answer them.

Jeff