I'm using node-imap mostly to authenticate but now I'd like to retrieve some extra information. How can I get the display name of the connected person? Is there a way of seing all the available fields?
Neither the IMAP protocol nor any existing IMAP extensions support the retrieval of any kind of personal information like that. About the only account-related information you can get at is quota (must be supported by the server as it is an extension) and ACL information (not supported by this module yet).