To find text in the displayed message, select
In the mail view, you can quickly search for messages by defining conditions.
Click on the search icon
Select the search condition from the list.
Some searches might be slow on remote mail accounts (e.g. IMAP+). If you select a search condition like
Select the scope from the drop-down list right to the text box.
For the
Enter the text you want to search for and press
If you start directly from the fourth step, text will be searched in mail's subjects and addresses and scope will be "Current folder".
If you search for messages that are not in the same folder rather often you might want to create a search folder instead; see Using Search Folders for more detail.
If you want to set several search conditions, you should use an Advanced search, which is described below.
One of the search conditions is a cite ""here""
is parsed as one word cite "here"
. For example, f:John Smith
filters messages for the From containing John
and the To, CC or Subject containing Smith
, while f:"John Smith"
filters messages for a sender John Smith
.
The syntax of the tags is <tag>[-<options>]:value
. The tags are:
Tag | Abbreviation | Meaning |
from | f | From header should match (*) |
to | t | To header should match (*) |
cc | c | CC header should match (*) |
recips | r | To or CC headers should match (*) |
subject | s | Subject header should match (*) |
list | Mailing list header should match (*) | |
header | h | given header should match (*) the syntax is: |
exists | e | whether given header exists |
tag | given user tag is set on a message | |
flag | whether certain flag is set; known special values are:
Any other value is checked for its non-emptiness. | |
label | l | whether certain label is set on the message |
size | sz | whether message size, in KB, is equal to the given value Two options are recognized, |
score | sc | compares |
body | b | checks message body for an existence of the given word; default compare options is for |
sent | message's Sent date should match (**) | |
received | rcv | message's Received date should match (**) |
attachment | a | message has (if the value is not any of |
location | m | Checks message location. The location value (URL) can be found in the folder |
mid | Compares message ID. |
(*) Header comparisons can have a matching type option. The default is to check for a contains
. The available options are:
Option | Abbreviation | Meaning |
contains | c | matches with contains |
has-words | w | matches if contains whole word |
matches | m | value's exact match |
starts-with | sw | header value starts with the given value |
ends-with | ew | header value ends with the given value |
soundex | se | header value sounds similar to given value |
regex | r | the given value is a regular expression |
full-regex | fr | another type of a regular expression |
(**) Dates can be written relatively (positive number means in the last X days
), while negative goes into the future. For example, to get messages received in the last 10 days use: recv:10
. An exact date can be used as well, the format can be either YYYY-MM-DD
(the preferred one), then ISO 8601 format or a date/date-time locale specific format. If the date/time parse fails, then the condition is skipped. The date compares can have extra options too, it's <
, =
or >
, where the >
is the default compare option.
There are three special tags, which require special notation. They are:
not:(....)
and:(....)
or:(....)
which allows to create specialized expressions. The default (the most outer) conjunction is and
. To change it to or
enclose the whole filter into or:(....)
. For example: f:Bugzilla t:John
filters all messages which contains Bugzilla
in the From and John
in the To, while
or:(f:Bugzilla t:John)
filters messages from Bugzilla or addressed to John.
A list of some free form expressions follows:
Expression | Meaning |
| Messages from |
| Messages, which contain both |
| Recipients' address (To/Cc headers) ends with |
| The |
| An |
| Label |
| Message size is less than 10KB |
| Message size is more than 100KB |
| The body contains a word |
| Messages sent in the last 7 days |
| Messages received on the February 2nd, 2020 |
| Messages with attachment |
| Messages without attachments |
| Messages whose recipient is |
| Messages from |
| Unread messages from |
| Read messages with attachment larger than 1MB from |
| Messages stored in the |
| Messages stored in all but the |