imap.rb/lib/imap_server/client_handler/capability.rb
2022-12-10 01:31:15 +01:00

15 lines
335 B
Ruby

class ImapServer
class ClientHandler
module Capability
CAPABILITIES = %w[IMAP4rev1 AUTH=PLAIN LOGIN].freeze
def handle_capability(msg:, user:)
msg.respond ServerMessage.new("CAPABILITY #{capabilities.join(' ')}")
msg.respond ServerMessage.new("OK CAPABILITY completed")
end
end
end
end