From: Tamara Temple Date: 2013-06-29T10:58:07+09:00 Subject: Re: Mail mailread.rb pedro mg wrote: > on Ruby 1.8.7 mailread.rb was part of the Std-lib: > http://www.ruby-doc.org/stdlib-1.8.7/libdoc/mailread/rdoc/Mail.html > > On Ruby >= 1.9.x it is not. > > Any hint on what can one use now to create a mail message from a > (mbox) file, so that one can read the message text into the object and > get the header, body etc ? > > Giving a little update to this old gmail importer script: > > https://github.com/pedromg/2gmail.rb/blob/master/2gmail.rb#L80 rubygem mail seems to be the one to use nowadays. I'm unclear if it supports mbox format files, though.