Imap: Create new folder

May 16, 2012 at 6:59 AM
Edited May 16, 2012 at 7:01 AM

Good day!

I use Koolwired.IMAP-0.9.8.1.

I tried to create new folder and I use 

 ImapConnect connect = new ImapConnect() { Hostname=hostname, Port = port, SSL=isSSL};  

ImapCommand command = new ImapCommand(connect);                              

authenticate.Login();                                                                        

command.Create("New Folder");

After that I don't see any error, but the folder wasn't created.

Please, tell me what's wrong? 

May 16, 2012 at 7:47 AM

Sorry,

I found decision below.

Connection.Write(string.Format("CREATE {0} \r\n", name));

And I had error in my code.

             command.Create("INBOX.NewFolder");