Get a free quote now

How to open .eml files and included attachments in Ubuntu or any other GNU Linux distro

June 03, 2009 - 00:37

If you are a regular GNU Linux user there is a very good chance that you will come across emails forwarded to you as .eml files once in a while. .eml is the extension used for files saved as emails from Microsoft outlook or outlook Express. It is normally just a matter of opening these files with gedit as the files are plain text files unless they have attachments. If the attached .eml files themselves have attachments you run into the problem of actually having to open these base64 encoded attachments. The default set of applications in Ubuntu does not directly allow you to do this but there is an easy work around for this problem.

  1. Open evolution and compose a new mail.
  2. Attach the .eml file as an attachment to this mail.
  3. Save the mail and close the compose window.
  4. Select the mail from the Evolution main window.
  5. Below the viewing pane there will be an option to view the attachment inline. Click on it and enjoy.

This is only a workaround for the problem but it is an easy work around. If you know an easier solution please do share it with us for the benefit of everybody out there.

Post your comments / questions

This tip works very nice on emails where you receive an .eml file as attachment in evolution as well.
Only have to scroll down in the message (or viewing pane) to find the option as described.
So far I did find only conversion tips by storing the .eml and converting it through Thunderbird till now.
Thanx

Open evolution and compose a new mail.
Attach the .eml file as an attachment to this mail.
Save the mail and close the compose window.
Select the mail from the Evolution main window.
Below the viewing pane there will be an option to view the attachment inline.download kMail.With left click select KMail. Click on it and enjoy.

Thank you very much, it works! :)

1. From Thunderbird/Evolution/gmail/wherever: Save message (as .eml).
2. $ sudo apt-get install mpack # or equivalent for your OS - install package called "mpack"
3. $ munpack message.eml

# bash, multiple files:
$ for f in *.eml; do munpack $f; done

Very useful. It works very well! Thanks.

Easy, easy, easy....For those of us that don't use Tbird/Evo/KMail, etc this is the fix...

Thanks so much!

Thanks it worked

GREAT! thanks very much! you saved me!
i'm falling mad about this problem!
i'll release this good tip in ubuntu forum!!

Thank you so much. It works!

I was struggling like a crippled swimmer until I read this. Thanks a lot! Enjoy your heavens!

thanks!