Summary

  • DELE never deleted anything. It marked one number in the current session, retired that number from later commands, and left RSET free to undo the whole intent.
  • Only a client-issued QUIT from TRANSACTION crossed into UPDATE. A dropped connection or an idle timeout skipped UPDATE entirely — so the marked mail had to survive.
  • The boundary saved you from losing mail after a half-finished download, but it was never an atomic commit. RFC 1939 let UPDATE remove some, or none, of the marked set — while forbidding it to touch anything unmarked.

A successful deletion that had not happened

POP3's most dangerous sentence was five words long and sounded like a funeral: +OK message 4 deleted. Read as English, it was final. Read as protocol, it was a receipt for a bookmark.

The distinction was there from the start, in RFC 1081, the 1988 first cut of Post Office Protocol version 3. You authenticated; the server opened your maildrop; the session entered TRANSACTION. DELE 4 pointed at the fourth slot in that opened view. Once marked, the number was retired from later commands. The message itself — the bytes, the storage object — stayed exactly where it was. RSET could unmark the lot and pretend nothing had been said.

Real removal waited for UPDATE, and UPDATE only opened for a client that said QUIT from inside TRANSACTION. The same four letters typed during AUTHORIZATION merely ended an unauthenticated session. One verb, two endings — because only one of those contexts held a protected set of messages and a pending destructive intent.

So the cheerful line after DELE was real evidence of a much smaller fact: the server had written the mark into this open transaction. It proved no disk had been reclaimed, no tombstone written, no backup touched — and not even that the next UPDATE would remove everything on the list.

The lock that made the list hold still

Before TRANSACTION, the server grabbed an exclusive lock on the maildrop where it needed one. The stated purpose was narrow and unsentimental: stop messages being modified or removed before UPDATE. With the list frozen, the server could number it 1, 2, 3 and onward, and the client could point at those positions with LIST, RETR and DELE without the floor moving under the conversation.

It was not immortality for a message number. The next session opened a different set and handed out different positions. Nor was it a deed of ownership for the client. Delivery and site policy lived outside the command sequence. The lock did one job: it kept destructive operands meaningful long enough for the server to know which of the currently open things you had marked.

That is a genuinely elegant split of responsibility. The client knows whether it has safely stored what it downloaded. The server knows which maildrop entities exist and can be destroyed. Neither has to share a durable transaction log. Instead, POP3 fences off the vulnerable interval with a lock and postpones the axe until the client deliberately closes the door.

Marshall Rose carried the design forward through RFC 1225 in 1991 and RFC 1460 in 1993. The history worth remembering is the continuity: mark, allow reset, remove at UPDATE, release, report, close.

A dropped cable was not a goodbye

RFC 1725, the 1994 revision by John Myers and Marshall Rose, sharpened the rule into something you could defend in an argument: a session that ended for any reason other than a client-issued QUIT did not enter UPDATE and must not remove messages. The inactivity timer obeyed the same law. After at least ten minutes under the site's policy, autologout closed the connection with no reply and no deletion.

This was not politeness. POP3 was built for intermittently connected machines pulling mail off a server — dial-up, flaky links, laptops that slept. The server could finish sending a message while the client had not yet safely committed it to disk. Power fails mid-write. A link dies after the last network byte but before the application finishes its own work. If TCP silence counted as consent to delete, a transport hiccup could turn a half-written local copy into permanent loss.

So the server demanded an act, not an absence. QUIT was the client's declaration that the transaction could cross into its destructive phase. EOF, reset, timeout, a vanished process — all deliberately weaker evidence.

Which is why the opening message comes back. The +OK after DELE was never withdrawn; the mark was valid for as long as TRANSACTION lasted. The abnormal ending threw away the path to UPDATE. Reconnect, and a fresh maildrop view begins with a clean slate and no marks on it.

UPDATE was a boundary, not a promise of atomicity

It is tempting to call QUIT a commit. The analogy works right up to the point where it doesn't. RFC 1939, published in 1996 as STD 53, made the limit explicit.

In UPDATE the server removes the marked messages and reports the result. A resource shortage can leave some or none of them gone. The spec permits the reply -ERR some deleted messages not removed. Success or failure, the server releases the lock and closes the TCP connection. And it may never remove anything that was not marked.

This is not all-or-nothing database commitment. It is a bounded destructive attempt: the marked set caps what may be touched, the final reply separates reported success from known trouble, and the next session supplies the current truth. Three marks can produce two removals and one survivor.

The ordering creates an ambiguity the protocol cannot wish away. A server can perform the removal and then lose the connection before the client's copy of the final reply arrives. From the client's side, silence says nothing about whether UPDATE was never entered, failed before touching anything, half-succeeded, or finished cleanly. And retrying DELE 4 blind is dangerous, because message 4 in the new session may be a different message entirely.

Recovery needs reconciliation. UIDL, where supported, helps correlate surviving entities across sessions — but it does not explain why a missing item went missing. Another client, or a site retention policy, may have done the removing. The right question after an ambiguous farewell is not “did QUIT probably work?” but “which expected entities are here now, and which local copies are actually durable?”

Policy could grow the marked set without moving the gate

RFC 2449, the 1998 extension mechanism, added capability discovery and the EXPIRE signal. EXPIRE 0 says leaving mail on the server is not allowed. When the session enters UPDATE, the server may assume an implicit DELE for every message fetched with RETR.

That is easy to overread. Retrieval still does not delete anything on the spot. The implicit marks take effect at UPDATE, so an abnormal termination keeps the same protection. EXPIRE changes how the set of authorized removals is built; it does not move irreversible authority into RETR or into the closing of a TCP socket.

Other retention policies stay separate. A site can purge old mail under its own announced rules, which means a later absence is not a receipt for your QUIT. Capability, client intent, server attempt and observed future state are four different records.

The IANA service registry still lists pop3 at port 110. That preserves a standard rendezvous point. It measures nothing about deployment and proves nothing about whether any given server implements the failure boundary correctly.

Why a 1988 design still teaches the modern Internet

POP3's deletion design was modest enough to stay instructive. It never promised a distributed transaction. It decided which evidence could authorize irreversibility. Marking was reversible. Abnormal silence was not consent. Goodbye opened the destructive phase. And even then the result could be partial, and had to be observed or reconciled.

The most important deletion reply in the protocol was never the first +OK. It was the distinction between what was requested, what the server attempted, what the client learned, and what the next maildrop still contained.

Half the Internet still confuses the receipt with the act. POP3, written by people who had watched dial-up connections die mid-sentence, did not.

Sources