Using net/pop in Ruby with ssl.

May 16, 2008

If you follow this blog post by Chris Roos for connecting to Gmail’s pop server with Ruby and encounter an error similar to this one: NoMethodError: undefined method `set_params’ for #<OpenSSL::SSL::SSLContext:0×50fc58>

Here’s the fix: You need an older version of Ruby 1.9’s net/pop library. I found that the latest one working was revision 13778. view it here.

Hope this saves some time for a few people.

Discussion, links, and tweets

I work at Venture Spirit. Follow me on Twitter; you'll enjoy my tweets. I take care to carefully craft each one. Or at least aim to make you giggle. Or offended. One of those two— I haven't decided which yet.