From: Minero Aoki Date: 2003-05-21T10:32:23+09:00 Subject: Re: pop over ssl with ruby? Hi, In mail "pop over ssl with ruby?" "Josef 'Jupp' Schugt" wrote: > Is there an easy way of using net/pop for POP over SSL connections? > > The question is not rhetorical, I actually have a POP3 account that > requires using SSL connections (at the moment I have all messages > forwarded to another account that does allow unencrypted POP3 > logins). I *think* following script does work. This script is once posted on ruby-list ML and I modify it for ruby 1.6/1.8. (You need to get `openssl' library from RAA.) # # pops.rb # require 'net/pop' require 'ssl' module Net class POP3S < POP3 def POP3S.default_port 995 end def POP3S.socket_type Net::SSLSocket end def on_connect @socket.ssl_connect end end end -- Minero Aoki