Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


net/imap can't find #2060

tpitale opened this Issue · 5 comments

2 participants

Tony Pitale Dirkjan Bussink
Tony Pitale
require "net/map"
imap ='', :port => 993, :ssl => true)

Fails on rbx-head irb (rubinius-2.0.0.rc1) installed with rvm on OS X 10.8.2 with "SocketError: nodename nor servname provided, or not known". I can ping and I can access it from MRI 1.9.3.

Dirkjan Bussink

There are a few things here. The hash syntax is only added in 1.9, so this syntax will not work in 1.8 mode in Rubinius. In 1.9 mode I see a different error though that has a different cause.

Tony Pitale

If I get rid of the hash, and just call .new with '' (since I'm in 1.8 mode, I thought I had set the default to 1.9, oh well), then the irb session is blocked. I'm not seeing an error in that case.

I'll try to see what I can see in 1.9 mode.

Dirkjan Bussink

It also hangs in MRI 1.8 for me here, so probably the same there. I guess it doesn't automatically handle SSL in 1.8.

I'm working on a fix for the problem you're seeing when running this with 1.9 mode, should be done shortly. I'll also make it throw a similar error for the 1.8 case for this script.

Dirkjan Bussink

If you use 1.8 mode, you do need to pass in true as an extra parameter to indicate SSL in net/imap:

require "net/imap"
imap ='', 993, true)
Dirkjan Bussink dbussink closed this in 5312a9b
Tony Pitale


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.