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.

spotlight not finding any emlx files (apple mail)

MacBook Air M2, Monterey 12.5.1


Spotlight not finding texts from archived Apple Mail files. It only lists attachments. It seems all emlx files are excluded from the search. Same seems to happen with EasyFind.


I note that also the results from the recent Mails (mails actually listed in Apple Mail) are incomplete at best.

MacBook Air

Posted on Aug 22, 2022 4:45 AM

Reply
Question marked as Top-ranking reply

Posted on Aug 23, 2022 9:09 AM

Thomas Huerlimann,


Got it. To clarify, are you referring to Spotlight not searching the contents of those .emlx files, or locating the files themselves?


If they're not appearing in Spotlight, try the steps below from the resource titled If searching your Mac returns unexpected results. If an item or location is excluded from Spotlight, it might account for what you're seeing.


"Check settings in Spotlight preferences

  • You may have excluded items from Spotlight searches. To check, choose Apple menu  > System Preferences, click Spotlight , then click Search Results. Items whose checkboxes aren’t selected aren’t included in search results.
  • You may have excluded certain folders or disks from Spotlight searches. To check, choose Apple menu > System Preferences, click Spotlight, then click Privacy.
  • You may have turned off Location Services for Siri Suggestions. See Turn off Siri Suggestions for Spotlight."


There are a few other possibilities in the link posted above as well. If you find none of those helps, you might want to Rebuild the Spotlight index on your Mac as a next step. This is a good general step for unexpected Spotlight behaviors, and knowing if this helps will be useful in narrowing the behavior down:


"Rebuild the Spotlight index

  1. Choose Apple menu  > System Preferences, then click Spotlight.
  2. Click the Privacy tab.
  3. Drag the disk or folder that you want to index again to the list of locations that Spotlight is prevented from searching. Or click the add button (+) and select the disk or folder to add.
  4. folder named "Documents" dragged into the "Prevent Spotlight from searching these locations" list in Spotlight System Preferences
  5. You can add an item to the Privacy tab only if you have ownership permissions for that item. To learn about permissions, choose Help from the Finder menu bar, then search for “permissions.”
  6. From the same list of locations, select the disk or folder that you just added. Then click the remove button (–) to remove it from the list.
  7. Spotlight System Preferences Privacy tab with add and remove button callout
  8. Quit System Preferences. Spotlight will reindex the contents of the disk or folder. This can take some time, depending on the amount of information being indexed."


Let us know the results, and have a good one.



8 replies
Question marked as Top-ranking reply

Aug 23, 2022 9:09 AM in response to Thomas Huerlimann

Thomas Huerlimann,


Got it. To clarify, are you referring to Spotlight not searching the contents of those .emlx files, or locating the files themselves?


If they're not appearing in Spotlight, try the steps below from the resource titled If searching your Mac returns unexpected results. If an item or location is excluded from Spotlight, it might account for what you're seeing.


"Check settings in Spotlight preferences

  • You may have excluded items from Spotlight searches. To check, choose Apple menu  > System Preferences, click Spotlight , then click Search Results. Items whose checkboxes aren’t selected aren’t included in search results.
  • You may have excluded certain folders or disks from Spotlight searches. To check, choose Apple menu > System Preferences, click Spotlight, then click Privacy.
  • You may have turned off Location Services for Siri Suggestions. See Turn off Siri Suggestions for Spotlight."


There are a few other possibilities in the link posted above as well. If you find none of those helps, you might want to Rebuild the Spotlight index on your Mac as a next step. This is a good general step for unexpected Spotlight behaviors, and knowing if this helps will be useful in narrowing the behavior down:


"Rebuild the Spotlight index

  1. Choose Apple menu  > System Preferences, then click Spotlight.
  2. Click the Privacy tab.
  3. Drag the disk or folder that you want to index again to the list of locations that Spotlight is prevented from searching. Or click the add button (+) and select the disk or folder to add.
  4. folder named "Documents" dragged into the "Prevent Spotlight from searching these locations" list in Spotlight System Preferences
  5. You can add an item to the Privacy tab only if you have ownership permissions for that item. To learn about permissions, choose Help from the Finder menu bar, then search for “permissions.”
  6. From the same list of locations, select the disk or folder that you just added. Then click the remove button (–) to remove it from the list.
  7. Spotlight System Preferences Privacy tab with add and remove button callout
  8. Quit System Preferences. Spotlight will reindex the contents of the disk or folder. This can take some time, depending on the amount of information being indexed."


Let us know the results, and have a good one.



Sep 13, 2022 12:19 AM in response to Thomas Huerlimann

Solution (workaraound):


As other users have confirmed (in other Mac forums), this is a general problem. The developer of HoudahSpot says the emlx Spotlight Importer was removed by Apple with Big Sur.


A workaround is to use FAF (Find any File https://findanyfile.app/index.php). It does indeed find contents of .emlx files.

Aug 23, 2022 8:32 AM in response to Thomas Huerlimann

Hello Thomas Huerlimann,


To help resolve this issue, follow the steps from this article:

If searching doesn’t find the right emails in Mail on Mac - Apple Support


"If one or more mailboxes are selected in the Mail sidebar or the  Favorites bar, Mail searches only those mailboxes. To search all mailboxes, click All Mailboxes in the sidebar or All in the Favorites Bar.


• Mail may not be looking in the Trash or Junk mailboxes, or searching encrypted messages. To include them when searching all mailboxes, choose Mail > Preferences, click General, then select the options.

• You may need to sync the mailboxes on your Mac with those on the mail server. Choose Mailbox > Synchronize > [account].

• Mail may be excluded from Spotlight searching. To check, choose Apple menu  > System Preferences, click Spotlight , then click Search Results. If the Mail & Messages checkbox isn’t already selected, select it.

• The Mail folder (located in your home Library folder) may be excluded from Spotlight searching. To check, choose Apple menu > System Preferences, click Spotlight, then click Privacy. If Mail is listed, select it, then click the Remove button ___."


Best Regards.

Aug 23, 2022 8:47 AM in response to Thomas Huerlimann

EasyFind informs me "An .emlx file has base64 encoded data, not the text as you see it displayed, so it cannot be found in a contents-based search."


So what with spotlight? Same reason why it does not find anything?

I had used both ways to search my archived files before while on Mojave and they did work.

Finder itself can display all those messages (select file, click on spacebar) which spotlight can not find.

Aug 27, 2022 1:18 PM in response to ryane77

Hi and thanks for the suggestions


Spotlight settings is and was not excluding anything. And all kinds of content are activated.


I did now list that folder with my mail archives for exlusion like you suggested and later delete it from the list. I did let it so for some hours. Now when checking still the same: I get attachments from that folder in search results, but none of the .emlx mail files.


But those files are accessable. I can select them and view their content in finder preview (press spacebar) or doubleclick and they get opened by Apple Mail.

spotlight not finding any emlx files (apple mail)

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