Method: Net::POP3.auth_only

Defined in:
lib/pop_ssl.rb

.auth_only(address, port = nil, account = nil, password = nil, isapop = false) ⇒ Object

Opens a POP3 session, attempts authentication, and quits.

This method raises POPAuthenticationError if authentication fails.

Example: normal POP3

Net::POP3.auth_only('pop.example.com', 110,
                    'YourAccount', 'YourPassword')

Example: APOP

Net::POP3.auth_only('pop.example.com', 110,
                    'YourAccount', 'YourPassword', true)


305
306
307
308
309
# File 'lib/pop_ssl.rb', line 305

def POP3.auth_only(address, port = nil,
                    = nil, password = nil,
                   isapop = false)
  new(address, port, isapop).auth_only , password
end