 | 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.IMAPAssembly: Mail (in Mail.dll) Version: 3.0.26106.1555
Syntaxpublic 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 String
- Message id.
Return Value
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