List and retrieve messages
02STAT and LIST describe the maildrop; RETR returns one message.
DIAGRAMRead RFC section 5 ↗
RFC 1939 · § 5EXAMPLE
3 / 3
03
Decode dot stuffing
A doubled leading dot is restored as content; the standalone dot ends the response.
Key idea: Replies use +OK or -ERR.
Rules & examples
Replies use +OK or -ERR.
- 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.
Read the updated RFC section ↗