Method: Net::POP3Command#apop

Defined in:
lib/net/pop.rb

#apop(account, password) ⇒ Object



767
768
769
770
771
772
773
774
775
# File 'lib/net/pop.rb', line 767

def apop( , password )
  raise POPAuthenticationError, 'not APOP server; cannot login' \
                                                  unless @apop_stamp
  check_response_auth(critical {
    get_response('APOP %s %s',
                 ,
                 Digest::MD5.hexdigest(@apop_stamp + password))
  })
end