Mail Search not working El Capitan

With the new mail in El Capitan, when I search for mails from a sender, it does not bring up most of the emails from that sender. This renders the search function in mail unusable.

iMac, Mac OS X (10.0.x)

Posted on Oct 1, 2015 10:41 AM

Reply
116 replies

Oct 16, 2015 11:36 AM in response to RN48

I kept on tinkering both with my Mail and Spotlight searches since neither was working and discovered that for some reason indexing was disabled (in spotlight), so via terminal I re-enabled indexing and re indexed spotlight. After that, I quit mail and erased all "Envelope...." files from Mail (including the ones from maildata in V2 and V3), reopened mail and now everything is working well. I'm no expert so I have no way of knowing if both issues were related but the bottom line is I had no search in mail and no use for Spotlight either, and now both are working fine.

Oct 16, 2015 11:52 AM in response to Heinzmac

Go to Sys Pref, iCloud and sign out of iCloud, then sign back in and everything should work fine.


If this doesn't work try reinstalling El Capitan: Just power off the iMac, hold command and R and then power the Mac back on.

 Hold command and R until you see the Apple logo and progress bar. 

That will boot you to the utilities menu, one of the options you will see there is reinstall OS X. 
Just click on that, put in your Apple id, and once it completes, try to search.


Apple senior advisors tried both the above options with me and the first one worked.

Oct 19, 2015 5:58 AM in response to Heinzmac

hm - did you wait long enough for Spotlight re-indexing? You can check progress by searching something like "test" and see the progress bar in the opening window. Takes some hours depending on the diskspace used.


Concerning mail: it helped in my case to first close mail and then deleting all 3 files beginning with "Envelope Index" in ~/Library/Mail/V3/MailData

Oct 19, 2015 6:02 AM in response to Michael Wüthrich1

Hi Michael,

I let it run all night, but the search function in mail still does not work. Regarding the Envelope Index mails, I did the same. I emptied my spam and trash folders, closed out of mail and then deleting all three files. I then re-booted and opened mail. Re-indexing took almost 45 minutes, but the search functions still does not work - very frustrating!

Nov 9, 2015 2:45 PM in response to Heinzmac

I have had the same results. When I past a full email address into the search field, usually I get no results. Then when I start deleting characters from the end of the address, I eventually get results.


When I paste the email address into SpotLight, I see all of the results I know are there, but not the results when pasting that email address into the Mail search field.


Solution?

Nov 17, 2015 4:30 AM in response to David Estes

Michael Wüthrich1'ssolution worked for me.


  • Close Mac Mail
  • Move the 3 files beginning with "Envelope Index" out of ~/Library/Mail/V3/MailData
  • Launch Mac Mail - it will now start the process of re-importing your messages (took about half an hour as I had over 10,000 messages)


It seems that the process of indexing for search purposes takes a bit longer and continues in the background. Initially it didn't work as expected, but after an hour or so I'm getting better and better results.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Mail Search not working El Capitan

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.