Adds a response handler. For example, to detect when the server sends a new EXISTS response (which normally indicates new messages being added to the mailbox), add the following handler after selecting the mailbox:
imap.add_response_handler { |resp| if resp.kind_of?(Net::IMAP::UntaggedResponse) and resp.name == "EXISTS" puts "Mailbox now has #{resp.data} messages" end }
Removes the response handler.
Creates the following instance variables:
a spec named ‘a’, intended for regular installs
the path to a built gem from @spec
And returns a Gem::Installer
for the @spec that installs into @gemhome
Sets up the base @gem, builds it and returns an installer for it.
TODO: move to minitest
Set
the platform to arch
ServerNameIndication callback
ServerNameIndication callback
Perform hostname verification following RFC 6125.
This method MUST be called after calling connect
to ensure that the hostname of a remote peer has been verified.