[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

ruby email libraries

testautomated6

3/7/2008 1:12:00 PM

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
4 Answers

Mat Harvard

3/7/2008 2:47:00 PM

0

Hey,

There is Ruby TMail, http://tmail.ruby....

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
>


testautomated6

3/7/2008 5:59:00 PM

0

On Mar 7, 2:46 pm, Mat Harvard <mat.harv...@gmail.com> 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

Robert Klemme

3/9/2008 3:58:00 PM

0

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?

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

Damjan Rems

3/10/2008 7:34:00 PM

0

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-....