Forum: Ruby Edit msg files with ruby

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Daniel R. (Guest)
on 2017-04-03 17:45
Hi, I try to customize many msg files. I wan't convert them with an
application. but there's the problem many of the mails have a
unconvential message class the application can't handle. I wan't set the
default message class for all msg files. With 'ruby-msg' I can read all
properties like that:
require 'mapi/msg''C:\Users\***.MSG')
h.each_key do |k|
  puts "#{k.to_s}:\t#{h[k].to_s}"
That works! But I found no way to write to change mail properties like
require 'mapi/msg''C:\Users\***.MSG')'message_class','IPM.Note')'C:\Users\**.MSG','w')
That doesn't work. Is somebody knowing a way to accomplish this? All
possible solutions are welcome:)!
This topic is locked and can not be replied to.