Stephaniefennell708 / ruby-msg

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

Getting ERROR while opening the PST File. #13

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago

I get this error while opening the Outlook file 

pst = Mapi::Pst.new open("/home/anurag/Desktop/Outlook.pst")
Is it because the outlook file is of 2007 format ? please let me know I am 
stuck because of this. 

Stack Trace is mentioned below. 

ArgumentError: invalid value for Integer(): "\x17"
    from /usr/local/lib/ruby/gems/1.9.1/gems/ruby-msg-1.5.0/lib/mapi/pst.rb:167:in `%'
    from /usr/local/lib/ruby/gems/1.9.1/gems/ruby-msg-1.5.0/lib/mapi/pst.rb:167:in `validate!'
    from /usr/local/lib/ruby/gems/1.9.1/gems/ruby-msg-1.5.0/lib/mapi/pst.rb:154:in `initialize'
    from /usr/local/lib/ruby/gems/1.9.1/gems/ruby-msg-1.5.0/lib/mapi/pst.rb:268:in `new'
    from /usr/local/lib/ruby/gems/1.9.1/gems/ruby-msg-1.5.0/lib/mapi/pst.rb:268:in `initialize'
    from (irb):12:in `new'
    from (irb):12
    from /usr/local/bin/irb:12:in `<main>'

Original issue reported on code.google.com by anurag.ait on 30 Mar 2012 at 11:12

GoogleCodeExporter commented 8 years ago
Hi,

Sorry at this point ruby 1.9 is not supported. There's a bit of work involved 
cleaning up where the code expects String#[] to return an Integer. This is on 
the roadmap, but not likely to be done for a few months.

Original comment by aquas...@gmail.com on 20 Apr 2012 at 10:10

GoogleCodeExporter commented 8 years ago
Hi, any news on this ?

Original comment by daddi...@gmail.com on 6 Aug 2012 at 10:03

GoogleCodeExporter commented 8 years ago
No, I'm not likely to have time to look at 1.9 support in the near future.

Original comment by aquas...@gmail.com on 26 Sep 2012 at 8:32

GoogleCodeExporter commented 8 years ago
I'm having this exact issue except I'm using ruby 2.1.1. Is there another 
workaround? Thanks

Original comment by josh.all...@gmail.com on 20 Jan 2015 at 10:58