method

auth_only

v2_5_5 - Show latest stable - Class: Net::POP3
auth_only(address, port = nil, account = nil, password = nil, isapop = false)
public

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)