class Net::IMAP
def id(client_id=nil)
The server's capabilities must include +ID+
===== Capabilities
See [ID[https://tools.ietf.org/html/rfc2971]] for field definitions.
end
)
os: RbConfig::CONFIG["host_os"],
"support-url": "mailto:bugs@example.com",
version: MyIMAP::VERSION,
name: "my IMAP client (ruby)",
id = imap.id(
if capable?(:ID)
capability. For example:
Note that the user should first check if the server supports the ID
identify itself.
and returns a hash of the server's response, or nil if the server does not
Sends an {ID command [RFC2971 ยง3.1]}[https://www.rfc-editor.org/rfc/rfc2971#section-3.1]
def id(client_id=nil) synchronize do send_command("ID", ClientID.new(client_id)) clear_responses("ID").last end end