From: Damjan Rems Date: 2008-03-11T04:34:01+09:00 Subject: Re: ruby email libraries 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/.