Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

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 Best reply

Posted on Oct 8, 2019 5:17 PM

This solved my problem. My search was broken too. I followed the stop/start spotlight as mentioned in the post above and the search is gradually coming back to normal. I think Spotlight needed a kick to get moving.

Summarizing from the link:


1) Launch the Terminal.app (Just copy/paste the string starting with sudo.... and press return)

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

3) Enable it again by typing: # sudo mdutil -i on / <return>


Similar questions

161 replies
Question marked as Best reply

Oct 8, 2019 5:17 PM in response to JamesX77

This solved my problem. My search was broken too. I followed the stop/start spotlight as mentioned in the post above and the search is gradually coming back to normal. I think Spotlight needed a kick to get moving.

Summarizing from the link:


1) Launch the Terminal.app (Just copy/paste the string starting with sudo.... and press return)

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

3) Enable it again by typing: # sudo mdutil -i on / <return>


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 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 8, 2019 6:24 AM in response to VikingOSX

hello vikingOSX, I only have Catalina installed, saying that, my email search is working again. I am not 100% what I did to fix this or if it corrected itself (which I doubt).


the only thing I did was rebuild my mailbox (more then once) and applied this fix

https://discussions.apple.com/thread/8583152


I do have another search problem though:

notes (app) do not show in spotlight search. I am not sure how to fix this so if anyone has any suggestions that would be appreciated.


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 31, 2019 11:31 PM in response to xingmin

Min,


Not sure if you mean the update to v10.15.1 fixes the problem all by itself? i.e., Did Apple put something into the update to fix the problem outright?


I wasn't able to confirm if the update to v10.15.1 actually fixes the problem:


  • I fixed one of my Macs before the update. After the update it still works.
  • I started the fix on another Mac, but before the reboot part I ran the update to v10.15.1. After the update, I finished the fix and it works now, too.


So for sure... the update to v10.15.1 doesn't doesn't hurt things.

😀

Nov 10, 2019 1:45 PM in response to JamesX77

Yeah, apple mail is completely broken in Catalina. I've waited for them to fix this, but no fix yet. I have the same problems:

  1. Cannot search - ANYTHING! Nothing happens when type in the search box and press enter
  2. Lost ALL flagged emails. Flagged email category does not even show up in the sidebar. This one is pretty annoying. I had so many flagged emails which I use regularly.


Tried rebuilding, the spotlight turning off-on thing using terminal, rebooting, safe mode, all kinds of stuff suggested here. Tried waiting for them to fix this. Alas, trying the final solution - Changing my mail client. I guess apple doesn't want to maintain a mail client anymore.

Oct 10, 2019 1:57 PM in response to Lev Osherovich

Saw this in the log:


And xattr fails miserably for me:

MacBook-Pro-2:Library xxxxx$ sudo xattr -rd com.apple.quarantine /Users/xxxxx/Library/Mail

Traceback (most recent call last):

File "/usr/bin/xattr", line 13, in <module>

load_entry_point('xattr==0.6.4', 'console_scripts', 'xattr')()

File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/xattr/tool.py", line 258, in main

doSinglePathChange(filename,attr_name,attr_value,read,write,delete,recursive)

File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/xattr/tool.py", line 183, in doSinglePathChange

listdir = os.listdir(filename)

OSError: [Errno 1] Operation not permitted: '/Users/xxxxx/Library/Mail'


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 ID.