Skip to content

Warning when parsing .msg file from Outlook - unknown encoding 72 #17

Open
@nocoli

Description

@nocoli

Getting an unknown encoding 72 warning when trying to parse any .msg file saved to my computer from Outlook.

Steps to reproduce

  1. Drag any email from your inbox onto somewhere on your local disk (eg Desktop) to save it.
  2. 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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions