Apple Event: May 7th at 7 am PT

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

Yosemite Mail is unable to list search results.

I search for an email address and nothing happens, although it says 90 messages found, keeping the same Inbox list as before. Any suggestions? Is this a bug?

John

OS X Yosemite (10.10), Mail Searches

Posted on Oct 17, 2014 2:25 PM

Reply
54 replies

Aug 15, 2015 1:15 PM in response to andreyfromekaterinburg

sudo defaults write /Library/Preferences/com.apple.security.appsandbox UnrestrictSpotlightContainerScope -bool true

This also fixed the mail search not working and no emails showing in smart folders or flagged items in El Capitan. Deleting envelope index files didn't work. Deleting mail directory from Spotlight preferences and re-adding didn't work either. Turns out this file (com.apple.security.appsandbox.plist) did not exist. This terminal command created it. Thanks....

Oct 20, 2015 4:06 AM in response to andreyfromekaterinburg

Hi sir, I got same problem. I type this message at Terminal : sudo defaults write /Library/Preferences/com.apple.security.appsandbox UnrestrictSpotlightContainerScope -bool true


But after that Terminal ask me to input password, I can't input anything from my keyboard except the "return" keys. After 3 times of "return" it said its "sudo: 3 incorrect password attempts". May I ask why I can't input the password? Pls advise!

Nov 18, 2015 1:15 PM in response to Quantumsteep

This works for me in mavericks too

Tried everything short of a full system restore over the course of weeks now due to the search feature in mail going south

THIS WORKS— so well I couldn't believe my eyes when it instantly solved the search problem:


http://www.macissues.com/2014/10/19/fix-mail-crashing-after-upgrading-to-yosemit e/


"Remove and rebuild Mail’s container

Mail is a sandboxed application in OS X, meaning that like many other applications it and its resources are isolated from other processes for security and stability reasons. As part of this setup, OS X will create a virtual container in which the program accesses the system resources it needs, and does so by accessing parts of the OS X filesystem through a special directory tree in your account’s library. This directory tree primarily contains aliases, but also contains files specifically for Mail, such as its preference and cache files.

If you remove the container for Mail, OS X will simply rebuild it and have Mail re-create the files it needs; however, doing so will clear out settings contained in these files, requiring you to set these up in Mail again. These can include mail accounts, signatures, smart mailboxes, and mail filters, so if you remove and rebuilt Mail’s container, expect to set these up again.

With this in mind, before clearing Mail’s container, be sure you have a full backup of your Mac. Then access the Go menu in the Finder with the Option key held down, and choose the menu item called “Library” that appears. In the Library folder, go to the Containers directory and move the folder called “com.apple.mail” to your Desktop (so you can restore it easily, if needed). After this, re-launch Mail, configure your e-mail accounts and other settings, and you should be up and running again.

Again, because of potential complications with setting up Mail, use this option after you have tried all others, after you have created a full backup, and only do so if you cannot get Mail to launch properly by any other means."

Thanx!!!!

Yosemite Mail is unable to list search results.

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