Setter for the read_timeout
attribute.
Returns true if net/http is in version 1.2 mode. Defaults to true.
Setter for the read_timeout
attribute.
Adds an authenticator for Net::IMAP#authenticate
. auth_type
is the type of authentication this authenticator supports (for instance, “LOGIN”). The authenticator
is an object which defines a process() method to handle authentication with the server. See Net::IMAP::LoginAuthenticator
, Net::IMAP::CramMD5Authenticator
, and Net::IMAP::DigestMD5Authenticator
for examples.
If auth_type
refers to an existing authenticator, it will be replaced by the new one.
Formats time
as an IMAP-style date-time.
Set
the read timeout.
true if this object uses STARTTLS.
true if this object uses STARTTLS when server advertises STARTTLS.
Enables SMTP/TLS (STARTTLS) for this object. context
is a OpenSSL::SSL::SSLContext
object.
Disables SMTP/TLS (STARTTLS) for this object. Must be called before the connection is established to have any effect.
Set
the number of seconds to wait until timing-out a read(2) call.
Parses argument, converts and returns arg
, block
and result of conversion. Yields at semi-error condition instead of raising an exception.