Mail mailread.rb

Hi,

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:

Thanks,

···

--
@pedro_mg

rubygem mail seems to be the one to use nowadays. I'm unclear if it
supports mbox format files, though.

···

pedro mg <seti@tquadrado.com> wrote:

on Ruby 1.8.7 mailread.rb was part of the Std-lib:
Class: Mail (Ruby 1.8.7)

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:

2gmail.rb/2gmail.rb at master · pedromg/2gmail.rb · GitHub

i tend to use tmail

···

On Fri, 2013-06-28 at 02:02 +0900, pedro mg wrote:

Hi,

on Ruby 1.8.7 mailread.rb was part of the Std-lib:
Class: Mail (Ruby 1.8.7)

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:

2gmail.rb/2gmail.rb at master · pedromg/2gmail.rb · GitHub

Thanks,
--
@pedro_mg

Hi,

i tend to use tmail

yes, that's a great gem, great test suite.

I created the mailread gem because this is an ultra compact lib and
useful for my go2gmail script.
Available at:
http://rubygems.org/gems/mailread

thanks,
@pedro_mg

···

On Mon, Jul 1, 2013 at 4:32 PM, Reid Thompson <Reid.Thompson@ateb.com> wrote:

On Fri, 2013-06-28 at 02:02 +0900, pedro mg wrote: