imap-id

imap-id is a compiled Lisp function in `imap.el'.

(imap-id &optional LIST-OF-VALUES BUFFER)

Identify client to server in BUFFER, and return server identity.
LIST-OF-VALUES is nil, or a plist with identifier and value
strings to send to the server to identify the client.

Return a list of identifiers which server in BUFFER support, or
nil if it doesn't support ID or returns no information.

If BUFFER is nil, the current buffer is assumed.