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

do you run multiple email clients because of quirky Mac Mail Search function (Lion + ML)?

i am repeatedly finding myself entering a search term in mac mail to find no results (or results after five minutes) and then entering the same search term in Sparrow (where i get even more results than i do in mail) in seconds. this means that Mac Mail search is basically useless to me on both Lion and Mountain Lion.


i have been trying to figure out what is going on now for roughly a year and i have rebuilt some kind of database by following some FAQ (i did this on both computers) and i am trying to read up on further leveraging the search function in this software but i am realizing today that if i cannot even get the simplest of terms to return any items in mac mail then either something is very wrong on my end or something is very wrong on the developer end of this software.


i've tried Postbox (total bomb) and i'm using Sparrow (very quick but very light on the functionality) and i am wondering if i need to (hack-hack) move back to Thunderbird for my IMAP based email.


anyone running a bunch of email clients and getting different things out of each?

Mac Pro, Mac OS X (10.7.5), win 7 + win xp in boot camp

Posted on Jul 8, 2013 7:24 PM

Reply
Question marked as Best reply

Posted on Jul 8, 2013 7:47 PM

Mail not finding things usually means your Spotlight index is corrupt or incomplete.

http://support.apple.com/kb/HT2409


I don't find any problems with Mail's search, so I don't have a need for anything else.

4 replies

Jul 9, 2013 8:20 AM in response to Barney-15E

hi barney. thanks. i just read up again on some of the documentation you provided earlier.


i am wondering about some things. some apply to both machines and the other applies to my laptop only.


1. it appears that you have to download all attachments and messages for mail search to work correctly. i turned this off on the laptop to save space but have turned it back on.


2. do you know what Mailbox menu item > Rebuild does - if for instance i run this when my Global Inbox is selected?


3. do you know how to search On My Mac mail? i mean, i have a LOT of mail in here and the documentation seemed to indicate that searching for all (not sure) did not search for On My Mac Mail. also, to the best of my recollection i CANNOT select the "On My Mac" icon and instead have to select an actual folder. since i have like twenty five folders this means i would have to know where an email or term was before searching which is silly. would a workaround for this to be to put ALL MY MAIL IN ONE FOLDER in the On My Mac area and search this separately (by necessity) from my other mail?


4. what is the difference between running a search in Mac Mail and running a search in Spotlight? are you saying these are the same in the sense that they both are taking information from the same database and the Mac Mail search is just limited to mac mail specific items in some way?


5. will searching for a term in mac mail also search for an any /attachment/ with that term?


THANKS

Jul 9, 2013 12:24 PM in response to hotwheels22

Question 3. From Mail Help.


Rebuild mailboxes


You might need to rebuild a mailbox to update the list of messages in the mailbox. For example, if messages appear to be missing or garbled, or if you can’t find all relevant messages when you search using Entire Message. Rebuilding a mailbox can take a while depending on how many messages are in the mailbox.

Select a mailbox, and then choose Mailbox > Rebuild.


When you rebuild mailboxes for Internet Message Access Protocol (IMAP) and Exchange accounts, locally stored messages and attachments are discarded, and the messages and attachments are downloaded again from the server to your Mac. Your mailbox appears empty until the download is complete.


RELATED TOPICS

There is a way to reindex your mail.


User uploaded file

Reindex messages


If there are problems with information in your mailboxes, you might see an alert message saying that Mail needs to repair your mailboxes by reindexing your messages for you.

At other times, you may want to reindex messages yourself—for example, when searching mailboxes using Subject, To, or From doesn’t return the correct results.

  1. Quit Mail if it’s open.
  2. In ~/Library/Mail/V2/MailData, delete any file that begins with “Envelope Index,” such as Envelope Index or Envelope Index-shm.Your home Library folder is hidden by default. To display it, choose Finder > “Go to Folder” and then enter “~/Library.”
  3. Open Mail.Mail creates new Envelope Index files. This process may take a few minutes, depending on how many messages Mail is reindexing.

Jul 9, 2013 3:40 PM in response to hotwheels22

1. I don't now that you have to download the messages for it to work, but you do need to download them to search their contents.


The list of messages that you see comes from a database that is built from the individual messages. Rebuilding the mailbox re-indexes all of those messages. That does not rebuild the Spotlight index.

Eric has pretty much covered the rest of the details.


I'm getting returns from the On My Mac mailboxes, so this may be an issue with the index/Spotlight index.


Yes, spotlight will search email messages. You can set the order of things returned by Spotlight in the Spotlight Preferences. Everything on OS X is search using the Spotlight Index. It is hidden at the root of your hard drive.


The Mail search is limited to email, including attachments, but it allows for narrowing your search with tokens.

As you type, the search is on, and it will display any category that matches what you are typing. A list of categories will drop down to indicate how you may narrow the search. If nothing is offered, it isn't finding the term you are typing at all. When you select a category, it adds the token to the search field along with the search term. You can change the category by clicking on the arrow. The Attachment category only seems to be the name of the attachment, not the contents. The contents are in the "Message contains" category which ends up with an "Any" token. You can add more "tokens" which will further narrow the search. After setting one, click next to it and type away.

Mail Help, Search a message, has some more info on using the tokens.

do you run multiple email clients because of quirky Mac Mail Search function (Lion + ML)?

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