Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PropertySet#body_rtf throws exception #4

Closed
mmmries opened this issue Feb 21, 2012 · 1 comment
Closed

PropertySet#body_rtf throws exception #4

mmmries opened this issue Feb 21, 2012 · 1 comment

Comments

@mmmries
Copy link

mmmries commented Feb 21, 2012

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.

@aquasync
Copy link
Owner

aquasync commented Jul 3, 2012

I decided to just move everything from RTF to Mapi::RTF - there wasn't really a clear separation between the two, and this will be less prone to top-level constant collision problems.

@aquasync aquasync closed this as completed Jul 3, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants