If the folder name contains one or more spaces, the folder will not be created:
if (!imapClient.ExistFolder("A new folder")) { imapClient.CreateFolder("A new folder"); } imapClient.SelectFolder("A new folder"); // --> exception, folder doesn't exist
I am sorry, but if SelectFolder(“A new folder”) is called, it works at my end and does not throw any exception. However, I got an exception when calling imapClient.CreateFolder(“A new folder”). I have logged this bug (ID: 31043). We will look into this issue and will inform you when it gets fixed.