Open
Description
Getting an unknown encoding 72
warning when trying to parse any .msg file saved to my computer from Outlook.
Steps to reproduce
- Drag any email from your inbox onto somewhere on your local disk (eg Desktop) to save it.
- Try the following code and you get the warnings:
test = Mapi::Msg.open File.expand_path("path_to_file.msg")
[10:09:05 /home/nic/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/ruby-msg-1.5.2/lib/mapi/msg.rb:243:parse_substg]
WARN unknown encoding 72
[10:09:05 /home/nic/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/ruby-msg-1.5.2/lib/mapi/msg.rb:243:parse_substg]
WARN unknown encoding 72
[10:09:05 /home/nic/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/ruby-msg-1.5.2/lib/mapi/msg.rb:243:parse_substg]
WARN unknown encoding 72
#<Msg message_class="IPM.Note" from=nil to=nil subject="RE: test" recipients=[#<Recipient:"\"Nocoli\" <[email protected]>">, #<Recipient:"\"Nocoli\" <[email protected]>">] attachments=[]>
Note: I changed the recipient names and addresses in the output above.
Also a side note I'm not sure why the Msg object above has nil
in the to
and from
properties but when I do test.to
and test.from
the values display correctly?
Any help or info on this would be much appreciated.
Environment
Windows 10
Outlook Version 2004 Monthly Channel
Metadata
Metadata
Assignees
Labels
No labels