ImapQueryBuilder.HasHeader

ImapQueryBuilder.HasHeader method

Search messages that have a header with the specified field-name and that contains the specified string in the text of the header (what comes after the colon). If the string to search is zero-length, this matches all messages that have a header line with the specified field-name regardless of the contents.

public MailQuery HasHeader(string fieldName, string fieldValue)
ParameterTypeDescription
fieldNameStringName of the field.
fieldValueStringThe field value.

Return Value

MailQuery that represents search query (one searching criteria).

See Also