All messages in the mailbox *
Messages whose internal date (disregarding time and timezone) is earlier than the specified date.
Messages whose internal date (disregarding time and timezone) is earlier than the specified date.
Date before
Messages that contain the specified string in the body of the message.
Messages that contain the specified string in the envelope
structure's tpe
field.
Messages that contain the specified string in the envelope
structure's tpe
field.
Type of the destination field
String to search for
Messages that contain the specified string in the envelope structure's From field.
Messages that contain the specified string in the envelope structure's From field.
String to search for
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).
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.
Header name
value to search for
Messages with an [RFC-2822] size larger than the specified number of octets.
Messages with an [RFC-2822] size larger than the specified number of octets.
Size in octets (bytes)
Messages that have the \Recent flag set but not the \Seen flag.
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 term.
Messages that do not have the \Recent flag set.
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 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 with an [RFC-2822] size smaller than the specified number of octets.
Size in octets (bytes)
Messages that do not match the specified search term.
Messages that contain the specified string in the header or body of the message.
Messages with unique identifiers corresponding to the specified unique identifier set.
Messages with unique identifiers corresponding to the specified unique identifier set.
individual uids
Messages with unique identifiers corresponding to the specified unique identifier set.
Messages with unique identifiers corresponding to the specified unique identifier set.
individual uid ranges
Messages with the flag set.*