To combine multiple keywords enclose the query in brackets,
e.g. the following matchess all unseen emails received from address sender-email@example.com
with subject the subject
:
(FROM "sender-email@example.com" SUBJECT "the subject" UNSEEN)
All messages in the mailbox; the default initial key for
ANDing.
Messages with the \Answered flag set.
Messages that contain the specified string in the envelope
structure's BCC field.
Messages whose internal date (disregarding time and timezone)
is earlier than the specified date.
Messages that contain the specified string in the body of the
message.
Messages that contain the specified string in the envelope
structure's CC field.
Messages with the \Deleted flag set.
Messages with the \Draft flag set.
Messages with the \Flagged flag set.
Messages that contain the specified string in the envelope
structure's FROM field.
Messages that have a header with the specified field-name (as
defined in [RFC-2822]) 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.
Messages with the specified keyword flag set.
Messages with an [RFC-2822] size larger than the specified
number of octets.
Messages that have the \Recent flag set but not the \Seen flag.
This is functionally equivalent to "(RECENT UNSEEN)".
Messages that do not match the specified search key.
Messages that do not have the \Recent flag set. This is
functionally equivalent to "NOT RECENT" (as opposed to "NOT
NEW").
Messages whose internal date (disregarding time and timezone)
is within the specified date.
Messages that match either search key.
Messages that have the \Recent flag set.
Messages that have the \Seen flag set.
Messages whose [RFC-2822] Date: header (disregarding time and
timezone) is earlier than the specified date.
Messages whose [RFC-2822] Date: header (disregarding time and
timezone) is within the specified date.
Messages whose [RFC-2822] Date: header (disregarding time and
timezone) is within or later than the specified date.
Messages whose internal date (disregarding time and timezone)
is within or later than the specified date.
Messages with an [RFC-2822] size smaller than the specified
number of octets.
Messages that contain the specified string in the envelope
structure's SUBJECT field.
Messages that contain the specified string in the header or
body of the message.
Messages that contain the specified string in the envelope
structure's TO field.
Messages with unique identifiers corresponding to the specified
unique identifier set. Sequence set ranges are permitted.
Messages that do not have the \Answered flag set.
Messages that do not have the \Deleted flag set.
Messages that do not have the \Draft flag set.
Messages that do not have the \Flagged flag set.
Messages that do not have the specified keyword flag set.
Messages that do not have the \Seen flag set.