Sign up ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I'm looking for a free .eml file viewer to just read email files and for extracting attachments.

I don't want to use as it requires account setup - when I click on a .eml file opens with a window for setting up an account - which I don't want to do - I never use - I use gmail.

Is there a .eml email file viewer (including extracting attachments)?

share|improve this question
Can you not set up a dummy email account in Mountain Lion's and then untick "enable this account" like you could in Lion and earlier? – username Aug 8 '12 at 10:00
+1 Good point, I'll see how that goes. – therobyouknow Aug 8 '12 at 10:09

3 Answers 3

up vote 7 down vote accepted

To extract attachments from the Terminal, you can use a couple of different methods. Probably the easiest is

perl -MMIME::Base64 -ne 'print decode_base64($_)' < file.eml > out

where file.eml is the email file in question and out is the name of the attachment.

The same thing can be accomplished by using the base64 command, but you have to do some cleanup work on the original email file first -- namely strip everything out of the eml file before the base64 encoded attachment. The command would be something along these lines

base64 -D -i file.eml -o out

If you take the 2nd approach, recommend that you operate on a copy of the original file.

Of course for reading the eml files, you can probably use cat or your favorite editor. Works in a pinch, but certainly not the easiest way to deal with email.

share|improve this answer
+1 and accepted answer as, being a programming-based solution, I can incorporate this into a custom batch automation, and it's free. – therobyouknow Dec 25 '12 at 22:29

There's a free online .eml viewer you can use to extract messages and attachments from .eml, .msg and winmail.dat files:

share|improve this answer
I've found this to be very helpful. It's the simplest and quickest way for me to view the occasional one-off EML email without installing any software. Thank you. – nc. Aug 28 at 17:08

Look at the FileInfo for EML file: Sparrow also can open EML file, but not sure if need you to setup an account. If you just want to view the file, just use Quick Look but cannot save attachment.

share|improve this answer
+1 thanks @kukoo I will check it out. – therobyouknow Aug 8 '12 at 8:54
This looks like one of the best email clients on any platform. – therobyouknow Dec 25 '12 at 22:30

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.