Sha256: 23c8919f5882a0136f5fbce1842b51220c4179775f4b333a71ec4b67f810b8e0
Contents?: true
Size: 510 Bytes
Versions: 7
Compression:
Stored size: 510 Bytes
Contents
require 'net/imap' # add plain as an authentication type... # This is taken from: # http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/lib/net/imap.rb?revision=7657&view=markup&pathrev=10966 # Authenticator for the "PLAIN" authentication type. See # #authenticate(). class PlainAuthenticator def process(data) return "\0#{@user}\0#{@password}" end private def initialize(user, password) @user = user @password = password end end Net::IMAP.add_authenticator "PLAIN", PlainAuthenticator
Version data entries
7 entries across 7 versions & 3 rubygems