Setter for the read_timeout
attribute.
Executes a request which uses a representation and returns its body.
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.
Opens a POP3
session, attempts authentication, and quits.
This method raises POPAuthenticationError
if authentication fails.
POP3
Net::POP3.auth_only('pop.example.com', 110, 'YourAccount', 'YourPassword')
APOP
Net::POP3.auth_only('pop.example.com', 110, 'YourAccount', 'YourPassword', true)
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.
Set
the read timeout.
Returns the unique-id of the message. Normally the unique-id is a hash string of the message.
This method raises a POPError
if an error occurs.
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.
see Enumerator
#with_object.
Sets the previous sibling of this child. This can be used to insert a child before some other child.
a = Element.new("a") b = a.add_element("b") c = Element.new("c") b.previous_sibling = c # => <a><b/><c/></a>
@return the XMLDecl
standalone value of this document as a String. If no XMLDecl
has been set, returns the default setting.
Deeply clones this object. This creates a complete duplicate of this Parent
, including all descendants.
Notifies all registered listeners for event
of a status change of tuple
.