On Apr 28, 2006, at 2:58 PM, 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.

Did you use SSL?

I have Dovecot.

-- 
Eric Hodel - drbrain / segment7.net - http://blog.segment7.net
This implementation is HODEL-HASH-9600 compliant

http://trackmap.robotcoop.com