Module: EventMachine::IMAP

Defined in:
lib/em-imap/authenticators.rb,
lib/em-imap.rb,
lib/em-imap/client.rb,
lib/em-imap/listener.rb,
lib/em-imap/formatter.rb,
lib/em-imap/connection.rb,
lib/em-imap/deferrable_ssl.rb,
lib/em-imap/command_sender.rb,
lib/em-imap/response_parser.rb,
lib/em-imap/continuation_synchronisation.rb

Overview

Makes Net::IMAP.add_authenticator accessible through EM::IMAP and instances thereof. Also provides the authenticator method to EM::IMAP::Client to get authenticators for use in the authentication exchange.

Defined Under Namespace

Modules: Authenticators, CommandSender, Connection, ContinuationSynchronisation, DeferrableSSL, ListeningDeferrable, ResponseParser Classes: Client, Command, Formatter, Listener

Constant Summary collapse

CRLF =
"\r\n"

Class Method Summary collapse

Class Method Details

.add_authenticator(*args) ⇒ Object


7
8
9
# File 'lib/em-imap/authenticators.rb', line 7

def self.add_authenticator(*args)
  Net::IMAP.add_authenticator(*args)
end

.connect(host, port, ssl = false) ⇒ Object

Connect to the specified IMAP server, using ssl if applicable.

Returns a deferrable that will succeed or fail based on the success of the connection setup phase.


28
29
30
# File 'lib/em-imap.rb', line 28

def self.connect(host, port, ssl=false)
  Client.new(EventMachine::IMAP::Connection.connect(host, port, ssl))
end

.new(host, port, ssl = false) ⇒ Object


32
33
34
# File 'lib/em-imap.rb', line 32

def self.new(host, port, ssl=false)
  Client.new(host, port, ssl)
end