[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

[ANN] ruby-msg-1.3.1 (outlook msg lib) and ruby-ole-1.2.1

Charles L.

8/22/2007 1:13:00 AM

The new version of ruby-msg has been released!

A bunch of bugs have been closed, and a lot more MAPI properties are now
converted to their MIME equivalents (eg importance, priority, etc).

This release also splits out the OLE storage component into a separate
library: ruby-ole. This is a complete, stable lib for read/write access
to OLE documents.

--

Simply:
1. gem install ruby-msg (this will also install ruby-ole)
2. convert some msg files. there is now a mbox mode - (msgtool -m *.msg
> mbox)

Details at http://code.google.com/p..., and at the wiki
http://code.google.com/p...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\' <bob.marley@gmail.com>'>]
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-....