From: Tadeusz Bochan Date: 2009-08-23T19:13:44+09:00 Subject: Re: retrieving Yahoo mail with Net::IMAP Tadeusz Bochan wrote: > Hi, > I'm trying read my email from BT Yahoo cos they seem to have withdrawn > their archive facility recently. > > However, when I try the following, it just hangs forever : > > loginid=%w{myuserid mypass} > pp (imap = Net::IMAP.new("mail.btinternet.com",587)) > pp (imap.capability) # or imap.authenticate("LOGIN",*loginid) > > Seems to connect ok, but then NUTTIN ! > > Any suggestions please ? > > (or does anyone know why Yahoo pulled the plug on their archive option > ?) In my original note, I used port 587, which seems to be an alternate outgoing port, so that explains the hang. When I used the standard imap port 143, I get: No connection could be made because the target machine actively refused it. - connect(2) (Errno::ECONNREFUSED) Maybe Yahoo uses another port number ? I've spent hours and hours searching and experimenting. Any help would make my day. -- Posted via http://www.ruby-forum.com/.