Leopard Mail Entire Message Search - FIXED!!!
My Original Post is here:
http://discussions.apple.com/thread.jspa?messageID=7462907#7462907
Posted by: DaveC
This is a known issue. Check out:
http://www.betalogue.com/2008/02/25/mac-os-x-105-tip-repairing-broken-spotlight- searches-in-mail/
http://www.betalogue.com/2008/03/28/mac-os-x-105-broken-spotlight-indexing-for-m ail-messages-caused-by-presence-of-older-mail-application/
Thanks Dave. I went to Betalogue and went through all the posts and I finally found a way to fix the Search Entire Message Spotlight problem in Apple Mail - at least it worked for me. I have been trying to fix this with all sorts of solutions for months and it turns out it was related to a problem with the Launch Services Database. I confirmed this by looking inside my user/library/mail folder and seeing that inside each Mailbox folder, the sub mailboxes all had standard folder icons and not the inbox tray style icons.
Note that you can easily fix this through Terminal Commands, and not all the following steps are completely necessary, but there are many people looking at these threads that want to just push buttons...
*== So here are my simple steps to fixing Apple Mail Search ==*
1. Attach and turn on any external hard drives you have that may have a copy of Mail.app on them
2. Delete all OLD copies of Mail.app that you can find (don't worry about Time Machine), but make sure you keep the latest version of Mail.app in your working Applications folder.
~ This is so that the LaunchServices database won't easily become corrupt again
3. Install the latest version of Onyx - free to use and download from www.macupdate.com
~ I suggest Onyx, because some people don't want to mess with the Terminal.
4. Quit all open applications and run Onyx (it will want to check your Hard Drive etc...that's OK).
5. Go to the Maintenance pane and then the Rebuild tab and select only the LaunchServices box. Click Execute.
~ This should fix the primary problem with searches
6. When that process finishes, select only the Mail's Envelope Index box. Click Execute.
~ This should fix related problems with other searches
7. When that process finishes, select only the Spotlight Index box. Click Execute. (This process of Rebuilding your Spotlight Index could take hours depending on how big your hard drive is).
~ This will give you a clean fast Spotlight database that Mail uses for Entire Message searches.
8. Quit Onyx
9. Open Mail.app and test your Entire Message Search!
====
Hope that helps - it certainly, finally, did for me!
Bryce.