Hello,
when trying to create a new folder on an IMAPv4 server, I'm getting the following exception:
Exception:
Client tried to access nonexistent namespace. (Mailbox name should probably be prefixed with: INBOX.)
Code:
await imap.CreateFolderAsync("Drafts");
While I do know that replacing "Drafts" with "INBOX.Drafts" would work, I'd assume I could query the server for this information before the exception is being thrown.
My investigation revealed that this might be the "Root folder path" Outlook sometimes needs to set, but it'd be bogus work to try and catch an exception every time I'm trying to create a folder due to the variety of my customer base (and therefore a variety of e-mail servers).