Spotlight, please don't show mail, but still let me search in Mail app
When I search for stuff, even constraining with name:whatIwant
, the majority of results are old e-mail messages and Safari history items.
How can I get rid of these results, but still search my email from within the Mail program? I have already added the History folder from Safari to the Privacy tab and put the Mail app in there too, but the results still show.
I am using Mountain Lion at the moment.
EDIT: It turns out I already had Messages and Web history un-selected in my Search Results tab (see second screengrab below), but I am still seeing the results from Web pages and from current (not just archived) Mail messages.
My Spotlight privacy tab:
My Spotlight check boxes...
Some results from my search window:
I have struggled with this also (telling spotlight NOT to search in mail etc.)... The best solution for me so far has been to get in the habit of writing:
-kind:mail
at the end of every search I make in spotlight.
I will admit this isn't a GREAT solution - but it works (and you could probably set a keyboard shortcut to type it for you if you wanted).
In System Preferences -> Spotlight, go to the Search Results tab, and uncheck Messages and Chats.
This will still allow you to index and search from within Mail, but the results will not show up when searching via Spotlight.
You can add ~/Library/Mail/ to the privacy tab, but it also prevents you from searching for messages in Mail.
If you can consider using Alfred instead, it doesn't include mail messages in the default search results, and it can be configured to not show mail messages even when you use the open or find actions.
-
Start Spotlight (by default ⌘ cmd+space) and search for any term, then select Spotlight Preferences… at the bottom of the list.
Alternatively, open System Preferences and select the Spotlight pane.
Uncheck "Messages & Chats" and close System Preferences.