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( account, password ) raise POPAuthenticationError, 'not APOP server; cannot login' \ unless @apop_stamp check_response_auth(critical { get_response('APOP %s %s', account, Digest::MD5.hexdigest(@apop_stamp + password)) }) end |