Quick Look not displaying content of .eml files

On MBP16" running Catalina10.15.7, Quick Look is not displaying content of .eml files.

Only mail headers are displayed, not mail content.

It used to be possible in previous versions of MacOS.

Is there a way to fix this? (Quick Look plugins?)

I have a large amount of .eml files archived in project folders, which are now very hard to navigate.

Thanks for any input!


MacBook Pro 16″, macOS 10.15

Posted on Jan 26, 2021 12:58 PM

Reply
15 replies

Mar 16, 2021 4:35 PM in response to maartenfromzaandam

My testing shows, at least on my M1 OS X 11.2.3, that it isn't .eml files that are the problem, it's specifically .eml files generated by Microsoft Outlook which do not appear properly in Quick Look. The same emails saved by Apple Mail do show up properly in Quick Look, as do .eml files I generate using Emailchemy to convert from .msg files.


As best I can tell from discussions about this, the problem is that Outlook does not use unix linefeeds.

Jan 31, 2021 6:08 AM in response to VikingOSX

And an Automator folder action that removes the CR line-endings from the Raw Message Source (.eml) files when they are saved to that assigned folder, in this case, the Metadata folder on my Desktop because it was handy:



One can view these entire .eml files in Quick Look after the folder action has triggered by the save operation. Tested on macOS 11.1, but should also provide a solution on Catalina too.

Jan 26, 2021 4:17 PM in response to maartenfromzaandam

I've got Big Sur 11.1 and am able to use Quicklook on .eml files and see the contents:



Boot into Safe Mode by booting with the Shift key held down and check there to see if the problem persists.  Reboot normally and test again.


NOTE: Safe Mode boot can take up to 10 minutes as it's doing the following; 

• Verifies your startup disk and attempts to repair directory issues, if needed

• Loads only required kernel extensions (prevents 3rd party kernel/extensions from loading)

• Prevents Startup Items and Login Items from opening automatically

• Disables user-installed fonts 

• Deletes font caches, kernel cache, and other system cache files


Jan 30, 2021 10:56 PM in response to maartenfromzaandam

I also could not display .eml files in quicklook for some files but not all. I was able to recreate the error but I'm still not sure why that is. If I save the email from Mac mail as a "Raw message source" it does not work in Quicklook. However, if I just drag the email to the desktop, that new file is now viewable in quicklook. Does this work for anyone else? Drag and drop seems to work for me.

Jan 31, 2021 5:19 AM in response to Bluechroma

In Big Sur 11.1, when one saves an email from Apple Mail as a raw message source, it writes a *.eml file, whose content has carriage return endings on every line. When one drags and drops an email onto the Desktop, it has no carriage return endings.


When one strips the CR line endings from the *.eml file, Quick Look will display its entire content.


I have submitted a bug report to the Apple Mail team to fix the saved Raw Message Source from the evil of carriage returns.


In the Terminal, one can remove those CR line endings from a *.eml file by following the procedures here (and on macOS, using the control-V/control-M approach in sed).

Jan 26, 2021 1:44 PM in response to VikingOSX

Thanks for replying!


Saving as Rich Text Format is unfortunately not a solution; it's not an optimal way to archive emails as files since it discards info from the email, as well as makes it impossible to reply etc.


I'm very sorry to hear that in Big Sur it's also not implemented.

Once one starts using features of the OS, one starts to rely on it.

Then to find them broken, I see my archiving efforts rendered useless.

I was hoping to be able to just update MacOS without seeing these features broken


I will send feedback to the Mail product team, but is this not more of an OS issue? (Since Quick Look is independant from Mail?)


Friendly greetings

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Quick Look not displaying content of .eml files

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