# \[ANN\] ruby-msg-1.2.17 (converter for outlook msg files)

**URL:** <https://www.ruby-forum.com/t/ann-ruby-msg-1-2-17-converter-for-outlook-msg-files/104033>\
**Category:** Ruby\
**Created:** [May 13, 2007, 8:55am UTC](https://www.ruby-forum.com/t/ann-ruby-msg-1-2-17-converter-for-outlook-msg-files/104033 "2007-05-13T08:55:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![calande](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/edb3f5/32.png) [@calande](https://www.ruby-forum.com/u/calande)\
**Post date:** [May 13, 2007, 8:55am UTC](https://www.ruby-forum.com/t/ann-ruby-msg-1-2-17-converter-for-outlook-msg-files/104033/1 "2007-05-13T08:55:42Z")

</div>

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:

1. download the gem  
([http://ruby-msg.googlecode.com/files/ruby-msg-1.2.17.gem](http://ruby-msg.googlecode.com/files/ruby-msg-1.2.17.gem))
2. gem install ruby-msg-1.2.17.gem
3. convert some msg files. there is now a mbox mode - (msgtool -m \*.msg

> mbox)

Details at [Google Code Archive - Long-term storage for Google Code Project Hosting.](http://code.google.com/p/ruby-msg/), and at the wiki  
[Google Code Archive - Long-term storage for Google Code Project Hosting.](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' [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)’\>]

msg.attachments

# =\> [#, #\<Attachment

filename=‘blah2.tif’\>]  
msg.properties

# =\> #\<Properties … normalized\_subject=‘Testing’ …

# creation\_time=#\<DateTime: 2454042.45074714,0,2299161\> …\>
