How to escape wildcards in FolderExists

0 votes
asked Jan 30 by mtaber (180 points)

I'm iterating over the contents of an IMAP folder and when I use

var folder = "*TODO's*";

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:


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,080 points)
selected Jan 31 by mtaber
Best answer


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.