I'm iterating over the contents of an IMAP folder and when I use
var folder = "*TODO's*";
_imapClient.FolderExists(folder);
I receive the following Exception:
Unhandled Exception: System.ArgumentException: The specified folder ame contains special wildcard characters.
Parameter name: folder
at Rebex.Net.Imap.FolderExists(String folder)
However this works fine:
_imapClient.SelectFolder(folder);
Is this a bug or is there a way to escape the wildcard characters that exist in the name of the Imap folder?