Visual RFC.
ALL RFCs / RFC 9051
Read the RFC ↗
RFC 9051 / MECHANISM GUIDE

Session and mailbox states

01

Authentication and mailbox selection enable different commands.

Related RFCs and changes

“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.

DIAGRAM§ 3 ↗
RFC 9051 · § 3EXAMPLE
3 / 3
Session and mailbox statesAuthentication and mailbox selection enable different commands.Session and mailbox statesNOT AUTHENTICATEDauthenticateSELECTED: INBOXLOGOUTLOGOUT STATE
03
LOGOUT

End the session rather than using IMAP to send a message.

Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
WHAT CHANGED
RFC 3501 / IMAP4rev1RFC 9051 Appendix E

IMAP4rev2 folds in extensions including IDLE, MOVE, UIDPLUS, and ESEARCH, and adds support for 64-bit message and body-part sizes.

Read the updated RFC section ↗
KEY POINT

The major states are not authenticated, authenticated, selected, and logout.

  • The major states are not authenticated, authenticated, selected, and logout.
  • Mailbox manipulation requires the appropriate state.
  • IMAP accesses mail; SMTP submission is a separate protocol.
DETAILS

Examples are illustrative. Consult the linked RFC and its errata for implementation details.

Read the RFC section ↗

Diagrams simplify the RFC. Read the linked sections for complete requirements.

Privacy
All chapters in this RFC
  1. Session and mailbox states
  2. UIDs versus sequence numbers
  3. Selective FETCH and SEARCH
  4. Flags and deletion
  5. Unsolicited updates and resync
RFC 9700 / CHAPTERS

Chapters

For full details, tables, algorithms, and exceptions, read the original RFC.

RFC status and corrections ↗