From: Bealach Na Bo Date: 2006-04-29T07:32:20+09:00 Subject: Re: IMAP disconnect broken? I've not set up my own IMAP server to test this, but I just might. Sadly, that will not solve the problem for since I do not have admin access to the IMAP server I'm experiencing problems with (incidentally, that too is an IMAP 4 server). Bealach On 4/28/06, Stuart Stegall wrote: > Eric Hodel wrote: > > > > On Apr 25, 2006, at 2:21 PM, Bealach Na Bo wrote: > > > >> Hi folks, > >> > >> New Ruby convert here :) > >> > >> I'm using the standard Net::IMAP and OpenSSL libraries to connect to > >> an IMAP server. > >> I can connect, examine and manipulate my INBOX, but when call the > >> disconnect method of the imap instance it just hangs. The minimal > >> version is almost identical to > >> the example on page 701 of "Programming Ruby". Should I be calling > >> some other method? > > > > I don't know, the disconnect method is suspect: > > > > # Disconnects from the server. > > def disconnect > > @sock.shutdown unless @usessl > > @receiver_thread.join > > @sock.close > > end > > > I cannot replicate the problem with my imap4 server. > >