Search basics

Mbox Viewer searches the selected mailbox as you type in the Search mail bar at the top of the window. Every word you type must appear in a message for it to match, and the search ignores accents and case. The app builds a full-text index of the file the first time you open it, so a search reads the index and never rereads the mbox file.

  1. Select a mailbox in the sidebar and wait until its indexing finishes.
  2. Click the Search mail bar, or press / anywhere in the window.
  3. Type one or more words. The list refreshes 250 ms after you stop typing.
  4. Press Enter to run the search at once and add it to Recent searches.

The header of the list shows the number of results and the time the search took in milliseconds. Click the cross in the search bar to clear it and list every message again.

How do several words combine?

Words separated by spaces must all appear in the message. They do not need to be next to each other or in the same field. atlas budget finds a message whose subject contains "Atlas" and whose body contains "budget".

You type Mbox Viewer finds
electricity invoice messages that contain both words
"kickoff meeting" the exact phrase, words in this order
atlas OR budget messages that contain either word
atlas -budget messages with "atlas" and without "budget"
invoic* words that start with "invoic"

OR must be written in capital letters. Every operator and the rules for grouping them are in the Operators reference.

Where does a plain word search look?

A word without an operator is searched in five places. When you sort by Relevance, a match in the subject counts the most and a match in the sender comes second.

  • The subject
  • The sender name and address
  • The To and Cc recipients
  • The message body
  • The names of the attachments

The search matches whole words. It does not reduce words to their root, so invoice does not find "invoices". Add a * at the end of a word to search for every word that starts with it.

How are accents and case handled?

The index stores every word in lowercase and without accents. resume finds "Résumé", reunion finds "Réunion" and ZURICH finds "Zürich". The same rule applies to every operator, including from: and subject:.

How do I sort the results?

Use the Sort by menu above the list. It offers three orders.

Option Order
Newest most recent message first (the default)
Oldest oldest message first
Relevance best match first, with the subject and sender weighted higher

The list loads 50 messages at a time and loads the next 50 when you scroll down. Matching words are highlighted in bold in the sender, the subject and the extract under it.

How do I use the Advanced search form?

Click the chevron at the right end of the search bar to open Advanced search. Fill in the fields you need and click Search. The form writes the query in the search bar, so you can learn the syntax from it.

The Advanced search form with From set to olivia and Has the words set to mockups, and the query from:olivia mockups shown at the bottom
The Advanced search form writes the query for you and shows it before you click Search.
Field Query it writes
From from:olivia
To to:jack
Subject subject:"weekly report"
Has the words the words as you typed them
Doesn't have each word with a - in front, such as -newsletter
Size with greater than or less than larger:2M or smaller:500K
After and Before after:2026/03/01 before:2026/04/01
Has attachment has:attachment

Clear criteria empties every field. The form puts a value in quotation marks when it contains a space, so Subject set to "weekly report" becomes subject:"weekly report".

What do sender suggestions and recent searches do?

When you type from: followed by a few letters, the bar suggests up to 10 matching senders under Senders. Each suggestion shows the number of messages from that sender. Pick one with the arrow keys and Enter, or click it.

When you click the empty search bar, Recent searches lists your last 10 searches. They are stored on this computer only and are shared by all your mailboxes.

What does a search warning mean?

Mbox Viewer never rejects a query. When part of it cannot be used, the app runs the rest and shows a warning under the search bar. A few examples follow.

Warning What happened
Unknown operator “foo:” (searched as text) foo: is not an operator, so the app searched for the text
Unclosed quotation marks (the phrase runs to the end of the query) a " has no closing mark
Invalid date for after: “2026/13/01” the date does not exist, so the operator was ignored
Unknown tag: “Clients” no tag has this name in this mailbox

Fix the part named in the warning and search again. The other warnings appear in the Operators reference.

Yes. The MCP server of Mbox Viewer accepts the same query language in its search_messages tool. An agent such as Claude can send from:olivia has:attachment and get the same results as the app. To connect one, follow Set up Claude Desktop.

Frequently asked questions

How do I search an mbox file in Mbox Viewer?

Open the file, wait for indexing to finish and type your words in the Search mail bar. The list updates while you type, and Enter runs the search at once. Press / from anywhere in the window to jump to the search bar.

Is the search case sensitive?

No. Search ignores case and accents, so resume finds "Résumé" and REUNION finds "réunion".

Why does a search for invoice not find invoices?

Mbox Viewer matches whole words and does not reduce words to their root. Type invoic* to find every word that starts with "invoic", or search for both forms with invoice OR invoices.

Where does a plain word search look?

A plain word is searched in the subject, the sender, the To and Cc recipients, the message body and the attachment names. Use an operator such as subject: or from: to search one field only.

Can I search while the file is still being indexed?

No. The search bar stays disabled until indexing finishes. Indexing happens once per file, and opening the same file again later is instant.

Does Mbox Viewer search spam and trash?

Yes. A search covers every message of the mailbox, spam and trash included. Add -in:spam -in:trash to your query to leave them out.

How do I see all messages again?

Click the cross in the search bar to clear the search. An empty query lists every message of the mailbox and shows the newest first.

Are my recent searches saved?

Yes. The app keeps your 10 most recent searches on this computer and shows them under Recent searches when you click the search bar. A search enters the list when you press Enter or pick a suggestion.

Can I search several mailboxes at once?

No. A search runs in the mailbox selected in the sidebar. Click another mailbox under Mailboxes to search it with the same query.