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

[HELP] Search for emails inside Mail app not working - But spotlight search for mails Work!

Hi guys I have a brand new Macbook Pro 15'' Late 2013 (haswell) and Mail search stopped working two days ago, its not an indexing problem because if I search it on spotlight it finds the email.


I've tried everything that is described here already.

http://support.apple.com/kb/PH11798?viewlocale=en_US&locale=en_US


I deleted the ~/Library/Mail/V2/MailData Envelope Indexes, rebuilt the Mailbox, removed the account and added again. I've tried the mdutil -s command on terminal just in case but index is enabled.


I dont know what else to try. Is someone experiencing the same problems as me? Was someone able to fix it? I spent almost this 2 days searching on threads of this forum, but none fixed my problem so decided to create a new thread.


Thanks in advance.

Tiago Pessoa

MacBook Pro, OS X Mavericks (10.9)

Posted on Dec 16, 2013 6:46 PM

Reply
Question marked as Best reply

Posted on Dec 16, 2013 6:48 PM

10.9.1 was released today, Monday.


includes improvements for Mail, Safari, and more.

69 replies

Dec 16, 2013 7:45 PM in response to tiagomello

Launch the Console application in any of the following ways:


☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)


☞ In the Finder, select Go Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.


☞ Open LaunchPad. Click Utilities, then Console in the icon grid.


Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select

View Show Log List

from the menu bar.


Click the Clear Display icon in the toolbar. Then try the action that you're having trouble with again. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message (command-V).

When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.

Please do not indiscriminately dump thousands of lines from the log into this discussion.

Important: Some private information, such as your name, may appear in the log. Anonymize before posting.

Dec 16, 2013 8:54 PM in response to tiagomello

Step 1

If you have more than one user account, this step must be carried out as an administrator.

Triple-click anywhere in the line below on this page to select it:

syslog -k Sender mdworker -o -k Sender mds | grep -v 'boxd\|Norm' | tail | awk '/:/{$4=""; print}' | pbcopy

Copy the selected text to the Clipboard by pressing the key combination command-C.


Launch the Terminal application in any of the following ways:


☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)


☞ In the Finder, select Go Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.


☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.


Paste into the Terminal window by pressing the key combination command-V. I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting.


The command may take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear.


The output of the command will be automatically copied to the Clipboard. If the command produced no output, the Clipboard will be empty. Paste into a reply to this message.


If any personal information appears in the output, anonymize before posting, but don’t remove the context.

Step 2

Enter the following command as in Step 1 and post the output:

mdutil -as | pbcopy

You can then quit Terminal.

Step 3

Launch the Console application in the same way you launched Terminal. In the Console window, look under the heading DIAGNOSTIC AND USAGE INFORMATION on the left for crash reports related to Spotlight. If you don't see that heading, select

View Show Log List

from the menu bar. A Spotlight crash report has a name beginning in "mds" or "mdworker" and ending in ".crash". Select the most recent such report, if any, from the System and User subcategories and post the entire contents — the text, please, not a screenshot. In the interest of privacy, I suggest that, before posting, you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if it’s present (it may not be.)


Please don’t post any other kind of diagnostic report, such as hang logs — they're very long and not helpful.

Dec 17, 2013 12:44 AM in response to Linc Davis

Dec 16 12:31:11 mds[91] <Error>: (Error) Queue: [initWithVSD journals.live_priority:0x7f9a3a61c4b0] ERROR! serial#/ret mismatch impliedRetirement:7343 serialNumberPush:7351 lastRetired:7358

Dec 16 12:31:11 mds[91] <Error>: (Error) DiskStore: vsd:0x7f9a3b815000 _fmwQueuePriority:0x7f9a3a61c4b0 ERROR! Bad journal playBack:1387182178 scanBaseTime:1387182178

Dec 17 09:18:35 mds[81] <Error>: (Warning) Server: No stores registered for metascope "kMDQueryScopeComputer"

Dec 17 11:50:07 mds[81] <Error>: Cannot create fileport: -1: Unknown error: -1

Dec 17 11:50:07 mds[81] <Error>: (Error) Server: *** textSnippetFDs Failed to create FD! 0 - oid:7710162562325479425 - fd:32715

Dec 17 11:50:08 mds[81] <Error>: Cannot create fileport: -1: Unknown error: -1

