OpenMail

Search operators

Every filter you can type in the OpenMail search field, with examples.

Type words to find messages that contain them in the subject, the sender, the message text or the text of an attachment. Add a filter to narrow the results. Filters combine with each other and with plain words.

The search field suggests the common filters when you start typing their name, for example has or is:. Every filter below works when typed, including those the field does not suggest.

Words and phrases

QueryFinds
invoiceMessages with the word invoice. Results show where it matched: subject, sender, message text, file name or attachment text.
"annual report"The exact phrase.
budg*Words that start with budg.
-newsletterLeaves out messages with the word. A minus sign works before any filter too.
invoice OR receiptEither word. Parentheses group terms: (invoice OR receipt) from:alice.
alpha AROUND 3 betaThe two words at most three words apart.

While you type in the search field, a last word of two or more characters also matches longer words, so asy finds async and 10:0 finds 10:00. A typed space ends the word; Enter keeps it a prefix. Saved searches, server search, the CLI and MCP match whole words; add *, as in budg*, to ask for a prefix. A trailing * is also accepted on from:, to:, cc:, bcc:, filename:, list: and deliveredto:, as in from:pri*. These operators already match any part of the value. Label and folder names match whole: label:Work* is searched as plain text.

People

FilterFinds
from:aliceMessages from a name or address.
to:bob@example.comMessages sent to a name or address.
cc:carolMessages that copied a name or address.
bcc:daveMessages you sent with a blind copy to a name or address.
list:team@example.comMessages from a mailing list.
deliveredto:me@example.comMessages by their Delivered-To header.

Subject and headers

FilterFinds
subject:dinnerWords in the subject.
header:X-Mailer:PostboxMessages with a header value.
rfc822msgid:<id@example.com>One message by its Message-ID header.

State, labels and folders

FilterFinds
is:unread, is:readUnread or read messages.
is:starredStarred messages.
is:importantMessages marked important.
label:WorkMessages with a label, by name in any case. folder:Work does the same.
in:inbox, in:sent, in:trash, in:spamMessages in a folder.
in:anywhereIncludes Spam and Trash.
category:promotionsGmail category tabs: primary, social, promotions, updates, forums.
has:userlabels, has:nouserlabelsMessages with or without any label of your own.

Attachments

FilterFinds
has:attachmentMessages with attachments.
has:pdf, has:image, has:document, has:spreadsheet, has:presentationMessages with an attachment of that type.
has:driveGmail messages with a Google Drive link.
filename:report.pdfAn attachment file name that contains the text.
in:attachmentSearches only the text inside attachments, including recognized text in images.

Dates and sizes

FilterFinds
after:2026-01-31, before:2026-03-01Messages after or before a date. newer: and older: are the same.
newer_than:7d, older_than:1yMessages newer or older than a period: d days, m months, y years.
larger:5M, smaller:100KMessages larger or smaller than a size. size: is the same as larger:.

Outlook does not report a message size, so OpenMail estimates it from the body and the attachment sizes. On other accounts, a message whose size is unknown passes size filters.

A date or size filter without a valid value, such as newer:foo, is searched as plain text. The CLI and MCP list it under ignored. See CLI and MCP.

In the app

Click the empty search field to see your recent searches. A search is saved when you press Return or open one of its results. Remove one with the × on its row or by pressing Delete while it is highlighted. Recent searches stay on this Mac and are cleared when you remove an account.

Typing shows matching recent searches, labels, and filters whose name starts with what you typed. From the third letter of a name it also offers people, as from: and to:.

When you open a result, the search words are marked in the message text and a bar above it shows the number of matches. Press ⌘G and ⌥⌘G to move between them. A result marked Related was found by on-device semantic search: it shares meaning with the query but not its words, so nothing is marked.

On this page