Apple Mail Search Not Working on Mac: How to Re-index

The short answer
Apple Mail search on Mac fails for three reasons: the scope is set to the wrong mailbox, message bodies are not stored locally, or the Spotlight index has gone stale. Fix scope with a single click. Download missing bodies via Mailbox → Rebuild. Force a fresh Spotlight index through System Settings or Terminal.
Apple Mail search not working on Mac? Three causes — wrong scope, messages not downloaded, stale Spotlight index — with step-by-step fixes for each.
On this page
- 01What causes Apple Mail search to stop working on Mac?
- 02Fix 1: Check and expand the search scope
- 03Fix 2: Force Apple Mail to download message bodies
- 04Fix 3: Rebuild the Spotlight index for Apple Mail
- 05Method A: Use System Settings (no Terminal required)
- 06Method B: Force a reindex from Terminal
- 07How to tell which cause you have
- 08How to prevent Apple Mail search from breaking again
When Apple Mail search returns no results on Mac — or misses messages you can clearly see sitting in the mailbox — the problem almost never lies with Mail's code itself. Mail search on macOS is powered by Spotlight, the same system-wide index that finds documents, apps, and notes. When that index goes stale, or when message bodies have never been downloaded from the server to your disk, or when the search scope is quietly set to the wrong mailbox, Mail returns nothing and gives no hint which of those three things went wrong.
This guide separates the three failures. Each has a different symptom, a different fix, and different macOS version considerations. Work through them in order — scope first, because it takes ten seconds to rule out; downloaded messages second; and the Spotlight reindex last, because it is the most time-consuming. If your symptoms are specific, the diagnostic table near the end of the page will send you straight to the right fix without working through all three.
What causes Apple Mail search to stop working on Mac?#
Before touching any index or opening Terminal, name the failure mode. The three causes are distinct, and a fix aimed at the wrong one wastes time and leaves the real problem untouched.
| Cause | How to confirm it | Fix |
|---|---|---|
| Wrong search scope | Results appear, but only for messages in the current mailbox or account — messages you know exist in another folder are missing | Fix 1: change the scope bar to All Mailboxes |
| Message bodies not downloaded locally | Mail shows the message header in the list but the body takes several seconds to load or is blank — Spotlight cannot index text stored only on the server | Fix 2: run Mailbox → Rebuild to force a full local copy |
| Spotlight index stale or corrupt | No results at all for any query, including a sender name from a message sent yesterday — or Spotlight's own menu-bar search cannot find Mail content | Fix 3: remove and re-add the Mail folder in Spotlight Privacy, or run mdutil in Terminal |
The three causes sit at different layers of macOS mail architecture: the first is a UI preference, the second is a sync state between the remote server and the local disk, and the third is an OS-level index. Naming the layer immediately narrows the fix.

