module EventMachine::IMAP
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.
Constants
- CRLF
Public Class Methods
add_authenticator(*args)
click to toggle source
# File lib/em-imap/authenticators.rb, line 7 def self.add_authenticator(*args) Net::IMAP.add_authenticator(*args) end
connect(host, port, ssl=false)
click to toggle source
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.
# 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)
click to toggle source
# File lib/em-imap.rb, line 32 def self.new(host, port, ssl=false) Client.new(host, port, ssl) end