mail search completely broken in Catalina

I am no longer able to search.

1) if I search something all it does is show the numerical number of matches below the search bar - nothing changes in the actual email list

2) if I select the sender (right click) same result - nothing shows up except the numerical number of results which does not help


I tried to rebuild my mailbox but this does nothing.


Any help would be appreciated.

Posted on Oct 7, 2019 3:42 PM

Reply
Question marked as Top-ranking reply

Posted on Oct 10, 2019 2:56 AM

I went to system preferences, internet accounts and switched off my Gmail, leaving an exchange and imap account active. I turned my computer off and back on and search worked perfectly fine, I then re-added my Gmail account and it all seems to be working. I'd guess there's something in the gmail indexing settings that isn't playing well with catalina's new spotlight mail search integration.

Similar questions

161 replies
Question marked as Top-ranking reply

Oct 10, 2019 2:56 AM in response to iPhoneXWizard

I went to system preferences, internet accounts and switched off my Gmail, leaving an exchange and imap account active. I turned my computer off and back on and search worked perfectly fine, I then re-added my Gmail account and it all seems to be working. I'd guess there's something in the gmail indexing settings that isn't playing well with catalina's new spotlight mail search integration.

Oct 11, 2019 3:03 PM in response to JamesX77

To fix that issue.

1) Quit Mail.app

2) Stop, Clear, and Restart your Spotlight indexation. To do so : https://support.apple.com/HT201716 OR

  • Open Terminal.app
  • Stop and Flush Indexation
  • sudo mdutil -i off -E /
  • verify the status
  • sudo mdutil -s /
  • Restart it
  • sudo mdutil -i on /
  • verify the status again
  • sudo mdutil -s /

3) Clear the Mail.app indexes. You will find some "Envelope Index*" files in your ~/Library/Mail/V7/MailData folder. Trash them and empty the Trash. (They will be rebuild after relaunching Mail.app, don't worry).

To do so:

  • From the Finder > Goto Menu > Go to folder: "~/Library/Mail/V7/MailData".
  • From the Terminal.app: "open ~/Library/Mail/V7/MailData" (then Enter)


Restart your Mac. Re-open Mail.app, and all we be fine again.


PS: You need all those steps, and in this order ;-)

Oct 10, 2019 9:31 AM in response to JamesX77

I had this problem and traced it to an com.apple.quarantine attribute apparently added to the entire Mail directory during the Catalina install. The solution, previously described here, is the following Terminal command:


xattr -rd com.apple.quarantine /Users/[YourUserName]/Library/Mail 


After successful execution of this command, wait a few minutes for Spotlight to re-index.

Oct 29, 2019 6:26 AM in response to JamesX77

I also, had this issue. I do not have Gmail. I tried some of the other fixes posted here - but they did not work. The following is from the Apple Help folks and the second one (reset System Management Controller) finally fixed the issue.


1) Reset NVRAM or PRAM on your Mac


Shut down your Mac, then turn it on and immediately press and hold these four keys together: Option, Command, P, and R. You can release the keys after about 20 seconds, during which your Mac might appear to restart.



2)How to reset the System Management Controller (SMC) on your Mac


1Choose Apple menu > Shut Down and wait for your Mac to shut down.

2Press Shift-Control-Option on the left side of the built-in keyboard, then press the power button at the same time. Hold these keys and the power button for 10 seconds. If you have a MacBook Pro with Touch ID, the Touch ID button is also the power button.

3Release all keys.

4Press the power button again to turn on your Mac.

Oct 10, 2019 11:37 PM in response to theak123

After testing other procedures, this is the only one that worked.


I disabled all my Gmail accounts and restarted the computer. After that, my other IMAP worked fine. Then I enabled the Gmail accounts one by one, testing for each one if the search engine was working. It was.


Almost inmediately, everything went back to how it's supposed to be.


"Crisis" avoided.


Thanks!

Oct 25, 2019 8:54 AM in response to JamesX77

WORKS again:

1) disable all mail accounts (system -> preferences -> internet accounts and switched off )

2) Stop Spotlight and remove the indexing: Terminal > sudo mdutil -i off -E < press <return>

3) Reboot your Mac

4) enable all mail accounts again (as described)

5) Enable it again by typing: Termin > sudo mdutil -i on < press <return>

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 completely broken in Catalina

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