You may find that the search function inside Apple Mail is not working after upgrading to El Capitan. You may also be experiencing incomplete results when searching inside Mail. Here are the Top 3 things to try in order to get the Mac Mail search function working again in El Capitan.  These instructions can be followed for other versions of OSX and should work but as new versions of OSX are rolled out the locations may change.

1. Ensure your Mac is on the Latest Version

To check if your Mac has all the latest updates installed:

  1. Click on the Launchpad Icon in the dock
  2. Type App and click on App Store
  3. Click on the Updates Button up the top right
  4. Wait a minute for your Mac to finish checking for updates and click on Update or Update All to install the latest updates.

2. Rebuild the Spotlight Index

  1. Click on System Preferences in the dock
  2. Click on Spotlight
  3. Click on the Privacy Tab
  4. Click on the + down the bottom and select your OSX disk

What this will do is disable indexing in Spotlight for your computer.  Wait a couple of minutes and then remove your OSX disk out of the privacy options. Open up Spotlight and start typing something – you will see that Spotlight is reindexing your computer – this could take a while.


3. Delete the Envelope Index Files in Your Mac Library

  1. Quit Mail
  2. Go to your home Library folder, hold down the Option key, then in the Finder choose Go > Library.
  3. In ~/Library/Mail/V3/MailData, move any file that begins with “Envelope Index,” such as Envelope Index or Envelope Index-shm to your desktop (these can be restored if any issues arise)
  4. Launch Mail and the app will build new Envelope Index files — this can take a long time if your mailbox is quite large.
  5. If everything goes smoothly you can now delete the Envelope files off your desktop.