Class: Hermeneutics::Cli::ImapTools::AuthPlain

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

Constant Summary collapse

TYPE =
:PLAIN

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) {|[r]| ... } ⇒ Object

Yields:

  • ([r])


113
114
115
116
117
118
# File 'lib/hermeneutics/cli/imap/commands.rb', line 113

def stream_lines r
  _ = super
  r.clear
  r << (enc64 "\0#@user\0#@passwd")
  yield [r]
end