“Entire Message” searches blank?

spotlight-1For a few days I have been having occasional problems with Spotlight-powered searches in Mail.app.

A search in “All Mailboxes” for a word in the “Entire Message” suddenly produces no results, although To, From or Subject searches which are drawn from Mail’s own SQLite database (see What’s in your Mail folder for more info) work fine.

The fix for this is simple. You need to force a reindex of Spotlight.

You can do this by typing some text into the terminal, by following the instructions in an Apple technote , or using a handly little app called Spotless .searches, mail.app, apple mail. Spotlight, reindexing, tips

Similar Posts:

Tags: , , , ,

7 Responses to ““Entire Message” searches blank?”

  1. Tauquil says:

    Deleting the “Envelope Index” in ~/Library/Mail will normally do the trick as well.

    Just be sure to make a backup first!

  2. Tim says:

    Hi Tauquil. I’m surprised to hear this, as the Envelope Index is actually the SQLite database that indexes data from the To, From and Subject fields, and is not related to, or used by, Spotlight at all.

    Are you sure about that?

  3. Tauquil says:

    When I transferred my data from my PB to my MBP (using Migration Assistant) my Mail searches were turning up blank results. Moving the Envelope Index to the desktop and restarting Mail seemed to fix the problem.

    Could have been a fluke!

  4. Tim says:

    I can see how that would fix faulty searches for senders, recipients and subjects, but I am surprised about it fixing the full text search. I’ll have to rethink what I thought I knew. :)

  5. Mitchell says:

    I’ve got the same exact problem. I reindexed Spotlight, moved the Envelope Index to the desktop and restarted Mail, no luck. The Subject search works fine (in Mail and Spotlight), but the Entire Message option comes up blank. It’s tragic.

  6. Tom Moore says:

    I actually never had this problem until I tried to use Spotless to prevent indexing of my firewire backup drive. Now I have the problem and reindexing does not help. There is something involving Mail.app itself.

    Anyone have this experience?

  7. Ed says:

    I’ve had the problem repeatedly. Tried a lot of solutions that worked for some others, not all. Best solution for me was to reinstall (archive and install) the OS… Leopard, in my case. Reindexing does not need to bbe redone after installation, apparently, but Spotlight and Mail search in Entire Message for various mailboxes works again instantly.

    Problem reoccurred again. But I got back Entire Messasge search for All Mailboxes but not specific individual ones. That’s kind of OK because you can sort result by mailbox anyway. I got the Entire Message search back (in All Mailboxes), apparently, by allowing, again, Spotlight to index my main full backup drive (Time Machine not in use)

    From what I’ve read here and elsewhere I think the problem may sometimes, at least, be due to other external drives with Mail on it, like backup drives — and trying to get Spotlight to NOT index the backup drives. I did that with my backup drives (SuperDuper backup). I had excluded the backup drive in Spotlight’s Privacy setting. Now, I changed that back so the backup drive was NOT excluded and let Spotlight index the drive again. Took a long while, but did get back search results in Entire Message, All Mailboxes.

    Good luck. This has been going on for years! Should be an Apple fix or work around that is commonly available by now!

Leave a Reply