How to escape wildcards in FolderExists

0 votes
asked Jan 30, 2018 by mtaber (220 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, 2018 by Pavel Matyska (13,940 points)
edited Apr 6, 2018 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.