class Net::IMAP

def logout!

Related: #logout, #disconnect

use #logout and #disconnect instead.
example for security or after tests. If logout errors need to be handled,
This is useful in situations where the connection must be dropped, for

exception will not be re-raised.
If #logout raises a StandardError, a warning will be printed but the

which raises an exception.
+nil+ when the client is already disconnected, in contrast to #logout
calls #disconnect. Returns the TaggedResponse from +LOGOUT+. Returns
Calls #logout then, after receiving the TaggedResponse for the +LOGOUT+,
def logout!
  logout unless disconnected?
rescue => ex
  warn "%s during <Net::IMAP %s:%s> logout!: %s" % [
    ex.class, host, port, ex
  ]
ensure
  disconnect
end