RFC3501
RFC 3501, Internet Message Access Protocol version 4 revision 1, is the IETF specification that defines IMAP4rev1, the protocol used by email clients to access messages stored on a mail server. Published in 2003, it obsoletes RFC 2060 and consolidates the IMAP4 protocol with a refined command set and response semantics.
IMAP4rev1 provides a rich set of operations to browse and manipulate mailboxes and messages. Clients can authenticate,
IMAP messages reside in mailboxes on the server and have attributes such as flags (SEEN, ANSWERED, DELETED,
Security is addressed by supporting authenticated sessions and negotiation of additional mechanisms via SASL, with encryption