I need to view a .msg file. It is an email from Microsoft Outlook. How can I do this in Ubuntu?
8 Answers
Building on Martin Owens answer, this is the quick solution:
wget http://www.matijs.net/software/msgconv/msgconvert.pl
sudo apt-get install libemail-outlook-message-perl libemail-localdelivery-perl libemail-sender-perl
perl msgconvert.pl YourMessage.msg
- 704
Looks like the best thing to do is to convert them to an eml file using this script:
http://www.matijs.net/software/msgconv/
It's not pretty, it's not gui based, but it'll work.
- 20,245
I am on Ubuntu 15.10 and matijs'es msgconvert script seems to be available in the repos now. after running:
sudo apt-get install libemail-outlook-message-perl libemail-localdelivery-perl libemail-sender-perl
I can now now run
msgconvert *.msg
to convert the messages entirely with tools from the repos.
- 995
Open it with MsgViewer http://sourceforge.net/projects/msgviewer/
wget -O MSGViewer.zip http://sourceforge.net/projects/msgviewer/files/latest/download
unzip MSGViewer.zip
cd MSGViewer-1.9
java -jar MSGViewer.jar
now, just drag'n'drop the msg file to the program window to have its contents displayed.
- 380
- 321
- 2
- 3
I found after install msgconvert that msgconvert wasn't installed when I ran the command. Rather than faff about trying to debug it, I did this. Done in less than a minute. http://www.zamzar.com/convert/msg-to-pdf/
- 1,241
You can use ruby-msg ruby gem for that purposes. So:
Install ruby and rubygems:
# apt-get install rubygems gemInstall the gem:
# gem install ruby-msgThen use the "mapitool" utility:
$ mapitool -i test.msgIn some cases you can sporadically get the exception:
/usr/local/share/gems/gems/ruby-msg-1.5.2/lib/mapi/mime.rb:109:in `join': incompatible character encodings: UTF-8 and ASCII-8BIT (Encoding::CompatibilityError)So just fix the following file lib/mapi/mime.rb with the following regexp:
sed 's/part.to_s(opts)/part.to_s(opts).encode("UTF-8", :invalid=>:replace, :undef => :replace, :replace => "")/' -i /usr/local/share/gems/gems/ruby-msg-1.5.2/lib/mapi/mime.rb
- 302
You can try using an online viewer such as:
It displays the .msg message, provides download links for the attachments, shows the headers, and converts the file to .eml.
- 51
- 1
- 6