Personal mailbox Lexicons #
Comail’s draft email.atmos.* Lexicons describe how to store personal mail and mailbox state in a private AT Protocol Space on the account’s personal data server (PDS). The host and authorized clients can read the data. AT Protocol Spaces alpha
Schemas #
Start with email.atmos.mailbox, the Space declaration that lists the collections clients request at OAuth consent.
| Area | Lexicons | Stores |
|---|---|---|
| Messages | message |
Immutable email versions with original RFC 5322 bytes in a private blob and a stable ID across versions. |
| Message state | messageStateOperation, messageStateRevision |
Moves, read flags, deletes, and other changes to a logical message. |
| Folders | folderOperation, folderRevision |
Stable folder IDs and the history of folder changes. |
| IMAP | imapIdentity |
IMAP message numbers, folder UIDVALIDITY values, and subscriptions. |
| Submissions | submissionIntent, submissionAttempt, submissionResult |
Which message version to send, whether an attempt was claimed or canceled, and the SMTP outcome for each recipient. |
Each message state or folder change adds a revision and an operation claim so writers can recognize retries. Readers resolve conflicts by revision height, then by operation ID. Deletes are final.
Feedback and license #
Building a mail client or PDS? Open an issue with an example of what you’d need to read or rebuild a mailbox from these records.
The AGPL license accompanies the Space declaration and the five message and folder schemas from Comail Relay. The IMAP identity and three submission schemas are shared for review.