ImapUtilsAnyOf Method
Creates IMAP search query of OR type.

Namespace: MailBee.ImapMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax
public static string AnyOf(
	params string[] list
)

Parameters

list
Type: SystemString
Search conditions to be ORed.

Return Value

Type: String
The string containing ORed search conditions.
Exceptions
ExceptionCondition
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.
Remarks

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).

See Also