Skip to content
Mbox Viewer

Guide

Mbox Viewer Search Syntax Cheat Sheet

A complete reference for searching MBOX and EML archives in Mbox Viewer: from:, to:, subject:, body:, date:, has:attachment, size:>, OR, negation, and exact phrases — with copy-ready examples.

Published

Mbox Viewer’s search bar understands a compact query language modeled on the operators power users already know from Gmail. This cheat sheet covers every operator, how to combine them, and ready-to-use examples you can paste straight into the search field.

How search works

Type a query into the search bar and Mbox Viewer filters the open archive in real time — even across millions of messages. A bare word like invoice matches anywhere in the message. To be precise, add operators in the form field:value.

  • Operators are case-insensitive (From: and from: are identical).
  • Multiple terms are joined with AND by default.
  • There’s no need to re-index between searches; results update as you type.

Field operators

OperatorMatchesExample
from:The sender address or namefrom:[email protected]
to:A recipient (To field)to:[email protected]
cc:A carbon-copy recipientcc:[email protected]
subject:Text in the subject linesubject:invoice
body:Text in the message body onlybody:"wire transfer"
date:Messages on or around a datedate:2025-03-14
has:attachmentMessages that carry a filehas:attachment
size:>Messages larger than a sizesize:>10mb
size:<Messages smaller than a sizesize:<100kb

Combining terms

AND (the default)

Listing terms together requires all of them to match.

from:alice subject:report has:attachment

Finds messages from Alice, with “report” in the subject, that include an attachment.

OR

Use OR (uppercase) to match either term.

from:alice OR from:bob

Returns messages from Alice or Bob.

Negation

Prefix a term with - to exclude it.

subject:invoice -from:[email protected]

Finds invoice subjects but hides the automated no-reply sender.

Exact phrases

Wrap words in quotes to match the exact phrase in order.

subject:"final invoice 2025"

Without quotes, the words could appear separately and in any order.

Working with dates

The date: operator accepts ISO-style dates and ranges.

GoalQuery
A specific daydate:2025-03-14
On or after a datedate:>=2025-01-01
Before a datedate:<2025-06-01
A rangedate:2025-01-01..2025-03-31

Working with size

Size filters accept kb, mb, and gb suffixes. They’re perfect for finding the heavy messages eating up your archive.

has:attachment size:>25mb

Putting it together: practical recipes

GoalQuery
Find big invoice attachmentssubject:invoice has:attachment size:>5mb
All mail from two clients last quarter(from:acme OR from:globex) date:2025-04-01..2025-06-30
Exact-phrase contract mentionsbody:"master service agreement"
Newsletters to clean outfrom:newsletter -has:attachment
Large messages from anyonesize:>20mb
A person’s mail, excluding receiptsfrom:sam@ -subject:receipt

Tips for faster searching

  • Start broad, then add operators to narrow results instead of retyping.
  • Combine search with export — filter first, then export the results to CSV or EML.
  • Use quotes whenever word order matters, especially for names and phrases.

Search any archive, instantly

These operators work the same whether your file is 5 MB or 50 GB. Open your MBOX and start searching.

Get Mbox Viewer on the Mac App Store →

Open your archive with Mbox Viewer

Native macOS app. Streams MBOX and EML files of any size, fully offline.

Mac App Store