Someone sent me a .msg file on Skype, and somehow I just can't open this in Ubuntu.
Is there any app in which I could open the .msg file?
Someone sent me a .msg file on Skype, and somehow I just can't open this in Ubuntu.
Is there any app in which I could open the .msg file?
This is an MS-Outlook format. There is a command line tool called MSGConvert (see www.matijs.net/software/msgconv) which converts .msg files into .eml. You can open those with Thunderbird or Evolution. On Ubuntu you should be able to install the tool using
sudo apt-get install libemail-outlook-message-perl libemail-sender-perl
from a command line. Use
msgconvert *.msg
to convert every file in a directory at once. MSGConvert will produce copies of your .msg-files with the suffix .msg.eml. Regardless, your friend should learn how to send content properly.
perl -we 'use Email::Outlook::Message; print Email::Outlook::Message->new(shift)->to_email_mime->as_string' foo.msg >bar.eml
– Dallaylaen
Jan 28 '16 at 17:54
You can get it from the repo however here: https://github.com/mvz/email-outlook-message-perl
– PottyBert Mar 03 '16 at 13:58./msgconvert file.msg produces nothing. You have to use ./msgconvert --outfile file.eml file.msg.
– slowhand
May 27 '16 at 15:53
apt-get install libemail-outlook-message-perl, you don't need to do anything more. That package already contains /usr/bin/msgconvert, at least on Debian 8 Jessie.
– Axel Beckert
Jan 04 '17 at 14:18
.msg files. My .msg file is 150 KB, whereas the converted .eml file is only 34 KB. Furthermore, the smaller .eml file is plain text with an embedded ASCII HEX binary, whereas the .msg file is pure binary. Usually, binary files are more efficient than ASCII text files, not less.
– Gabriel Staples
Sep 12 '23 at 00:28
Use Microsoft one drive to open .msg files online via browser:
Sign in to your Microsoft onedrive account and upload the .msg file. After upload, you can click on it to view the file contents.
The advantage over other answers is you won't be sharing your file with third party file converters.
Note: This method is Non-OS specific and can be applied in any OS.
& yeah it definietly solves the problem of viewing .msg and therefore it can be treated as solution :P
– Akhil Surapuram Feb 15 '20 at 06:05It's not perfect but you can import .msg file with Mozilla Thunderbird (it works with on 52.1.1 on my Linux Mint). I had some encoding error but you can globally read the content.
In Thunderbird you click on File > Open > Saved message and select your .msg file.
function msgread() {
msgconvert --outfile - "$1" | iconv -f ms-ansi -t utf-8 | less
}
– Stéphane
Jan 24 '20 at 15:12
Another free and cross-platform tool for extracting the contents of an Outlook msg file from the command line is msg-extractor.
pip install extract-msg
extract_msg file.msg
Please note that while package name uses hyphen, command name uses underscore.
I ran across such a file as well (provided to me by a colleague who saved an email message in Microsoft Outlook). file(1) identifies the .msg file like so:
foo.msg: Composite Document File V2 Document
Georg Jung's answer regarding Matijs van Zuijlen's perl-based msgconvert(1) utility steered me in the right direction. Although my system does not at the time of this writing have the msgconvert utility packaged, the install instructions on Matijs' web page indicate using cpan as one way to install it:
cpan -i Email::Outlook::Message
The cpan URL is http://search.cpan.org/dist/Email-Outlook-Message/
Try this link: https://www.coolutils.com/online/Mail-Converter/
I came to this post searching for an answer, found the above link which did the job for me. Hence wanted to share here.
If you are concerned about privacy, you can buy their desktop version and convert it.
If you're on Windows, Mac, or another Linux than Ubuntu, or you don't want to install random packages on your system, I'd recommend building on Georg Jung's answer by using this docker container:
docker run -it --rm -v $(pwd):/mails --user $UID: lequoctuan/msgconvert my-file.msg
# takes a minute ...
cat my-file.eml
I've had luck with the MsgViewer application in Ubuntu, but it requires Java to work. The other option is to use an online viewer/converter, such as MsgEml.com.