aquasync/ruby-msg — Issue #4: PropertySet#body_rtf throws exception
Author: hqmq
Created: 2012-02-21 21:09:47+00:00
State: open

I'm on mri 1.9.2-p290 and when I tried to use the propertyset#body_rtf I get: "NoMethodError: undefined method `rtfdecompr' for RTF:Module"

This appears to be a really easy fix because it is just a confusion between the two rtf.rb files in the repo. To fix the issue I changed line 252 of lib/mapi/property_set.rb to read: "@body_rtf = (Mapi::RTF.rtfdecompr rtf_compressed.read)# rescue nil)" because the decompression method is defined in the Mapi::RTF not the global RTF module.