Fix 1: Check and expand the search scope#
The scope bar is the most-missed control in Apple Mail search. When you type in the search field, a thin row appears directly below the toolbar showing options — All Mailboxes, This Mailbox, and sometimes the current account name. If anything other than All Mailboxes is selected, Mail searches only that slice of your data, and a message sitting in a different folder or account returns nothing. Start here because it takes under ten seconds to rule out.
- 1
Click the search field in Mail's toolbar
The scope bar does not appear until you start a search — click the field and type at least one character to reveal it.
- 2
Type a word from a message you are sure exists
Pick a specific word — a sender's name, a project name, a word from the subject line. Avoid single common words like 'the' that may produce too many results to be diagnostic.
- 3
Look at the scope bar that appears below the toolbar
If it shows 'This Mailbox', 'This Account', or a specific account name rather than 'All Mailboxes', that is the cause of the missing results.
- 4
Click 'All Mailboxes' in the scope bar
Results should expand immediately to include messages from all accounts and all folders.
- 5
Check for a scope token inside the search field itself
If a blue pill in the search field reads 'Subject' or 'From', Mail is searching only that header field rather than the full message body. Click the X on the token to remove it so the search covers all message content.
The scope bar resets when you change mailboxes
Fix 2: Force Apple Mail to download message bodies#
On IMAP accounts — Gmail, Outlook, iCloud, Fastmail, and most others — Apple Mail can display the message header in the list while the body still lives on the server, not on your Mac's disk. Spotlight can only index text that is stored locally. A message whose body has not been downloaded will appear in the message list but will not show up in search results, because the text Spotlight needs to read and index is not there.
Confirm this is the cause before running the fix: click a message that should appear in search results. If the body loads slowly, shows a progress spinner, or is blank until Mail fetches it from the server, the body is remote. The steps below force a full local copy.
- 1
Click the mailbox in the sidebar that contains the missing messages
Navigate to the specific folder — Inbox, All Mail, a label, or Sent — where you expect the messages to be.
- 2
From the menu bar, choose Mailbox → Rebuild
Mail will re-download every message in the current mailbox from the server. A progress indicator appears in the status bar at the bottom of the Mail window. On a large mailbox — thousands of messages — this can take several minutes. Do not force-quit Mail while the rebuild is running.
- 3
Repeat for each affected mailbox
Mailbox → Rebuild operates on the mailbox you are currently viewing. If messages are missing from Sent, Drafts, or custom folders, navigate to each one and run Rebuild again.
- 4
Check account download settings (macOS Ventura 13 and later)
Open Mail → Settings → Accounts, select the account in question, and look at the Account Information tab. Some account types offer an option that limits local caching to only recent messages. If you see such a setting, switching it to store all messages will prevent the issue from recurring after the current rebuild.
- 5
Wait for Spotlight to index the newly-downloaded content
After the rebuild, give Spotlight a few minutes before testing search. The bodies are now on disk, but Spotlight still has to index them. The Spotlight icon in the menu bar shows an animated indicator when indexing is running.
Fix 3: Rebuild the Spotlight index for Apple Mail#
If the scope is correct and message bodies are stored locally but search still returns nothing, the Spotlight index itself has gone stale or corrupt. This happens most often after a macOS major version upgrade, a migration from another Mac, or a restore from backup — situations where Spotlight loses track of where Mail's data folder now lives and does not rebuild automatically. The fix discards the stale index and forces Spotlight to build a clean one.
Two methods work on current macOS. Method A uses System Settings and requires no Terminal. Method B uses a Terminal command and completes in fewer steps.
Method A: Use System Settings (no Terminal required)#
The Spotlight Privacy list tells the indexer which folders to skip. Temporarily adding Mail's data folder to that list — then removing it — forces Spotlight to discard the existing index for that folder and rebuild it from scratch. The operation is targeted to the Mail data container and does not trigger a full-disk reindex.
- 1
Quit Mail
Mail → Quit Mail from the menu bar, or Apple menu → Force Quit if Mail is unresponsive.
- 2
Open System Settings (macOS Ventura 13, Sonoma 14, or Sequoia 15)
Click the Apple menu → System Settings. On macOS Monterey 12 or earlier, open System Preferences instead. The Spotlight Privacy tab is in the same position in both — only the outer shell changed with Ventura.
- 3
Click Spotlight in the sidebar, then open the Privacy tab
On Ventura and later, Spotlight is listed alphabetically in the System Settings sidebar. On Monterey and earlier, click the Spotlight icon in System Preferences, then click the Privacy tab at the top of the pane.
- 4
Add Mail's data folder to the Privacy list
Click the + button. In the file browser that opens, press Cmd+Shift+G, type ~/Library/Mail, and press Return. If the Library folder is not visible, hold the Option key and click Go in the menu bar — Library appears there. Select the Mail folder and click Choose. It now appears in the Privacy list, which means Spotlight is instructed to skip it.
- 5
Wait five seconds, then remove it
Select the Mail entry in the Privacy list and click the – (Remove) button. Removing it signals Spotlight to re-index that folder immediately, because it is no longer on the exclusion list.
- 6
Monitor indexing progress
Click the Spotlight icon in the menu bar. While indexing runs, it shows 'Indexing…' with an animated progress indicator. On a large Mail library — several gigabytes or many years of archives — full indexing can take 30 minutes to several hours.
- 7
Reopen Mail once indexing completes, then test search
Type a query you know should return results. Give Spotlight a minute after the progress indicator disappears before concluding the reindex did not work — the index write is not always instant to the application layer.
Method B: Force a reindex from Terminal#
The mdutil command performs the same operation as the Privacy pane add-remove sequence, in a single step. Use it if you prefer the command line or if the System Settings method does not complete cleanly. Administrator access is required.
- 1
Quit Mail
Mail → Quit Mail before running the reindex command.
- 2
Open Terminal
Press Cmd+Space to open Spotlight, type Terminal, and press Return. Or navigate to Applications → Utilities → Terminal.
- 3
Run the reindex command
Type: sudo mdutil -E / and press Return. You will be prompted for your administrator password. The -E flag erases the existing Spotlight index for the startup volume and triggers a full rebuild from scratch.
- 4
Wait for indexing to complete
The command runs in the background. Check progress by clicking the Spotlight icon in the menu bar — it shows 'Indexing…' while the rebuild is running. A full volume reindex typically takes 30 minutes to two hours depending on how many files you have. Mail-specific content is indexed relatively early, so Mail search often starts returning results before the full index finishes.
- 5
Reopen Mail and test search
Once the Spotlight progress indicator clears, open Mail and run a search for a message you know exists.
sudo mdutil -E / rebuilds the entire volume index
How to tell which cause you have#
If your symptom is specific, use this table to go straight to the right fix rather than working through all three in sequence.
| Symptom | Likely cause | Start here |
|---|---|---|
| No results at all — even for a sender you emailed yesterday | Spotlight index stale or corrupt | Fix 3 |
| Results appear but only within the current folder or account | Search scope set to This Mailbox or This Account | Fix 1 |
| Sender name and subject match, but searching for words in the body finds nothing | Message bodies not downloaded locally | Fix 2 |
| Recent messages appear in results; messages older than a few months do not | Older messages cached as headers only — bodies not yet synced to disk | Fix 2 |
| Spotlight menu-bar search finds a Mail message but Mail's own search does not | Scope set incorrectly in Mail, or a Mail-specific index issue | Fix 1, then Fix 3 if Fix 1 does not resolve it |
| Search stopped working after a macOS upgrade | Upgrade triggered a Spotlight reindex that is still running, or the index did not migrate cleanly | Fix 3 — allow several hours for the index to rebuild before testing |
How to prevent Apple Mail search from breaking again#
The three failure modes each have a predictable trigger. Scope resets happen when you navigate between mailboxes before searching. Bodies fail to download when IMAP sync is interrupted or when Mail is configured to cache only recent messages. The Spotlight index goes stale most reliably after a major macOS version upgrade, a machine migration, or a restore from Time Machine.
Three habits prevent most recurrences:
- Leave Mail open and online for at least an hour after a macOS major version upgrade. The upgrade process disrupts the Spotlight index for Mail, and the indexer needs uninterrupted time with Mail running to rebuild it. Quitting Mail during that window interrupts the indexing run and may require you to trigger Fix 3 manually.
- Run Mailbox → Rebuild after importing a large batch of messages. File → Import Mailboxes moves messages into a local folder, but the bodies are not indexed until Spotlight processes them. Running Rebuild on the destination mailbox immediately after a large import forces the download and flags the content for indexing.
- Avoid moving or renaming ~/Library/Mail. The Spotlight index tracks the Mail data folder by path. Moving or renaming it — even as part of a backup rotation or a home folder reorganisation — breaks the index path silently. If you must move the folder, trigger Fix 3 immediately afterward.
The root cause behind all three failure modes is that Apple Mail search relies on a local Spotlight index that must stay in sync with a remote IMAP store — and no automatic repair runs when that sync breaks after an upgrade or a machine migration. AI Emaily's semantic search queries the live provider directly rather than a local cached index, so there is no index to go stale between macOS upgrades and no Spotlight rebuild cycle to run after a machine restore. It also includes an Ask-your-inbox mode for natural-language questions across your full mail history rather than keyword token matching alone. We build AI Emaily; a 7-day free trial is available, and AI Emaily pricing has the current plan details.
Frequently asked
See it in AI Emaily

Written by
Nafiul HasanNafiul Hasan is an entrepreneur and AI automation system builder with 10+ years of experience turning messy, manual workflows into reliable automated systems. He designs and ships AI enterprise solutions end-to-end — the agent logic, the data plumbing, and the product people actually use — and founded AI Emaily to give busy professionals their attention back. He writes here from the builder's seat: what works, what breaks, and how to put AI to work without giving up control.