None of the search works in Big Sur Mail.app

Hi,

To me Big Sur Mail.app is next to useless as none of the search, nor smart mailbox works at all.

I upgraded then immediately noticed that none of my smart mailbox worked, they displayed a correct (?) number of unread message, but clicking on them, just makes the number disappear, and show no message at all, like if it were empty.

Then I tried searches, I took the eMail address of a colleague and it returned 2 results, after a long "Searching…" message occurred.


I rebuilt my spotlight index, then deleted all envelope files, then rebuild the database. No dice.


I even deleted the whole /Library/Mail folder, and after all my iMap mails were downloaded, still same issue.


I'm using a Google Gsuite email imap account, and an iCloud one, same issue

Posted on Nov 13, 2020 6:38 AM

Reply
Question marked as Top-ranking reply

Posted on Mar 19, 2021 10:10 AM

I'm not sure if you have seen the posts but people have figured out its an issue with the process "corespotlightd" and the behavior starts if second (or third...) user has logged in and logged off on this same computer. To get search working again you need to restart this process, rebooting will do this, but an easier way is to open Activity Monitor, then search for this process under CPU, select it and click the X button at the top of the window and select quit. It will immediately restart and search should start working again (until a second user logs off again). This is much easier then rebooting, hope it helps.

Similar questions

89 replies
Question marked as Top-ranking reply

Mar 19, 2021 10:10 AM in response to rav83

I'm not sure if you have seen the posts but people have figured out its an issue with the process "corespotlightd" and the behavior starts if second (or third...) user has logged in and logged off on this same computer. To get search working again you need to restart this process, rebooting will do this, but an easier way is to open Activity Monitor, then search for this process under CPU, select it and click the X button at the top of the window and select quit. It will immediately restart and search should start working again (until a second user logs off again). This is much easier then rebooting, hope it helps.

Jan 2, 2021 8:43 AM in response to Glitchtracker

Same problem here. Both the mail Search functionality and the "Smart Mailbox" feature is affected. Sometimes the search and/or Smart Mailboxes work after logging in and a quick logout/login helps.


Potential Solution


I noticed, that search results are found again (including Smart Mailboxes) if I rebuild the mailboxes. I cannot yet say how long this will stay ok, but so far it looks good.


  1. Select one or multiple mailboxes
  2. If you have many mailboxes arranged in folders, option click on the top-level to quickly expand the entire structure and then select as many as you like
  3. Use Menu "Mailbox" / "Rebuild"
  4. wait
  5. Should be ok immediately after mail is done, but quitting/reopening should not harm either.


Mar 11, 2021 4:15 PM in response to widorgelg

FWIW, I've noticed the following on my iMac which is showing this problem:


if I am logged in as User 1 (no other users active) the smart mailboxes seem to work ok

if I "fast switch" to User 2 there are now 2 instances of corespotlightd active

if I "fast switch" back to User 1 (whether I log out of User 2 or not) then:

there are sometimes still 2 corespotlightd running and I have the smart mailbox problem

sometimes only the original corespotlightd is running and then smart mailboxes work ok


Also, in the first case (where there are 2 running) if I kill only the second one, then smart mailboxes work ok


so at least on my machine, the problem seems to be related to having 2 instances of corespotlightd running

Jun 17, 2021 6:49 PM in response to Glitchtracker

Hey there!


I see it’s the same on both accounts, and the steps you’ve taken so far.


Can you try this:

Backup your data of course, especially if POP accounts, and export mailboxes if needed. (You’ve already manually attempted mail index, so sounds like you know what’s involved).


Quit the Mail app.


Open:

Finder > Go > Go To Folder, type:


~/Library/Username/Metadata/CoreSpotlight/


Press “Go”.


Delete the contents of the folder, restart and test.


If issues persist:


Does the same issue occur:

In other apps?

In a different admin account?

In Safe Mode?

On your other devices?

With WiFi and Ethernet disconnected?


Likewise, I know you’ve deleted the entire ~/Mail folder, (Make sure to restart before opening, but I wouldn’t recommend deleting a necessary folder like this), but did you try removing all the accounts from:


System Preferences > Internet Accounts, restart > are-add > Launch Mail and rest?


Just throwing out steps and possibilities out there, but that info might help if the first step didn’t work.


Hope that does help though, cheers!

Nov 20, 2020 7:27 PM in response to Glitchtracker

Problem solved, apparently!


Found this old item about Catalina, tried it, and it worked!

https://www.techradar.com/how-to/macos-catalina-problems-how-to-fix-the-most-common-issues


macOS Catalina breaks search in Mail - here's how to fix it


There are reports that the search function no longer works in the Mail app after installing macOS Catalina.


The first thing to try, if you encounter this problem, is first close Mail completely. Then hold Shift and click on the Mail icon to open it in Safe Mode. Then, close Mail again, then hold Shift and open Mail again.


Finally, close Mail yet again, then reboot your Mac. Open Mail normally, and search should work again.


Dec 7, 2020 6:25 AM in response to Glitchtracker

So this fixed it for me (not sure exactly what did it but this is the order I did things).


  1. Rebuilt the mailboxes in Mail using the Mailboxes menu, then quit Mail when finished.
  2. Excluded my hard drive from Spotlight searches (System Preferences - Spotlight - Integrity).
  3. Restarted my computer.
  4. Removed the exclusion of my hard drive from the Spotlight settings.
  5. Let Spotlight fully reindex before starting Mail (you can check the status by opening the Spotlight search and typing anything).
  6. Launched Mail, and search was working.


Hope this helps.

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.

None of the search works in Big Sur Mail.app

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