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

List and retrieve messages

02

STAT and LIST describe the maildrop; RETR returns one message.

RFC 1939 · § 5EXAMPLE
3 / 3
03
Decode dot stuffing

A doubled leading dot is restored as content; the standalone dot ends the response.

List and retrieve messagesSTAT and LIST describe the maildrop; RETR returns one message.List and retrieve messagesC: STAT / LIST S: +OKC: RETR 1 S: +OK + message..leading dot → .leading dotsingle-dot line → response ends

Key idea: Replies use +OK or -ERR.

Terms

Look up a term in the glossary ↗

Rules & examples
  • Replies use +OK or -ERR.
  • Multiline responses end with a single-dot line.
  • Leading dots in content use byte-stuffing so data cannot impersonate the terminator.

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

Sources
Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
New to this? Start hereA quick picture + helpful background

The envelope and the letter do different jobs.

Mail transport moves a message between servers. The message format describes its contents. Authentication adds checks; it does not make every message safe.

Helpful first, if these ideas are unfamiliar

These pictures are analogies to help you learn. The linked RFC explains the actual rules.

Related RFCs and changes

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

All chapters in RFC 1939

Drawing view

Scroll the drawing to see every part. Playback controls stay above it.

RFC 9700 / CHAPTERS

Chapters

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

RFC status and corrections ↗