Click or drag to resize

ExpressionMessageId Method

Creates a criterion to find messages, that have a message-id header, that contains specified value (contains the specified string in the text of the header). If the string to search is zero-length, this matches all messages that have a Message-ID header name regardless of the contents.

Namespace: Limilabs.Client.IMAP
Assembly: Mail (in Mail.dll) Version: 3.0.26106.1555
Syntax
public static ICriterion MessageId(
	string messageId
)

Parameters

messageId  String
Message id.

Return Value

ICriterion
New expression.
Remarks
Some servers (Yahoo) require the search argument to be in exactly the same format, as the email header value. It's incorrect behavior, but there is a workaround for it: you can use Headers collection: IMail email = ... Expression.MessageId(email.Headers["Message-ID"])
See Also