Click or drag to resize

ImapSearchNumbers Method (ICriterion)

Gets numbers of all messages that match specified criteria sorted from oldest to newest. Use And(ICriterion), Or(ICriterion, ICriterion) and other Expression methods to create a valid search query. You can also pass SimpleImapQuery to this method.

Namespace:  Limilabs.Client.IMAP
Assembly:  Mail (in Mail.dll) Version: 3.0.23341.1754
Syntax
public List<long> SearchNumbers(
	ICriterion criterion
)

Parameters

criterion
Type: Limilabs.Client.IMAPICriterion
Search criteria. Use And(ICriterion) to join several criterions

Return Value

Type: ListInt64
List of message numbers sorted from oldest to newest.
Examples
List<long> uids = imap.SearchNumber(Expression.And(Expression.Subject("report"), Expression.HasFlag(Flag.Unseen)));
See Also