You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

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

Search not working properly in mail

The search feature in Lion/Mail will not find names or words in the "Subject" category even when I know they exists. I use mail for my business and often need to find old emails from clients..... the new search feature in Lion does not work. How can Apple release a product with such a obvious flaw?


Other problems with mail.....

• When I open mail no new mail will appear in my "in box" until I select another mail box like "trash" or "Sent".... then the new mail will appear.

• The "Hide Mail" feature is greyed out when mail is open.... there's no way to hide mail.

• The scroll down bar on the right side of the window is hidden until you drag the edge of the frame over to reveal it.

• Windows are locked and can't be moved.

I've been using Apple products from the earliest days in the 1980's and quite frankly have been shocked at some of the things Apple is screwing up these days. From the Final Cut Pro conversion to Final Cut X disaster that has sent thousands of professional editors running to other products, to these seemingly small but irritating flaws with the new software being released before these problems have been addressed.

A search feature that does not work? Did anyone try this out before the release? Steve Jobs would be raising **** if he were still alive!

Posted on Apr 19, 2012 11:35 AM

Reply
Question marked as Top-ranking reply

Posted on Apr 19, 2012 11:46 AM

Hello,


The search by Subject works perfectly with Mail in Lion. When your do a search be sure to select All in the search bar that appears.

107 replies

Dec 20, 2012 10:10 AM in response to bill96744

i had success by removing the search window in mail and adding it back in. to do this, right click in the search window and choose customize toolbar. while the options are open, drag off your search window in your mail window (upper right corner) so it "poofs" away. then add a new search window back in from the customizable options. i thought this would never work, but it did for me. i tried deleting those files someone else suggested first, but this is what did the trick for me. good luck.

Dec 20, 2012 10:23 AM in response to ninjitalia

If you are trying to rebuild the Mail message database by deleting the envelope index files and followed the instructions to quit mail first before deleting the files, then restarting mail will have a box come up to continue and the database will reindex. You will definitely notice it.


You should also check the spotlight preferences to make sure there are no exclusions which might include Mail. You should also reindex spotlight. I haven't reread all the messages in this post, but I'm sure everything is listed. Let me know exactly what you need help with and are trying to do.


I don't normally recommend an application to do this with, but the easiest way for you might be to download Onyx and run these from there. I use this application from time to time and haven't had any problems with it, but I would definitely tell you to have a good backup before using this or doing anything esle.

If you download Onyx for Mac, don't download the beta version. Use only the lastest tested version which is 2.6.3.

http://www.macupdate.com/app/mac/11582/onyx


When you run Onyx, open the Maintenance tab, the select the Rebuild tab. You can check the boxes for Spotlight Index and Mail Envelope Index and hit execute. Make sure you close all applications before running Onyx.



In Addition:

The latest stable version of Onyx is 2.6.3. I edited the version above.

Jan 23, 2013 4:17 PM in response to bill96744

Oh dear. I was having the same trouble. Using the "rebuild" menu item gave me back some limited search capability, but not everything. So I followed the instructions above and deleted the three "envelope" files. Then I re-staretd Mail.


Mail dididn't say that it was re-indexing my mail, but re-importing it, as if I had deleted all of the cached mail! Mail said that this woudl take an hour and some minutes. 6 hours later, this is what I see:


User uploaded file


It did actually count down to zero, but then the counter evidently wrapped ...


So, I don't recommend that you try this at home. I may have to restore mail from a backup.

Jan 31, 2013 11:01 AM in response to a.p.fromportland

a.p.fromportland You should try some housekeeping. If you really have that many emails, that could be why it's having an issue. My wife also runs into issues because she never deletes any emails and she has 10k+ emails in her inbox. I'm guessing that instead of the Mail app not finding the emails, it just hasn't finished looking through all the emails yet. If it takes 6 hours to index, its going to take a long time to search through it. Just my opinion.

Feb 12, 2013 9:48 PM in response to bill96744

Hi,

I have read through this entire series of posts on this subject and have done everything suggested, even things as silly as removing the search box and adding it again. I've re-indexed and rebuilt and have removed my address book from the library folder but still nothing. My spotlight works just fine, but my mac mail search just doesn't work completely. If I search for something in the "subject line," or "from" or "to," not a problem, but if I ask it to search "any" through "everything", nothing happens. I get "searching," and then "no messages found." This is very annoyiing and I'm not really looking forward to re-installing mountain lion. Any ideas?

Feb 20, 2013 9:23 AM in response to David Deutsch

It worked! Thanks David!


Using the instructions from the link, I only needed to do the first command:

sudo mdutil -i on "/Volumes/Macintosh HD"


which returned "Indexing enabled.".


Just to reiterate, I had previously rebuilt the Spotlight indexes using the method of adding my hard drives to the exclusion list in the Spotlight preferences panel on the Privacy tab. After that I removed them from the exclusion list which caused the indexes to be rebuilt. This was not enough to fix the problem (or possibly even needed).


Thanks again!

Feb 25, 2013 2:13 PM in response to ninjitalia

Thanks to everyone who has contributed to this thread. The problem (and solution) is in understanding the way the email search box works

This is what I have realised after trying some of the things you have suggested. When I search for an email address using "from" it does not show up. That is because I link my email conversations and they show up as a thread of emails with a small number next to the the last email. If the email address I am searching for is not the latest email received in the thread, it is buried in the thread and cannot be found in the email search box this way.

So if I search for fred@icloud.com under "from" it does not show, but if I click the little downward arrow next to "from" in the mail search and choose the option "entire message" I will find his email amongst one of the threads of conversations - the ones with little numbers next to them. I then have to click that thread of emails and Fred's email appears in there. You just have to remember that this is how the search mode works and not go into a blind panic when nothing shows up in the search - which is what had been happening to me. I hope this helps someone.

Mar 18, 2013 11:29 PM in response to Glenn Leblanc

I downloaded the latest version of Onyx as recommended by Glenn Leblanc (I thought the program iceclean would have this same option to rebuild spotlight / mail but I guess not)


Under maintenance, I checked: Spotlight Index and Mail's Envelope Index along with all the other already checked options... and it "search all" FINALLY WORKS!
It's been over 4 months since I've upgraded to 10.8... and have tried the manual deleting and terminal rebuilding without any luck. Onyx did the trick for me.🙂

Search not working properly in mail

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