Command | Responses | Examples |
---|---|---|
USER name | +OK name is welcome here
-ERR never heard of name | USER David
+OK Please enter a password |
PASS string | +OK maildrop locked and ready
-ERR invalid password -ERR unable to lock maildrop | PASS test
+OK valid logon |
QUIT | +OK | +OK Server closing connection |
STAT | +OK nn mm | STAT
+OK 2 320 |
LIST [msg] | +OK scan listing follows
-ERR no such message | LIST
+OK 2 messages (320 octets) 1 120 2 200 ... LIST 2 +OK 2 200 |
RETR msg | +OK message follows
-ERR no such message | RETR 1
+OK 120 octets < the POP3 server sends the entire message here > |
DELE msg | +OK message deleted
-ERR no such message | DELE 2
+OK message deleted |
NOOP | +OK no transaction | NOOP
+OK |
LAST | +OK nn | LAST
+OK 2 |
RSET | +OK | RSET
+OK maildrop has 2 messages (320 octets) |
Additional Commands | ||
TOP msg nn | +OK top of msg
-ERR | TOP 1 10
+OK < first 10 lines of the header > |
RPOP user | +OK
-ERR | RPOP david
+OK enter password |