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

Nov 27, 2020 6:43 AM in response to Henrik Carlsson

The Catalina fix worked for me and carried on working. However, because of another issue with photos I did a clean reload of Big Sur 11.01.1 and did not import previous settings from Time Machine but began again, simply importing external apps, photos, documents, etc. from Time Machine.

The search function in Mail is still working OK, and very quickly. This in on a 3 month old MacBook Air 13".

I wouldn't recommend a full, clean reload as it's time-consuming, but if people are desperate.....?


Dec 10, 2020 4:33 PM in response to Glitchtracker

I, too, had to deal with the broken "search" function in Big Sur Apple Mail and it's kept me on my heels over the past few weeks. I ran into the issue on a couple different machines — 2018 i5 Mac Mini and M1 Mac Mini.


I have quite randomly gotten it to work again several times, but it was never clear, which of my actions actually fixed the problem and there's no way of predicting when "search" would stop working again in Apple Mail.


I have tried combinations of deleting envelope files and/or rebuilding spotlight indices. The last round seemed particularly stubborn to my attempts to get it to work again — but I just did, and here's exactly what I did:


  1. Quit Mail
  2. Go to ~/Library/Mail/V8/MailData and delete every file that contains "envelope" on that level. In my case there were 5 files but I have seen as few as only 3 files having "envelope" part of their file name over the past few weeks when fussing around with this issue. The 5 files I deleted were:
    1. Envelope Index
    2. Envelope Index-shm
    3. Envelope Index-wal
    4. Envelope Index..tmp.xLQXar-shm
    5. Envelope Index..tmp.xLQXar-wal
  3. Make sure to empty the trash when done
  4. Open System Preferences > Spotlight, go to Privacy, drag and drop the Mail folder (~/Library/Mail) in the "Prevent Spotlight from searching these locations" list
  5. Quit System Preferences and restart your machine.
  6. After restarting, open Mail — you will be prompted that Mail will import your Mailboxes. I have 223k emails and it took about 5 minutes.
  7. After this is complete, open System Preferences > Privacy and remove the Mail folder from the list of items excluded from Spotlight search. This will trigger the spotlight index for the item to be rebuilt.
  8. Voila. It worked again and still does.


Hopefully 11.1 will take care of this issue.

Dec 15, 2020 5:38 PM in response to CoffeeBean

Two comments:

  1. I imagine this slipped through QC because it does not happen on all Macs all the time. I still have no idea what causes it. I have a MacBook Pro where this never happens and an iMac where it does.
  2. Does anyone know whether and how discussions like this even come to Apple’s attention? Is there anything a random user (e. g., me) can do to find out if Apple is aware of this discussion?

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.