UIDs versus sequence numbers
02Sequence numbers track current positions; UIDs support persistent synchronization.
UIDs for the surviving messages remain associated with their original identities.
Key idea: A UID is a nonzero 32-bit value that increases within a mailbox.
Rules & examples
A UID is a nonzero 32-bit value that increases within a mailbox.
- A UID is a nonzero 32-bit value that increases within a mailbox.
- UIDVALIDITY is needed to interpret persisted UID state.
- Sequence numbers can change when messages are expunged.
Examples are illustrative. Consult the linked RFC and its errata for implementation details.
Sources
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.