ruby-msg is still, AFAIK, the best option for converting .msg files that
a) doesn’t rely on you running outlook on windows to do the conversion;
and
b) is free software
Simply:
- download the gem
(http://ruby-msg.googlecode.com/files/ruby-msg-1.2.17.gem) - gem install ruby-msg-1.2.17.gem
- convert some msg files. there is now a mbox mode - (msgtool -m *.msg
mbox)
Details at http://code.google.com/p/ruby-msg/, and at the wiki
http://code.google.com/p/ruby-msg/wiki/Home.
Sample code using the library:
require ‘msg’
msg = Msg.open filename
access to the 3 main data stores
msg.recipients
=> [#<Recipient:’‘Marley, Bob’ [email protected]’>]
msg.attachments
=> [#, #<Attachment
filename=‘blah2.tif’>]
msg.properties