zhivko / ruby-msg

Automatically exported from code.google.com/p/ruby-msg
MIT License
0 stars 0 forks source link

Question on handling PST files #11

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I have a need to convert PST files to .eml files within my rails application - 
so I find your gem very interesting.

I can see how to open a PST file using: pst = Mapi::Pst.new 
open('../test/test4-o1997.pst')

What I cannot work out is how I would go about iterating through all the emails 
within the PST file and exporting them to rfc822 .eml files.

I would be very thankful if you could point me in the right direction.

Original issue reported on code.google.com by r...@unlock.net.au on 7 Jul 2011 at 1:09

GoogleCodeExporter commented 8 years ago
Have a look at the source for bin/mapitool, it does exactly what you're asking. 
Mapi::Pst includes Enumerable, so you use that to iterate.

Original comment by aquas...@gmail.com on 7 Jul 2011 at 1:35

GoogleCodeExporter commented 8 years ago

Original comment by aquas...@gmail.com on 24 Feb 2012 at 2:57