Flags and deletion
04Flags describe server-side message state; deletion marking and expunging are separate operations.
The marked message is removed and sequence positions can change.
Key idea: STORE can update flags such as Seen or Deleted under mailbox permissions.
Rules & examples
STORE can update flags such as Seen or Deleted under mailbox permissions.
- STORE can update flags such as Seen or Deleted under mailbox permissions.
- Marking Deleted alone does not necessarily remove a message.
- EXPUNGE permanently removes messages marked Deleted under the command rules.
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.