Class: Hermeneutics::Cli::ImapTools::AuthLogin

Inherits:
Auth show all
Defined in:
lib/hermeneutics/cli/imap/commands.rb

Constant Summary collapse

TYPE =
:LOGIN

Constants inherited from Auth

Hermeneutics::Cli::ImapTools::Auth::NAME

Instance Attribute Summary

Attributes inherited from Auth

#passwd, #user

Attributes inherited from Command

#responses

Instance Method Summary collapse

Methods inherited from Auth

find, inherited, #initialize, #params

Methods inherited from CommandNamed

#name

Methods inherited from Command

#add_response, #initialize

Constructor Details

This class inherits a constructor from Hermeneutics::Cli::ImapTools::Auth

Instance Method Details

#stream_lines(r) ⇒ Object



126
127
128
129
130
131
132
133
134
135
136
137
# File 'lib/hermeneutics/cli/imap/commands.rb', line 126

def stream_lines r
  a = super
  loop do
    a = dec64 a
    l = case a
      when /user/i then @user
      when /pass/i then @passwd
    end
    l = enc64 l
    a = yield [l]
  end
end