Mail search completely broken in Catalina - tried every trick on the Internet but to no avail
Hi all,
Got a curly one - macOS mail will not show ANY search entries. I've been able to get it intermittently while rebuilding or redownloading, but as the download completes, it breaks again. This seems to be the same as the issue experienced in another thread - https://discussions.apple.com/thread/250711804
So far, I've tried:
- Disabling and re-enabling Spotlight indexing, both via the GUI and the command line
- Rebuilding all mailboxes
- Reindexing mailboxes (i.e. deleting Envelope files). Tried this several times and it corrupted some of my local stores, too.
- Various iterations of loading Mail in safe mode (shift+open)
- Checking for corrupt plists
There have been several reboots between trying the above. I've run out of options.
Whenever I rebuild the mailboxes, search works - partially, and temporarily. As more emails are downloaded, the search results become incomplete, and then hit zero. It's almost as if search works for all emails that are not downloaded.
The rest of Spotlight works fine
In system logs, when I perform searches, I do see some syslogs that look similar to:
error 01:55:07.225146+1000 corespotlightd <private>
error 01:55:07.225224+1000 corespotlightd ContentIndexDocSet_Step:1974: Caught mach exception
error 01:55:00.650105+1000 corespotlightd <private>
error 01:55:00.650199+1000 corespotlightd ContentIndexDocSet_PositionRead:2072: Caught mach exception
error 01:55:00.650461+1000 corespotlightd <private>
error 01:55:00.650525+1000 corespotlightd ContentIndexDocSet_PositionRead:2135: Caught mach exception
and:
default 01:31:23.211066+1000 corespotlightd Flush starting at 654449483.211059
default 01:31:24.054445+1000 corespotlightd Flush ending at 654449484.054438
default 01:31:25.104496+1000 corespotlightd copy file <private> to <private>
default 01:31:30.254679+1000 corespotlightd copy file <private> to <private>
default 01:31:30.257175+1000 corespotlightd copy file <private> to <private>
default 01:31:30.606148+1000 corespotlightd copy file <private> to <private>
default 01:31:31.508435+1000 corespotlightd (1903)Unlinked journal <private>
error 01:32:24.318372+1000 corespotlightd "Error returned from daemon: Error Domain=com.apple.accounts Code=9"
fault 01:32:24.318264+1000 accountsd Unentitled access by client 'corespotlightd' (selector: accountsWithAccountType:handler:)
error 01:32:24.320126+1000 corespotlightd "Error returned from daemon: Error Domain=com.apple.accounts Code=9"
fault 01:32:24.319925+1000 accountsd Unentitled access by client 'corespotlightd' (selector: accountsWithAccountType:handler:)
I suspect, but am not 100% convinced, that these are related, but I have been unsuccessful in googling for the above.
I am using the following accounts:
- GMail personal
- GMail Google Apps hosted
- Self-hosted IMAP server (on a macOS server)
- iCloud
- Two cloud hosted IMAP servers
- Local folders
I've tried disabling the GMail accounts but that didn't help, either. Entire mail store is around 600k messages, most of them on the GMail accounts.
Has anyone been able to resolve this issue? I've seen another thread that's had over 1700 people state ("I have this problem too") but no definitive solution. I first noticed this issue a few months ago, I think it may have been the result of a security update.
Any ideas on what I could try next that won't be destructive (i.e. without reinstalling, or removing the accounts which will permanently remove several settings related to the accounts)?
MacBook Pro