Today, I received a MSG file (which is related to the Microsoft Outlook fileformat) in my mailbox. I was unable to open the file in Ubuntu, so I had to find a solution!
By using Google, I was able to find a script which converts my MSG file to an EML file: http://www.matijs.net/software/msgconv/
The script is written in Perl, so you need ... Perl
$ dpkg -l perl ii perl 5.10.0-24ubuntu4 Larry Wall's Practical Extraction and Report Language
If you don't have Perl, install it:
$ sudo aptitude install perl
I was missing some dependencies. You can install them using the following command:
$ sudo perl -MCPAN -e 'install ##REPLACE_BY_PACKAGE_NAME##'
The list I installed:
Running the script
$ perl -w msgconvert.pl ##MY_MESSAGE.MSG##
Happy converting! ;-)
Just Email::Outlook::Message should be enough from CPAN now and it now includes the msgconvert script.