Mail search not working after Big Sur install

I am unable to get mail search function to work after Big Sur install. After reading some other previous email search content, I closed mail completely, opened with shift+Mail, closed and rebooted and same problem occurring.

iMac, macOS 10.12

Posted on Nov 13, 2020 11:40 AM

Reply
Question marked as Top-ranking reply

Posted on Mar 10, 2021 9:22 AM

I found out something today, I am not sure if this changed with Big Sur but I strongly suspect it may have something to do with it.


Problem:

When you search, it only now seems to search whatever mailbox is selected in the left hand panel. This is usually "All inboxes". This seems to ONLY search mail in the inboxes (as it says!). I have several accounts and I have been searching in "All inboxes" for ever and it always used to (before Big Sur) find mail wherever it was. Whether it searches folders in imap accounts, I haven't proved yet. However, it does not seem to search mailboxes "On My Mac" - mail downloaded, via imap or pop, and then moved from the inbox, by rules or manually, to a mailbox on the hard drive. This, of course, is where most of my saved emails reside so they are never found!


Solution:

Luckily, smart mailboxes seem to ignore location unless specified. We need to refer to the predefined smart mailbox All unread which uses the rule "message is unread". (There is no rule for "message is read"!)


I created a smart mailbox called All mailboxes using rule "not in mailbox All Unread" which correctly selected all read messages, from anywhere! Thousands of emails appeared! When this mailbox is selected my searches work fine! You may have to wait several minutes each time you select All mailboxes for the Mail program to refresh the total at the top. Mine took about two minutes to find 29k!


VIPs

VIPs are the same but cannot be fixed by humble users as far as I can see. Apple, you need to fix this!! Mail will only show a VIP's mail if it is in an inbox and has not been moved to another mailbox!! This is not how it used to work and it is now useless.


461 replies
Question marked as Top-ranking reply

Mar 10, 2021 9:22 AM in response to Cloudiii

I found out something today, I am not sure if this changed with Big Sur but I strongly suspect it may have something to do with it.


Problem:

When you search, it only now seems to search whatever mailbox is selected in the left hand panel. This is usually "All inboxes". This seems to ONLY search mail in the inboxes (as it says!). I have several accounts and I have been searching in "All inboxes" for ever and it always used to (before Big Sur) find mail wherever it was. Whether it searches folders in imap accounts, I haven't proved yet. However, it does not seem to search mailboxes "On My Mac" - mail downloaded, via imap or pop, and then moved from the inbox, by rules or manually, to a mailbox on the hard drive. This, of course, is where most of my saved emails reside so they are never found!


Solution:

Luckily, smart mailboxes seem to ignore location unless specified. We need to refer to the predefined smart mailbox All unread which uses the rule "message is unread". (There is no rule for "message is read"!)


I created a smart mailbox called All mailboxes using rule "not in mailbox All Unread" which correctly selected all read messages, from anywhere! Thousands of emails appeared! When this mailbox is selected my searches work fine! You may have to wait several minutes each time you select All mailboxes for the Mail program to refresh the total at the top. Mine took about two minutes to find 29k!


VIPs

VIPs are the same but cannot be fixed by humble users as far as I can see. Apple, you need to fix this!! Mail will only show a VIP's mail if it is in an inbox and has not been moved to another mailbox!! This is not how it used to work and it is now useless.


Apr 13, 2021 6:44 AM in response to Cloudiii

Follow update to BigSur, I was unable to perform a search in Mail. I followed the above steps (ie quit app, open holding SHIFT key, quit, open holding SHIFT, quit, restart MAC) but unfortunately this did not help. Then I call the Genius bar. While very friendly, this didn't help much either. The Genius recommendation was to re-establish spotlight search, even though there were no problems in carrying out a spotlight search (lengthy process). Finally, I decided to eliminate one-by-one accounts (I have 7 on Mail), starting with my gmail accounts. I was able to do a search in my gmail exchange account after reintroducing the account, but search still did not work in the non-gmail accounts. I have one account that is on Rackspace. I eliminated it and then when I reintroduced this account, I was able to perform a search that worked for all 7 accounts, including those that I had not yet deleted-recreated.

NOTE: make sure to back up on Time Machine before deleting accounts. And only delete IMAP accounts unless you carefully create archive folders on your computer. I had a previous unfortunate experience when I deleted a POP account and was unable to recuperate any of the older messages.

Apr 28, 2021 10:15 PM in response to JLewisH

Hi, JLewisH.


