Saluton!
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).
Gis,
Josef ‘Jupp’ Schugt
···
–
e-mails that do not contain plain text, are larger than 50 KiB, are
unsolicited, or contain binarys are ignored unless payment from your
side or technical reasons give rise to a non-standard treatment.
Schroedinger’s cat is not alive.
Hi,
In mail “pop over ssl with ruby?”
···
“Josef ‘Jupp’ Schugt” jupp@gmx.de 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