wire / wire-format / imap-protocol

IMAP (Internet Message Access Protocol)

IMAP is a protocol for accessing email on a server. Unlike POP3, IMAP keeps messages on the server and supports folders, search, and partial fetch. Commands: LOGIN, SELECT, EXAMINE, CREATE, DELETE, RENAME, SUBSCRIBE, LIST, LSUB, STATUS, APPEND, CHECK, CLOSE, EXPUNGE, SEARCH, FETCH, STORE, COPY, UID, IDLE, NAMESPACE, CAPABILITY, LOGOUT. Responses: OK, NO, BAD, PREAUTH, BYE.

wire-format kind wire-format status standard verification verified tier B wire-format@1

aka: IMAP (Internet Message Access Protocol)

wire format

spec: RFC 9051 (IMAP4rev2)

IMAP is a protocol for accessing email on a server. Unlike POP3, IMAP keeps messages on the server and supports folders, search, and partial fetch. Commands: LOGIN, SELECT, EXAMINE, CREATE, DELETE, RENAME, SUBSCRIBE, LIST, LSUB, STATUS, APPEND, CHECK, CLOSE, EXPUNGE, SEARCH, FETCH, STORE, COPY, UID, IDLE, NAMESPACE, CAPABILITY, LOGOUT. Responses: OK, NO, BAD, PREAUTH, BYE.

fieldsizemeaning
LOGINcommandAuthenticate: LOGIN username password.
SELECTcommandSelect a mailbox: SELECT INBOX. Returns mailbox status (exists, recent, unseen, uidnext, uidvalidity).
FETCHcommandFetch message data: FETCH 1:10 (FLAGS BODY[HEADER]). Returns message content.
SEARCHcommandSearch messages: SEARCH UNSEEN, SEARCH FROM sender, SEARCH SINCE date, SEARCH TEXT keyword.
STOREcommandChange message flags: STORE 1 +FLAGS (\Seen), STORE 1 -FLAGS (\Deleted).
IDLEcommandWait for new messages. Server pushes notifications. Client sends DONE to exit.
UIDcommandUID-based variants: UID FETCH, UID SEARCH, UID STORE, UID COPY, UID MOVE.
CAPABILITYcommandList server capabilities: IMAP4rev2, STARTTLS, AUTH=PLAIN, IDLE, MOVE, etc.

example:

00 00

IMAP (placeholder)


provenance

agent: curl -H 'accept: application/json' wire.phall.io/wire-format/imap-protocol or /wire-format/imap-protocol.json