Yes, in my experience MAIL would search the mailbox you had "chosen" and all sub-mailboxes..... and seems to do so if the "Spotlight Restart" steps are completed.... at least many seem to have success when doing this (recovery may be temporary but it's simple enough to do again as needed)::


  • Open Activity Monitor
  • Identify "corespotlightd" process name (it's possible you may have more than one)
  • Stop the "corespotlightd" process(es) using x-icon
  • Process will re-start and search should work now


Since Apple doesn't track this particular discussion thread, may I suggest that you also report this problem (and your frustration) at https://www.apple.com/feedback/mail.html [select Bug Report from the Feedback Type popup] This is where Apple expects to get Bug Reports.


Nov 15, 2020 1:31 PM in response to Xela2020

Things I tried before reinstalling that didn't work, but might work for you:


  1. Running "Rebuild" from Mail's "Mailbox" menu
  2. Restart in safe mode to force rebuild of caches
  3. Rebuild Mail's indexes by

a. Quitting Mail

b. deleting the three files that start with "Envelope index" in ~/Library/Mail/V8/MailData

c. Restarting Mail and allowing import of mail

and 3. Rebuild Spotlight's indexes. You can do this several different ways, but the easiest for this issue would be going to System Preferences, selecting "Spotlight", unchecking "Mail and Messages", wait a while then recheck "Mail and Messages".


None of these resulted in any issues for me, but if you have room it might be a good idea to back up everything beforehand.

Nov 22, 2020 2:03 PM in response to Cloudiii

I have had the same problem - mail search not working - after installing OS11, Big Sur. But I found a fix!


To be specific, my mail search worked as usual for a day or two after the upgrade, but then stopped working. BTW, my spotlight was working fine, but not finding most mail. Incredibly frustrating, as I search within Mail many times an hour for keywords, names, etc - mostly searching within All Mailboxes. I noticed that mail search was only searching the names of mailboxes, not the content or subject or "to" or "from" of every email. I did check "All Mailboxes", on the left mailbox folder pane (and tried very other folders), but still the Mail search only searched the names of mailboxes....


I have only found this thread with others having the same problem, and I called Apple support (they are to call me back in some hours).


So I figured this out, with help from a YouTube video about the same problem (mail search not working) - but after Catalina install (https://www.youtube.com/watch?v=GCWpJT7NPzc)


The fix: simply, in System Preferences > Internet Accounts > my Gmail account, I de-selected the box checked by Mail, then closed System Preferences to restart and then re-select my Mail in my Gmail account. When I went to close System Preferences after de-selecting Mail, I was led to "security and privacy" window where I was prompted to accept an updrade of sorts. I did not take a screen shot to show... But after that, then restarting and then re-selecting my Mail in my Gmail account, then starting Mail again - it is back to working normal!


I do hope this helps y'all with you fix~


Dave

Nov 27, 2020 7:21 PM in response to Cloudiii

A comment on this article helped me. The article explained how to rebuild the index for Spotlight search. That did not help me. But the comment suggested using the Activity Monitor to kill all tasks related to Spotlight Search. I closed Mail. Then I searched Activity Monitor for "spotlight" and found 4 tasks. I killed all four. Had to Force Quit two of them. I then re-opened Mail and search worked for me. Hope this helps someone else also.

Jan 8, 2021 8:33 AM in response to Cloudiii

The Big Sur mail search failure caused by switching users (and possibly other reasons) seems to be a problem with the 'corespotlightd' process. It may be remembering the prior user and not switching internally. I'm able to find this process with the Activity Monitor and force-quit it. It then automatically relaunches, probably by the 'spotlight' process. Once the force-quit and auto-relaunch occurs I'm able to search Apple Mail again without problem. I presume many/all of the other more drastic workarounds are indirectly causing this troublesome MacOS process to also get relaunched -- though no way to be certain. This problem seems to be hanging around too long -- would hope someone from Apple can debug this armed with this apparently small failure domain.

Jan 12, 2021 3:28 PM in response to Cloudiii

I know you don't want to hear what I'm about to say, but it worked for me.

I re-installed Big Sur by restarting the Mac and holding CMD R until the display shows a progress bar. Then follow the steps to simply re-install. It needs wifi. You may get an error about wifi, just goto the top right corner and choose your network.


My 2019 Mac Air 13" with ssd took 40 minutes to download (it only shows a progress bar but I'm sure it was downloading) and then it needed me to Power it on again. (just check on it, my display went to sleep)

After that it took about 35 minutes and now.... Mail worked within 3 minutes. I could search anything, anybox


It took just over an hour, and tah-dah.

Best Wishes, Warmest regards. (LOL)

Jan 13, 2021 3:29 AM in response to Cloudiii

Hi,


I had this problem, and I solved doing the following steps:


  • Verify if you have contents in the folder …/Library/Mail/Bundles. If you have please delete the contents;
  • Make sure on Spotlight:


  • Open Terminal Window;
  • Run the following commands:
    1. sudo mdutil -i off /
    2. sudo mdutil -E /
    3. sudo mdutil -i on /
  • This will index everything in MAC, including Mail. After Index Bar finishes, it can take about 24 hours to index is completed, leave the MAC running during the night


Regards

Jan 13, 2021 2:10 PM in response to JohnDoe0007

Hi John,


Check this link, you can understand better what the commands do:


https://www.applegazette.com/mac/how-to-rebuild-spotlight-index-manually/


My problem was searching mails before the upgrade to Big Sur, after index was complete, the problem was definitely solved.


This commands won't harm your MAC.


The backup recovery you had to go before the upgrade to Big Sure, and if you upgrade again, the problem could apear again.


I have 2 MAC's, one didn't have problems and other did.


Regards

Feb 2, 2021 2:17 PM in response to JohnDoe0007

  • killing the process corespotlightd in activity monitor fixes the problem every time, the search will work again. No need to unlog or reboot, this is great !
  • let's say you have two users or more, if you log in more than one user and stay logged the search will work for both users. The problem appears when you unlog from one user, then the search for the other user will stop working.
  • confirmed it with a brand new user just added for testing, and it happens also... perfectly reproducible
  • this is what I see on my iMac, with 11.2, your mileage may vary and I am curious if more users confirm this behaviour

Feb 13, 2021 2:47 AM in response to Cloudiii

A user in another thread mentioned that "corespotlightd" is the culprit. As a workaround I added the command "killall -9 corespotlightd" to a Stream Deck Key. Works like a charm and should be also working with any other Macro tool of your liking.


Of course Apple needs to fix this issue. Its a major disturbance for many users. Its not affecting just Mail, but other spotlight related searches. Mail may just be the most obvious one.


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 after Big Sur install

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