4708 Views 1 2 3 Previous Next 34 Replies Latest reply: Apr 25, 2008 4:43 AM by Matthew St Go to original post
OK, here's the story. I tried your suggestions, Spotlight indexed for a while, but never picked up my Mail folders. They do not show up in any search, even though they are checked in Spotlight Preferences.
Then I went to an Apple Store and talked with a genius. He spent _2 hours_ trying to make it work. Here's some of the things he tried:
checked the whole HD for errors using Diskwarrior
dragged the whole HD to Spotlight's Privacy window and out again
re-installed OS X 10.5.1
used Terminal to turn off indexing, then turn it back on
In Terminal, deleted the Spotlight index, then re-indexed
He did the same things in Terminal you suggested
He finally gave up, and asked another genius. They conferred for a while, then we tried the following:
In Terminal, type:
mdimport /Users/yourusername/Library/Mail (yourusername is whatever it is on your machine - an easy way to do this is first type "mdimport" (without the quotes), then drag the Mail folder from your user Library onto the Terminal Window.
The mdimport command adds whatever you add to the index.
Then wait while Spotlight indexes the Mail folder.
Now Mail is able to search if I search on "Entire Message" in "All Mailboxes" - but still not individual mailboxes.
The genius told me I need to do the same thing with each of my mailboxes to get the index up to date (even though we dragged the whole Mail folder over, so I'm not sure why that is, but I'll try it anyway). They are Users/yourusername/Library/Mail/Mailboxes
There seems to be a bug in Spotlight (which is what Mail uses to do its search), which does not allow Spotlight to add content properly.
If you are having the same problem, please contact Apple and let them know:
John, I'm glad it worked for you, unfortunately, it did not work for me. I tried it several times, Spotlight runs for a little while, but still does not pick up my Mail messages.
After spending two hours with a genius at the Apple Store, we were able to get it to pick up a few more things in Mail, but it still does not find anything at all when searching "Entire Message" in any mailbox.
What it does do now is find a few things when searching "Entire Contents" in "Every Mailbox."
There is something seriously wrong with Spotlight for me.
Everyone is putting so much hope in 10.5.2 for fixing things, I'm sure there will be disappointment.
Yes, I hope it will fix things, but I doubt if it will. Although there seem to be others who are having the same Spotlight problems I'm having, it doesn't seem to be an avalanche of people. My guess is that 10.5.2 will fix things most people have been complaining about. But we'll see. Can't speculate, just hope.
Thanks for the help with this one everyone. I had the same problem and even spoke to a Apple Tech Support guy who after trying a few basic tests told me I had to do an "Archive and Install". I wasn't in the mood for that, so I kept looking.
Basically, the key for me was:
sudo rm .metadataneverindex
For some reason, even though there were no locations indicated in the "Privacy" tab of the Spotlight preferences, this .metadataneverindex file remained on the drive, and prevented Spotlight from working. And no matter how many time I reset spotlight, or told it to force re-index, or used Spotless to disable and then enable Spotlight... nothing worked. It took me a while before I noticed this invisible file, and finally, after deleting it, Spotlight worked again.
Message was edited by: Mark Jenkinson
Same Problem here: Spotlight does not search, no spinning wheel nothing. Tried the hints here with mdutil on/off, trashing the Spotlight file. Spotlight seems to have reindexed (V100 File was again here, aftere a while) but Spotlight refuses to work. I did this on X.5.2
As I had freshly installed I made a complete reinstall and tried Spotlight before doing any updating to X.5.2.
Same mess, Spotlight is dead
You are not alone. Spotlight is broken. It won't search Mail messages correctly.
So far, nothing I've tried has given me the ability to search Mail messages under "Entire Message" for any mailboxes.
"From," "To," and "Subject" searches work, but not "Entire Message."
Doing *mdimport ~/Library/Mail* in Terminal adds current messages to an "Entire Message" search for "All Mailboxes" but does not help an individual mailbox search, nor search any new messages.
_Here's what I've tried:_
Fixed permissions with Disk Utility
Re-booted (many times)
Dragged the hard drive icon to Spotlight's Privacy window, then off again
Installed 10.5.2 from Software Update
Re-installed OS X 10.5.2 from the combo update
Ran Diskwarrior 4.1 Rev. 42, did both a rebuild of the startup HD, and Files
Turned off indexing, then back on again
sudo mdutil -i off /
sudo mdutil -i on /
Turned off indexing, deleated the Spotlight index, turned indexing back on again
sudo mdutil -i off /
sudo rm -r .Spotlight-V100
sudo mdutil -i on /
Deleated the never index file (there was none)
sudo rm .metadataneverindex
Tried to rebuild the index
sudo mdutil -E /
Added Mail to the index
Received an error message: mdimport[188:807] * Failed to decode 8bit data, treating as binary
Doing mdimport ~/Library/Mail adds messages to the "Entire Message" "All Mailboxes" search, but no new messages get indexed.
_Genius at Apple Store:_
I spent two hours with a Genius at an Apple Store, he tried everything he knew, plus all of the above, plus asked another Genius for help. They were unable to fix Spotlight's search.
I have asked this question on Apple Discussions. Several others are experiencing the same problem. So far no one has been able to come up with a solution. The number of people with this problem is growing:
Topic : Spotlight does not search Mail messages
Topic : Search "Entire Message" returns "0 Found" in mailboxes
Topic : Spotlight died on me
Topic : I can't search through my inbox!
Topic : Leopard's Spotlight doesn't search Mail messages
Topic : Mail Search
Topic : Mail Won't Search
Topic : Search does not work
Topic : Mail search not working
Topic : Unable to Search Mailbox
Topic : Why is Search in Mail.app busted?
Topic : Mail Search comes up empty
Topic : Search "Entire Message" not working with Smart Mailboxes?
Topic : Mail searches yield no results! Smart mailboxes also yield no results!
Topic : 10.5.2 Mail.app search still not working (Entire Message)
Obviously, something is broken.
*PLEASE SEND FEEDBACK TO APPLE:*
In Mail, under Mail in the Menu, use "Provide Mail Feedback" to send your feedback to Apple. This sends general information to Apple about your Mail set-up, which should help them get this resolved.
If you do not wish to send them general info from Mail, you can use this link to send feedback:
Was there ever a solution found to this? I, too, have tried every solution proposed in this thread (although I'm in 10.4.11, not 10.5).
I had this problem a couple of months ago, and then (overnight) it "magically" fixed itself. I thought perhaps the change of date had something to do with it.
Today, suddenly, I find I have the same problem. I'm not happy about the fact that it's 1 April - someone's joke? Thinking that the change of date might have something to do with /etc/daily , I've run that but had no luck. I've also set the date ahead manually but it makes no difference.