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:
- Click on the Launchpad Icon in the dock
- Type App and click on App Store
- Click on the Updates Button up the top right
- 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
- Click on System Preferences in the dock
- Click on Spotlight
- Click on the Privacy Tab
- 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
- Quit Mail
- Go to your home Library folder, hold down the Option key, then in the Finder choose Go > Library.
- 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)
- Launch Mail and the app will build new Envelope Index files — this can take a long time if your mailbox is quite large.
- If everything goes smoothly you can now delete the Envelope files off your desktop.