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 Mar 7, 2:46 pm, Mat H. [email protected] wrote

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

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

On 07.03.2008 18:58, [email protected] wrote:

On Mar 7, 2:46 pm, Mat H. [email protected] 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?

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