Ruby email libraries

Hi,

Does anyone know of any stable ruby email libraries, I just need to
read: the subject, the sender and the body? Had problems with both
gmailer and hotmailer.

Cheers

Aidy

Hey,

There is Ruby TMail, http://tmail.rubyforge.org/\.

Hope it helps,
Mat

···

On 7-Mar-08, at 5:14 AM, testautomated6@googlemail.com wrote:

Hi,

Does anyone know of any stable ruby email libraries, I just need to
read: the subject, the sender and the body? Had problems with both
gmailer and hotmailer.

Cheers

Aidy

unknown wrote:

Hi,

Does anyone know of any stable ruby email libraries, I just need to
read: the subject, the sender and the body? Had problems with both
gmailer and hotmailer.

Cheers

Aidy

  require 'net/imap'
  imap = Net::IMAP.new('mymail.dot.com')
  imap.login('usr', 'pwd')
  imap.select('Inbox')
  n = imap.search(["SINCE", "1-Jan-1969"])
  listInbox = imap.fetch(n, ["ENVELOPE","UID"] )
  listInbox.each do | a |
    puts a.attr["ENVELOPE"].subject
    ....
  end

It's something to start with. You find out the rest. This has been
tested on MS Exchange 2000.

by
TheR

···

--
Posted via http://www.ruby-forum.com/\.

Hi,

Thanks for the feedback. but all I need to do is read the msg.body of
the last unread email. But where is the login method for the username
and password?

Cheers

Aidy

···

On Mar 7, 2:46 pm, Mat Harvard <mat.harv...@gmail.com> wrote

What do you mean? You asked for a library that allows to read "subject, sender and body". That's what you got as far as I can see. Is it possible that you wanted something completely different without specifying it?

Cheers

  robert

···

On 07.03.2008 18:58, testautomated6@googlemail.com wrote:

On Mar 7, 2:46 pm, Mat Harvard <mat.harv...@gmail.com> wrote

Thanks for the feedback. but all I need to do is read the msg.body of
the last unread email. But where is the login method for the username
and password?