Method: Net::POP3#auth_only
- Defined in:
- lib/net/pop_ssl.rb
#auth_only(account, password) ⇒ Object
Starts a pop3 session, attempts authentication, and quits. This method must not be called while POP3 session is opened. This method raises POPAuthenticationError if authentication fails.
314 315 316 317 318 319 |
# File 'lib/net/pop_ssl.rb', line 314 def auth_only(account, password) raise IOError, 'opening previously opened POP session' if started? start(account, password) { ; } end |