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

Discussion in 'Ruby' started by Charles Lowe, May 13, 2007.

  1. Charles Lowe

    Charles Lowe Guest

    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)
    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 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\' <>'>]
    msg.attachments
    # => [#<Attachment filename='blah1.tif'>, #<Attachment
    filename='blah2.tif'>]
    msg.properties
    # => #<Properties ... normalized_subject='Testing' ...
    # creation_time=#<DateTime: 2454042.45074714,0,2299161> ...>

    --
    Posted via http://www.ruby-forum.com/.
    Charles Lowe, May 13, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. PIKACHU

    Mime type for outlook .msg files

    PIKACHU, Aug 6, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    19,089
    Calico
    Nov 20, 2008
  2. akila_natarajan

    Read .msg attachment from a mail(.msg)

    akila_natarajan, May 13, 2011, in forum: Java
    Replies:
    0
    Views:
    354
    akila_natarajan
    May 13, 2011
  3. Charles Lowe
    Replies:
    0
    Views:
    143
    Charles Lowe
    Aug 22, 2007
Loading...

Share This Page