MailMind

MailMind › Blog

Apple Mail search not working? Here's how to fix it

When Apple Mail can't find an email you know is there, the mail is almost never gone. The index Mail searches is out of date or damaged. Check that you're searching every mailbox, rebuild the mailbox with Mailbox › Rebuild, and make Spotlight re-index your Mail folder. While you fix it, Gmail on the web can still find the message.

Why can't Apple Mail find emails I know are there?

Apple Mail doesn't read every message each time you search. It looks things up in an index, and that index lives in two places: Mail's own database for each mailbox, and Spotlight, the search system built into macOS. When either one falls behind, search quietly returns nothing, or returns some results and misses the one you need.

The usual causes:

How do I fix Apple Mail search?

Work through these in order. The first two take a minute. The later ones take longer, so only move on if the earlier ones didn't help.

1. Check where you're searching

Apple Mail searches the mailbox you have selected. Type your search, then look at the Favorites bar under the toolbar and choose All, or click Search all mailboxes if Mail offers it. Even then, Apple says Mail doesn't search the Junk mailbox or encrypted messages, so check Junk by hand if the email might have landed there.

2. Let Mail finish downloading

Choose Window › Activity (Control-Command-0) to see whether Mail is still downloading. If it is, leave it running and try again later. Searching during a big first sync often misses older mail.

3. Rebuild the mailbox

Select the mailbox in the sidebar, then choose Mailbox › Rebuild. For Gmail and other IMAP accounts, Mail throws away its local copy and downloads the messages again from the server. The mailbox can look empty for a while. That's expected, and nothing on the server is deleted. Rebuild one mailbox at a time. For Gmail, start with All Mail, since that's where archived messages live.

4. Make Spotlight re-index your mail

Apple's own fix is to add a folder to Spotlight's privacy list and then remove it, which forces a fresh index. On macOS Ventura or later, open System Settings › Spotlight, click Search Privacy (or Spotlight Privacy), and add your Mail folder with the + button. In the file picker, press Shift-Command-G and type ~/Library/Mail to reach it. Wait a few seconds, select it, click the minus button, then click Done. Apple describes the steps in About Spotlight indexing and search results.

There's also a Terminal command, sudo mdutil -E /, which erases and rebuilds the Spotlight index for your whole startup disk. Use it with care. It re-indexes everything, not only mail, it can take hours on a full disk, and Spotlight results everywhere stay patchy until it's done. Try the folder method first.

5. Turn the account off and on again

If one account keeps failing, open System Settings › Internet Accounts, select it, and turn Mail off, then back on. Or remove the account and add it again. Mail downloads everything fresh. Mail kept on the server comes back. Before you do this, make sure nothing you need exists only on this Mac.

6. For Gmail, check what Mail is allowed to see

In Gmail on the web, open Settings › See all settings › Labels and make sure All Mail has Show in IMAP ticked. If it's off, Apple Mail can't search archived mail. Our Apple Mail and Gmail fix guide covers the other settings that trip people up.

7. Search in Gmail on the web while you wait

Gmail's own search runs on Google's servers and doesn't depend on your Mac's index. If you need a message now, find it there. Search operators such as from: and has:attachment narrow things fast. Our Gmail search operators cheat sheet lists them.

How does MailMind search work?

We built MailMind's search because "it won't find mail I know is there" is the complaint we heard most about Mac mail apps. MailMind keeps its own search index on your device, and for older mail it also asks the mail server: Gmail's search for Gmail accounts, the server's own search for IMAP accounts. The two sets of results are merged, so a message you haven't downloaded yet can still turn up.

It's fast, too. In our test with a mailbox of 100,000 emails, 20,000 of them with full bodies, a one-word search took about 0.3 seconds and a rare phrase about 5 milliseconds. The whole index used 252 MB on disk.

MailMind on Mac showing All Inboxes for three accounts, with the Search all mail field at the top right
MailMind on Mac. The Search all mail field sits at the top right.

A few things work differently from Apple Mail:

There's no rebuild button, because there's nothing to rebuild by hand. If something looks out of date, Go › Sync Now (⌥⌘R) checks the server again. For how this compares with Apple Mail overall, see MailMind vs Apple Mail. Text inside PDF attachments is included in MailMind's search too. Our guide to finding a word inside an attachment has the details.

Frequently asked questions

Why does Apple Mail search show no results?

Usually because the index Mail searches is out of date or damaged, not because the mail is gone. Check that the search covers All mailboxes, let Mail finish downloading, then rebuild the mailbox and make Spotlight re-index your Mail folder.

Does rebuilding a mailbox in Apple Mail delete my email?

No. For Gmail and other IMAP accounts, Mail deletes its local copy and downloads the messages again from the server. The mailbox can look empty until the download finishes, but nothing on the server is removed.

How long does Spotlight take to re-index mail?

It depends on how much is on your disk. Re-indexing only the Mail folder is usually much quicker than re-indexing the whole disk, which can take hours.

Why can't Apple Mail find my archived Gmail messages?

Archived Gmail messages live in All Mail. If All Mail is hidden from IMAP in Gmail's Labels settings, Apple Mail never downloads them, so it can't search them. Turn on Show in IMAP for All Mail.

Do I need to rebuild anything in MailMind?

No. MailMind keeps its own index up to date and also asks the mail server for older mail. If something looks stale, Go › Sync Now checks the server again.

MailMind is coming to the App Store

A calm, private mail app for Mac, iPhone and iPad. Your mail stays on your devices, and the AI runs on them too. See what it does.

Get MailMind