LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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, 11: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, 08:07 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729
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 08:10 AM.
 
Old 08-10-2009, 08: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, 08:35 AM   #4
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
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 08:39 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 04:26 AM
Postfix send eml file officecase Linux - Server 2 08-12-2009 10:50 AM
POSTFIX export emails as eml files officecase Linux - Server 2 04-07-2009 12:27 PM
how to open .eml file marlaina1 Linux - General 3 09-30-2006 11:41 AM
cannot open .eml attachments in mozilla mail and thunderbird arnieboy Linux - Software 2 03-13-2005 08:56 PM


All times are GMT -5. The time now is 05:17 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration