How to escape wildcards in FolderExists

0 votes
asked Jan 30 by mtaber (200 points)

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?

Applies to: Rebex Secure Mail

1 Answer

0 votes
answered Jan 31 by Pavel Matyska (10,460 points)
edited Apr 6 by Lukas Pokorny
 
Best answer

Update: This has been fixed in Rebex Secure Mail 2018 R1.


We have made a hotfix build for this. You can download a trial version here.

Since you have paid support, please email us for the link where you can download non-trial version of this hotfix build.

...