Sha256: f0f4f112a986af2e9b4dfba3e2577cf96d64c37e7a518ad2620585ea1a8633b3

Contents?: true

Size: 637 Bytes

Versions: 24

Compression:

Stored size: 637 Bytes

Contents

# frozen_string_literal: true

module Net
  class IMAP

    # Experimental
    class SASLAdapter < SASL::ClientAdapter
      include SASL::ProtocolAdapters::IMAP

      RESPONSE_ERRORS = [NoResponseError, BadResponseError, ByeResponseError]
        .freeze

      def response_errors;          RESPONSE_ERRORS                 end
      def sasl_ir_capable?;         client.capable?("SASL-IR")      end
      def auth_capable?(mechanism); client.auth_capable?(mechanism) end
      def drop_connection;          client.logout!                  end
      def drop_connection!;         client.disconnect               end
    end

  end
end

Version data entries

24 entries across 24 versions & 5 rubygems

Version Path
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/net-imap-0.4.14/lib/net/imap/sasl_adapter.rb
net-imap-0.4.18 lib/net/imap/sasl_adapter.rb
net-imap-0.4.17 lib/net/imap/sasl_adapter.rb
net-imap-0.4.16 lib/net/imap/sasl_adapter.rb
net-imap-0.4.15 lib/net/imap/sasl_adapter.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/net-imap-0.4.14/lib/net/imap/sasl_adapter.rb
net-imap-0.4.14 lib/net/imap/sasl_adapter.rb
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/net-imap-0.4.11/lib/net/imap/sasl_adapter.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/net-imap-0.4.11/lib/net/imap/sasl_adapter.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/net-imap-0.4.11/lib/net/imap/sasl_adapter.rb
net-imap-0.4.13 lib/net/imap/sasl_adapter.rb
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/net-imap-0.4.12/lib/net/imap/sasl_adapter.rb
net-imap-0.4.12 lib/net/imap/sasl_adapter.rb
net-imap-0.4.10 lib/net/imap/sasl_adapter.rb
net-imap-0.4.9.1 lib/net/imap/sasl_adapter.rb
net-imap-0.4.9 lib/net/imap/sasl_adapter.rb
net-imap-0.4.8 lib/net/imap/sasl_adapter.rb
net-imap-0.4.7 lib/net/imap/sasl_adapter.rb
net-imap-0.4.6 lib/net/imap/sasl_adapter.rb
net-imap-0.4.5 lib/net/imap/sasl_adapter.rb