Search finds nothing

When a search in Mbox Viewer returns nothing, the query is almost always stricter than intended. Every word you type must appear in the message, words match only in their exact form, and the search runs in the selected mailbox only. The list then shows "No messages match your search." Go through the checks below in order. Most fixes take one edit of the query.

Is the right mailbox selected and ready?

Search runs in the mailbox selected in the sidebar. It does not cover all mailboxes together. Select the mailbox that holds the messages and run the search again.

The mailbox must also be ready. During its first indexing the sidebar shows Indexing… 42% and search is not available yet. If the sidebar shows File changed or Index needs rebuilding, an action may fail with "The mailbox “Name” is not ready: wait for indexing to finish or reindex it." Click Reindex, and see Indexing problems for each status.

Is a sidebar filter still in the query?

A click on a label, a tag or a folder in the sidebar writes a filter into the search bar. The filter looks like label:"Inbox" or tag:"Client Atlas". Words you type afterwards combine with that filter. Click Clear search (the cross in the search bar) to start from all messages, or click the selected item again in the sidebar.

Are all the words really in the message?

Several words separated by spaces must all appear in the same message. A query of 5 words fails when one of them is missing. Use these forms to relax the query:

You want Type
Messages with either word invoice OR receipt, or {invoice receipt}
A word and its longer forms invoic*
An exact phrase "kickoff meeting"
Everything except a word atlas -budget

Search has no stemming. The query invoice does not find "invoices", and meet does not find "meeting". Add * to the end of the word to match every word that starts with it.

Does the word appear where the app looks?

Plain words are searched in the subject, the sender and recipient addresses, the body and the names of the attachments. Some text is not indexed at all:

  • The content of attachments, such as a PDF, a Word file or a spreadsheet, is not searched. Use filename:pdf or filename:invoice to find an attachment by its name.
  • Text inside images, including scanned documents, cannot be searched.
  • A field operator restricts the search to one field. The query subject:budget misses a message that mentions the budget in its body only.

Are the dates and sizes written the way the app reads them?

Dates are a frequent source of empty results. The app reads them in local time.

Rule Example
after: includes the date you give. after:2024/01/01 starts on 1 January 2024.
before: excludes the date you give. before:2024/07/01 ends on 30 June 2024.
A date with the year last puts the day first. 12/03/2024 is 12 March 2024.
The app accepts seven date formats. The formats are 2024/03/12, 2024-03-12, 12/03/2024, 12-03-2024, 2024/03, 2024-03 and 2024.
Ages take the units d, w, m and y. newer_than:7d covers the last 7 days.
The size units K, M and G are powers of 1024. larger:5M finds messages over 5 MiB.

A message without a readable Date header takes the date of its From separator line. When that line has no date either, the message is dated 1 January 1970, and date filters can leave it out. Every accepted date format appears in Dates, sizes and attachments.

What do the warning chips mean?

The search never fails on a malformed query. It searches what it could read and shows a warning chip under the search bar for the rest. Read the chip before you change anything else.

Warning What the app did
Unknown operator “foo:” (searched as text) It searched foo:bar as plain words. Check the spelling of the operator.
Unclosed quotation marks (the phrase runs to the end of the query) The phrase took every word up to the end. Close the quotation marks.
Unclosed parenthesis It closed the group at the end of the query.
Invalid date for after: “2024/13/01” It ignored the date. Use one of the accepted formats.
Unknown tag: “Name” No tag has that name in this mailbox, so nothing matches. Check the name in the sidebar.
Missing value for from: (ignored) The operator had no value and was skipped.
The Search operators dialog of Mbox Viewer lists each operator with an example and its meaning.
Press ? to open the help on search operators and keyboard shortcuts.

How do I check a query step by step?

  1. Press / to go to the search bar, then clear it.
  2. Type one distinctive word, such as a surname, and press Enter.
  3. Add one operator at a time, such as from: or after:, and watch the result count.
  4. When the count drops to zero, the last part you added is the cause.

The chevron in the search bar opens Advanced search, a form that writes the operators for you. Press ? to open the list of operators with an example for each one. The operators reference gives the rules of each operator in detail.

What if the message is really missing?

If a message you know exists never appears, check that it was indexed. Clear the search, sort by date and scroll to its date. If it is not there, the message may sit in another mbox file, or the export may be incomplete. Thunderbird, for instance, keeps each folder in a separate mbox file. Indexing also skips the messages that Thunderbird marked as deleted without compacting the folder. The other causes of a short count are covered under indexing problems.

Frequently asked questions

Why does my search return no message?

The most common cause is a word that appears in no message in exactly that form. Search needs every word you type and does not match plural or conjugated forms. Remove words one at a time, or add * to a word to match its longer forms.

Does Mbox Viewer search every open mailbox at once?

No. A search runs in the mailbox selected in the sidebar only. Select the other mailbox and run the search again.

Why does "invoice" not find "invoices"?

Search has no stemming, so it matches whole words as written. Type invoice* to find "invoice", "invoices" and "invoiced", or join the forms with OR.

Does search look inside attachments?

No. Search reads the subject, the addresses, the body and the names of attachments. The content of a PDF, an image or an Office file is not indexed, so use filename: to find an attachment by its name.

Is the search case sensitive?

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

Why does my date search miss messages?

The before: operator excludes the date you give, and a date with the year last is read day first. before:2024/07/01 stops at 30 June, and 12/03/2024 means 12 March 2024.

What does a warning chip under the search bar mean?

A warning chip means that part of the query was ignored or read differently. For example, an unknown operator is searched as plain text and an unclosed parenthesis is closed at the end. Fix the part named in the chip.

Why does the mailbox say it is not ready?

The mailbox is still being indexed, or its file changed and needs reindexing. Wait for the sidebar to show the message count, or click Reindex.

Does search include spam and trash from a Gmail export?

Yes. Search covers every message of the mailbox. Messages with the Spam and Trash labels are included. Add -in:spam -in:trash to the query to leave them out.