TheProjecter / ruby-msg

Automatically exported from code.google.com/p/ruby-msg
MIT License
0 stars 0 forks source link

an email as attachment in an email the convert fails #18

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
We are looking for a tool converting Outlook *.msg files to *.eml files.
And we find ruby-msg.

Looks great and we try it out.
Everything looks good except one thing.

If there is an email as attachment in an email the convert fails.
The resulting *.eml file has size 0 bytes and is empty.

We ask Google and find the same problem at http://www.redmine.org/issues/8093 

We are using ruby-msg-1.5.1

Any recommendations?

Best regards
dieterkuehk@googlemail.com

Original issue reported on code.google.com by dieterk...@gmail.com on 6 May 2013 at 1:04

GoogleCodeExporter commented 8 years ago
Can you provide a sample file?

Original comment by aquas...@gmail.com on 6 May 2013 at 2:05

GoogleCodeExporter commented 8 years ago
Thanks for the quick response.
Attached a sample file and the output when converting.

root@linsrv133:~# mapitool -i /mnt/archive/ex_export/test.msg
/var/lib/gems/1.9.1/gems/ruby-msg-1.5.1/lib/mime.rb:117:in `block in to_s': 
undefined method `each' for "message/rfc822":String (NoMethodError)
        from /var/lib/gems/1.9.1/gems/ruby-msg-1.5.1/lib/orderedhash.rb:102:in `block in each'
        from /var/lib/gems/1.9.1/gems/ruby-msg-1.5.1/lib/orderedhash.rb:102:in `each'
        from /var/lib/gems/1.9.1/gems/ruby-msg-1.5.1/lib/orderedhash.rb:102:in `each'
        from /var/lib/gems/1.9.1/gems/ruby-msg-1.5.1/lib/mime.rb:116:in `to_s'
        from /var/lib/gems/1.9.1/gems/ruby-msg-1.5.1/lib/mime.rb:108:in `block in to_s'
        from /var/lib/gems/1.9.1/gems/ruby-msg-1.5.1/lib/mime.rb:108:in `map'
        from /var/lib/gems/1.9.1/gems/ruby-msg-1.5.1/lib/mime.rb:108:in `to_s'
        from /var/lib/gems/1.9.1/gems/ruby-msg-1.5.1/bin/mapitool:104:in `block in process_message'
        from /usr/lib/ruby/1.9.1/open-uri.rb:35:in `open'
        from /usr/lib/ruby/1.9.1/open-uri.rb:35:in `open'
        from /var/lib/gems/1.9.1/gems/ruby-msg-1.5.1/bin/mapitool:125:in `process_message'
        from /var/lib/gems/1.9.1/gems/ruby-msg-1.5.1/lib/mapi/msg.rb:344:in `open'
        from /var/lib/gems/1.9.1/gems/ruby-msg-1.5.1/bin/mapitool:46:in `block in each_message'
        from /var/lib/gems/1.9.1/gems/ruby-msg-1.5.1/bin/mapitool:30:in `each'
        from /var/lib/gems/1.9.1/gems/ruby-msg-1.5.1/bin/mapitool:30:in `each_message'
        from /var/lib/gems/1.9.1/gems/ruby-msg-1.5.1/bin/mapitool:52:in `run'
        from /var/lib/gems/1.9.1/gems/ruby-msg-1.5.1/bin/mapitool:171:in `mapitool'
        from /var/lib/gems/1.9.1/gems/ruby-msg-1.5.1/bin/mapitool:174:in `<top (required)>'
        from /usr/local/bin/mapitool:23:in `load'
        from /usr/local/bin/mapitool:23:in `<main>'

Original comment by dieterk...@gmail.com on 7 May 2013 at 7:49

Attachments:

GoogleCodeExporter commented 8 years ago
Works fine for me - with ruby 1.8.7. The project hasn't really been tested much 
with 1.9, there's probably a few things that are broken on 1.9.

Original comment by aquas...@gmail.com on 7 May 2013 at 12:26