The short version

  • UIDPLUS bolted a receipt onto IMAP's success message: APPEND and COPY came back carrying the destination UIDVALIDITY and the UIDs the server had just minted, so a disconnected client could file the result away instead of going hunting for it.
  • The receipt stayed deliberately local and was sometimes withheld on purpose: permissions or a UIDNOTSTICKY store could suppress it, COPYUID never claimed global message identity, and UID EXPUNGE deleted only the overlap between a named UID set and messages already flagged \Deleted.

A success message with no name in it

IMAP runs two numbering systems side by side, and the tension between them is the whole story. Sequence numbers describe the current view of a selected mailbox — they shift the moment somebody else expunges a message. UIDs were built to hold still within a mailbox generation. That split is what let a disconnected client cache its state, go away, come back, and not mistake the third visible message for the same message merely because it was still third.

Then a state-changing command walked straight into the gap. APPEND asks the server to create a new message in a destination mailbox. COPY asks it to create destination instances of messages that already exist. Base IMAP could confirm the success. What it could not do was tell the client which destination UIDs the server had just allocated. So the client selected the mailbox, planted a marker, searched for it, fetched the candidates, compared them — and called that progress. None of that work meant the mutation had failed. It was the invoice for a success result that refused to name its own product.

RFC 2359 introduced UIDPLUS in 1998 for exactly this class of disconnected operation. RFC 4315 replaced it in 2005, tightening the rules and spelling out when a server is entitled to stay quiet. The extension did not invent a second transaction system. It simply stuffed more evidence into the tagged success boundary that already existed.

APPENDUID closed one open loop

When APPEND succeeded, APPENDUID could ride inside the tagged OK, carrying two things: the UIDVALIDITY of the destination mailbox, and the UID assigned to the new message. A client could now record not just that its upload was accepted, but the mailbox generation and local identifier under which it could address the result later.

The generation carried as much weight as the number. UID 3955 is not an identity on its own — it means something only inside a specific server, mailbox name and UIDVALIDITY. Change the validity and the old pairing cannot be carried forward as though nothing happened. UIDPLUS returned a usable reference precisely because it returned the boundary that made the reference valid.

Multiappend widened the response from a single UID to an ordered set. Returned UIDs follow the order of the messages supplied to APPEND. The set cannot smuggle in unrelated identifiers, and it cannot use * as a vague, indefinite endpoint. Those constraints are what make the answer checkable: the client knows how many messages it sent and which result position belongs to which one.

COPYUID preserved correspondence through renaming

COPY posed the harder problem, because identical content crossed a mailbox boundary and came out with new names. COPYUID returned the destination UIDVALIDITY, a source UID set and a destination UID set. The two sets carry equal cardinality, and their positions define the mapping: first source to first destination, second to second, and onward down the line.

That was never a promise that UIDs travel with messages. It was evidence that this particular command caused these particular destination allocations. A client could update its local model without squinting at message order or guessing from content similarity.

Sequence numbers could not safely do the same job, because other clients may expunge messages while COPY is still being processed, shifting every visible position underneath the operation. RFC 4315 therefore grounds the mapping in UIDs and constrains the returned sets to the messages actually involved. The receipt survives renumbering because it never depended on the display order that renumbering changes.

The scope still stopped at the client that received the reply. RFC 8474 later pointed out the obvious gap: another client could stare at the destination mailbox all day and never infer the same cross-mailbox mapping from COPYUID. Object identifiers took on that broader identity problem. UIDPLUS had solved a command-result problem, not the question of universal sameness.

UID EXPUNGE narrowed the destructive set

The extension aimed the same precision at deletion. Ordinary EXPUNGE permanently removes every message in the selected mailbox carrying the \Deleted flag — which, in a shared mailbox, may include messages another client flagged and the reconnecting client never meant to lose.

UID EXPUNGE takes a UID set and removes only messages satisfying both conditions: the UID is in that set, and the message is already marked \Deleted. A listed UID without the flag survives. A flagged message outside the set also survives. The command is an intersection — not a broad purge, and not a substitute for the flagging step.

Without UIDPLUS, the documented fallback was genuinely awkward: temporarily clear \Deleted from the messages that must survive, issue EXPUNGE, then put the flags back. Under suitable conditions the fallback reproduced the desired outcome, but it stretched the window during which a client was fiddling with shared state. UID EXPUNGE stated the intended irreversible scope in a single command.

A receipt could disclose too much

More evidence is not automatically safer. A user might be allowed to drop a message into a mailbox without being allowed to select or examine that mailbox. Handing back its UIDVALIDITY and a freshly allocated UID would leak information about a store the permission model had deliberately kept opaque. RFC 4315 therefore says the server should not send APPENDUID or COPYUID in that case.

The response could also be omitted for a UIDNOTSTICKY destination — a store that makes no promise that UIDs persist between sessions. Returning a durable-looking reference out of a nonpersistent namespace would invite exactly the wrong inference, so the protocol marks the store and permits silence. The specification discourages new stores with that property, but it does not pretend legacy constraints have vanished.

Absence of a receipt is not a negative command result. The client can fall back to selecting and searching the destination if it has the access, often by planting a unique marker in the message. The distinction matters: mutation success, permission to inspect, and identifier persistence are three separate facts wearing one word.

MOVE made response order visible

The later MOVE extension fused destination creation with source removal, and suddenly timing was the story. A UIDPLUS server could report COPYUID for UID MOVE, but if it emitted EXPUNGE responses first, source-side sequence numbers shifted before the client ever learned the destination mapping. RFC 6851 advised sending COPYUID in an untagged OK ahead of those removals; IMAP4rev2 folded that ordering into its integrated behaviour.

The lesson was not that a response becomes truer by arriving early. It becomes usable while the state needed to interpret it is still coherent. A mapping, a deletion notice and a final success can each be perfectly correct and still manufacture needless ambiguity if the protocol orders them badly.

The receipt had a jurisdiction

UIDPLUS is a history of bounded evidence. APPENDUID answered which new local reference followed one append. COPYUID answered how one source set corresponded to one destination set. UID EXPUNGE answered which already-marked messages one client intended to remove. Permission, mailbox generation and response order defined exactly where each answer stayed valid.

That restraint is why the extension outlived its own replacement cycle. It never promoted a local number into a universal identity, or a successful response into a transaction proof. It made a smaller claim and made it exactly: the server performed this mutation, and here are the destination references it produced within this mailbox generation.

Sources and limits

The original extension is RFC 2359, replaced by RFC 4315. The base protocol context is RFC 3501; MOVE interaction is in RFC 6851; the limit that motivated cross-client object identifiers is explained by RFC 8474; and the integrated IMAP4rev2 behaviour is in RFC 9051. IANA's IMAP capabilities registry records UIDPLUS. These sources do not measure deployment share, and they do not turn a UID mapping into delivery, authentication or global identity evidence.