51
9
Someone send me a .msg file skype, and somehow I just can't open this in Ubuntu
Is there a app in which I can open this file?
51
9
Someone send me a .msg file skype, and somehow I just can't open this in Ubuntu
Is there a app in which I can open this file?
55
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.
3Somehow msgconvert didn't appear in the path, but the following worked: perl -we 'use Email::Outlook::Message; print Email::Outlook::Message->new(shift)->to_email_mime->as_string' foo.msg >bar.eml
– Dallaylaen – 2016-01-28T17:54:59.287
Just to note, on debian based systems the msgconvert script isn't in the package.
You can get it from the repo however here: https://github.com/mvz/email-outlook-message-perl
1
Using the msgconvert tool from https://github.com/mvz/email-outlook-message-perl, the command line ./msgconvert file.msg
produces nothing. You have to use ./msgconvert --outfile file.eml file.msg
.
5If you already did 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 – 2017-01-04T14:18:40.397
7
It'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.
For my case, with this method, the file is totally unreadable. – Pierre-Olivier Vares – 2019-03-11T13:14:36.877
1This kind of works. I can see a plain text message at the top with a lot of issues under it but I think it has got the text content of the email right. – Qwertie – 2019-04-01T00:10:31.383
@Qwertie if you just need the text content you can cat... but why should someone use .msg for a text-only file, that's stupid... – Melissa Loos – 2019-12-26T22:14:39.460
There is no encoding error it simply than the encoding of the Outlook file (*.msg) is ANSI. I have the following in my .bash_profile :
function msgread() {
msgconvert --outfile - "$1" | iconv -f ms-ansi -t utf-8 | less
}
– Stéphane – 2020-01-24T15:12:12.157
5
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/
5
Hie, Even though there are a lot of Answers available but not of them are simple and easy to use so I am posting this Answer.
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.
and 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.
I wish I could edit the message also. – Jaakko – 2019-10-02T12:44:01.643
@Jaakko .msg files are email conversation thread. I coundn't find any sense of editing it. I think you can copy text content for forwarding mail purposes – Akhil Surapuram – 2019-10-02T16:38:28.193
despite that fact this is not a solution for the problem, in some particular cases your suggestion works very good! – radistao – 2020-02-14T12:39:41.553
@radistao thanks for the compliment. I say you don't have to convert the file to open .msg you just need to use Microsoft tools. for ubuntu, it's only in web and an electron version i.e nothing but the web.
& yeah it definietly solves the problem of viewing .msg and therefore it can be treated as solution :P – Akhil Surapuram – 2020-02-15T06:05:32.793
4
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.
2Just curious, why all the downvotes? Seems like a perfectly good tool. – Duncan X Simpson – 2016-05-09T03:10:47.370
1@VirtualDXS - Life is harsh, isn't it ? :) – bragboy – 2016-05-10T20:28:51.263
5I also downvote this "solution", because it violates privacy. .msg files sometimes contain mail threads, which must be kept confidential. – slowhand – 2016-05-27T15:29:14.153
1I don't get where the tool violates privacy. It's just a wrong statement. It's the same saying Winrar violates privacy because sometimes .rar files contain files which may be confidential. Or an SQLite client violates privacy because you can read Skype conversations from .db file. – Andre Figueiredo – 2017-10-04T18:45:50.727
3@AndreFigueiredo: It’s the difference between an online tool and a local program. When you process data with WinRAR or any other program on your computer, the data stay on your computer (unless it’s infected with spyware). But with this “coolutils” solution, you upload your file to their website and then download the result. Do they immediately delete your data off their servers? Are their personnel allowed to look at your data? Do they sell your data to other people? Once you give it to them, it’s out of your control. – Scott – 2017-11-09T23:51:02.977
1
You can also proceed like this:
strings foo.msg |html2text
1
Try running this command in a terminal to identify the type of file:
$ file foo.msg
The output should tell you what type of file it is. If it's a text file of some kind, you can open it in gedit or your favorite text editor.
obviously, replace "foo.msg" with the name of your .msg file. – quack quixote – 2010-01-22T13:46:05.400
2I think this should be a comment – Greg Schmit – 2018-10-05T13:18:33.643
3
It gives Composite Document File V2 Document, No summary info
and is an Outlook file for emails. See also How do I view an Outlook .msg file?
0
Another free and cross-platform tool for extracting the contents of an Outlook msg file from the command line is msg-extractor.
0
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
This could be many things...what type is this file? There are several different programs using the msg extension. – Bobby – 2010-01-22T13:11:14.730
@Roland can you check my answer and mark it as tick if it works perfectly and solves your issue – Akhil Surapuram – 2019-08-19T08:13:18.633