IMAP4rev2 (RFC 9051)
Official docs outline
8 sections- State and flow diagram
Not Authenticated, Authenticated, Selected and Logout states.
- Data formats
Atoms, strings, literals, parenthesized lists and message attributes.
- Message attributes
UIDs, message sequence numbers, flags and internal date.
- Any-state commands
CAPABILITY, NOOP and LOGOUT.
- Authentication commands
STARTTLS, AUTHENTICATE and LOGIN.
- Authenticated state commands
SELECT, LIST, STATUS, CREATE, APPEND.
- Selected state commands
SEARCH, FETCH, STORE, COPY and UID operations.
- Server responses
Status responses, server and mailbox status data.
Each section links to the official page. Titles and summaries by Extra Credit; the docs belong to their authors.