| 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.23341.1754
Syntax public static ICriterion MessageId(
string messageId
)
Public Shared Function MessageId (
messageId As String
) As ICriterion
public:
static ICriterion^ MessageId(
String^ messageId
)
static member MessageId :
messageId : string -> ICriterion
Parameters
- messageId
- Type: SystemString
Message id.
Return Value
Type:
ICriterionNew 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