Dec 17 11:50:08 mds[81] <Error>: (Error) Server: *** textSnippetFDs Failed to create FD! 0 - oid:7710162562325479425 - fd:0

Dec 17 11:50:08 mds[81] <Error>: Cannot create fileport: -1: Unknown error: -1

Dec 17 11:50:08 mds[81] <Error>: (Error) Server: *** textSnippetFDs Failed to create FD! 0 - oid:7710162562325479425 - fd:0



/:

Indexing enabled.

/.MobileBackups:

No index.

User uploaded file

Dec 17, 2013 8:50 AM in response to Linc Davis

Dec 16 02:28:28 mds[59] <Error>: (Warning) Server: No stores registered for metascope "kMDQueryScopeComputer"

Dec 16 02:28:29 mds[59] <Error>: (Error) Queue: [initWithVSD journals.live_priority:0x7f9af4039d50] ERROR! serial#/ret mismatch impliedRetirement:25984 serialNumberPush:25987 lastRetired:26061

Dec 16 02:28:29 mds[59] <Error>: (Error) DiskStore: vsd:0x7f9af8018600 _fmwQueuePriority:0x7f9af4039d50 ERROR! Bad journal playBack:1387171498 scanBaseTime:1387171498

Dec 16 14:35:56 mds[59] <Error>: (Warning) Server: No stores registered for metascope "kMDQueryScopeComputer"

Dec 16 23:59:49 mds[59] <Error>: (Warning) Server: No stores registered for metascope "kMDQueryScopeComputer"

Dec 17 00:02:54 mds[59] <Error>: (Error) Queue: [initWithVSD journals.live_priority:0x7fe638516500] ERROR! serial#/ret mismatch impliedRetirement:28000 serialNumberPush:28002 lastRetired:28240

Dec 17 00:02:54 mds[59] <Error>: (Error) DiskStore: vsd:0x7fe63a802600 _fmwQueuePriority:0x7fe638516500 ERROR! Bad journal playBack:1387249270 scanBaseTime:1387249270


There is no erros on Console DIAGNOSTIC AND USAGE INFORMATION starting with MDS or MDworker


Thanks for the help once again, will be waiting further instructions

Dec 17, 2013 10:19 AM in response to tiagomello

Please read this whole message before doing anything.

This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.


Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled on some models, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.

Safe mode is much slower to boot and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal boot may also be somewhat slow.

The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.

Test while in safe mode. Same problem?


After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test.

Dec 17, 2013 3:33 PM in response to tiagomello

Please follow these directions to delete the Mail "sandbox" folders. In OS X 10.9 there are two sandboxes, while in earlier versions there is only one.

Back up all data.

Triple-click anywhere in the line below on this page to select it:

~/Library/Containers/com.apple.mail

Right-click or control-click the highlighted line and select

Services Reveal

from the contextual menu.* A Finder window should open with a folder named "com.apple.mail" selected. If it does, move the selected foldernot just its contents — to the Desktop. Leave the Finder window open for now.

Log out and log back in. Launch Mail and test. If the problem is resolved, you may have to recreate some of your Mail settings. You can then delete the folder you moved and close the Finder window. If you still have the problem, quit Mail again and put the folder back where it was, overwriting the one that may have been created in its place. Repeat with this line:

~/Library/Containers/com.apple.MailServiceAgent


Caution: If you change any of the contents of the sandbox, but leave the folder itself in place, Mail may crash or not launch at all. Deleting the whole sandbox will cause it to be rebuilt automatically.

*If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination command-C. In the Finder, select

Go Go to Folder...

from the menu bar, paste into the box that opens (command-V). You won't see what you pasted because a line break is included. Press return.

Dec 17, 2013 4:27 PM in response to Linc Davis

Linc, Davis.


Thank you very much for the support. I am really impressed and glad that there are people like you that put alot of effort to help people. Thank you very much!


When I entered in safe mode and tested the Mail search inside safe mode it didnt work, but When I started back on Normal mode and tested it again now, it started working again!!!!!!!!


So basicly what fixed for me was entering on safe mode and rebooting, not sure why.


Thank you once again.


DenisKlimenco,


I hope this fixes for you too.


Regards,

Tiago

[HELP] Search for emails inside Mail app not working - But spotlight search for mails Work!

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