Click or drag to resize
MimeKit

SearchQueryOlderThan Method

Match messages older than the specified number of seconds.

Namespace: MailKit.Search
Assembly: MailKit (in MailKit.dll) Version: 4.7.1
Syntax
C#
public static NumericSearchQuery OlderThan(
	int seconds
)

Parameters

seconds  Int32
The number of seconds.

Return Value

NumericSearchQuery
A NumericSearchQuery.
Exceptions
ExceptionCondition
ArgumentOutOfRangeException The number of seconds cannot be less than 1.
Remarks

Matches messages older than the specified number of seconds.

Note  Note
This is equivalent to the OLDER search key as defined in rfc5032 and is therefor only available for use with IMAP servers that support the WITHIN extension.
See Also