LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-08-2009, 10:02 PM   #1
Dave97
LQ Newbie
 
Registered: Aug 2009
Posts: 1

Rep: Reputation: 0
eml format, linux


Hello, Newbie attempting to view EML files unsuccessfully, with Linux.
I can view the file from Thunderbird,but after I save the ".eml file" it becomes unreadable or generally will not open at all.
Any assistance from you to help me along the way will be greatly appreciated.
 
Old 08-10-2009, 07:07 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
I see .eml files only within e-mail operations---eg forwarding a message. I'm not sure why you would ever need to open one directly.

If you save the file, can you open it from within Thunderbird? (File--->Open Saved Message)

<<Edit: yes you can---I just tried it.....>>

Last edited by pixellany; 08-10-2009 at 07:10 AM.
 
Old 08-10-2009, 07:25 AM   #3
3dMaster
LQ Newbie
 
Registered: Jan 2008
Posts: 23

Rep: Reputation: 15
Did you try to open it with a text viewer?
The .eml file is plain text message, so you will have no preblem opening with vi, emacs, o whatever program you like
 
Old 08-10-2009, 07:35 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You can load a text email from the thunderbird program just file. An html email won't be displayed properly.

You could extract the html body and view the results in a web browser:
cat ~/bin/eml2html
Code:
email="$1"
sed -n '/<html>/,${$!p}' "$email" >/tmp/temp.html
firefox "file:///tmp/temp.html"
rm /tmp/temp.html
I tested this out on an html email I saved using Thunderbird. Copy it to your ~/bin/ directory and run "chmod +x ~/bin/eml2html".

I don't know if this would work on all emails however, but it is worth a try.

Last edited by jschiwal; 08-10-2009 at 07:39 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Emails With .EML Attachment SBN Linux - General 7 07-09-2012 03:26 AM
Postfix send eml file officecase Linux - Server 2 08-12-2009 09:50 AM
POSTFIX export emails as eml files officecase Linux - Server 2 04-07-2009 11:27 AM
how to open .eml file marlaina1 Linux - General 3 09-30-2006 10:41 AM
cannot open .eml attachments in mozilla mail and thunderbird arnieboy Linux - Software 2 03-13-2005 07:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration