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/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, ListeningDeferrable, ResponseParser Classes: Client, Command, Formatter, Listener

Constant Summary collapse

CRLF =
"\r\n"

Class Method Summary collapse

Class Method Details

.add_authenticator(klass) ⇒ Object



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

def self.add_authenticator(klass)
  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.



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

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

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



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

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