ImapUtilsAnyOf Method |
Namespace: MailBee.ImapMail
Exception | Condition |
---|---|
MailBeeInvalidArgumentException | Any of the specified search conditions is a null reference (Nothing in Visual Basic) or an empty string, or if the specified list of search conditions is empty. |
This method allows you to produce ORed query you can then pass to Search(Boolean, String, String) method. You can combine this method with other methods like AllOf(String) to build complex queries.
For instance, ImapUtils.AnyOf("SINCE 1-Feb-1994", "FLAGGED", "OLD") returns (OR (OR 1-Feb-1994 FLAGGED) OLD).