Hello ruby-talk,
recently, I wanted to use ruby to connect to my gmail accout. Gmail
supports POP3S and SMTP with TLS authentication.
Ruby's stdlib don't support OpenSSL for those protocols.
It was pretty easy to add SSL support to POP3. There was a working
version for ruby 1.6 found on this ML, and I just had to adapt it. I
have joined a working example to this email for interested people. It
doesn't support specified certificates, so it's pretty useless for
real security.
All happy, I thought that it would be that easy for SMTP. My bad. SMTP
doesn't work the same way. Here's the RFC :
http://www.ietf.org/rfc/rfc2487.txt
What I want, is start a thread on this subject here. It looks like
ruby's support to those protocols is not complete. Is it worth
starting a new project on rubyforge ? Would those changes be
integrated in the stdlib ? I'm ready to get a bit involved here, but I
would need some help from other people too.
pop3s.rb (489 Bytes)
protocols.rb (337 Bytes)
fetchmail.rb (449 Bytes)