Mail apps (JMAP): what a decision needs to know

Offen
#116 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
25/100
Issue-Typ
Dokumentation
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
typescript

Rechercherichtung

Start with docs/feature-scope.md and the listed architecture, access, roadmap, and ADR records, then compare the JMAP requirements in RFC 8620 and RFC 8621 with Podbay's documented behavior. The issue asks for a decision record covering its ten questions, especially change history, accounts, app passwords, mailboxes, blobs, downloads, sending, and push. Done means the record resolves those questions; the issue explicitly makes no decisions and requests no code.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

decision enhancement needs lead

The feature scope has one line for this in phase B: "JMAP (RFC 8620 and 8621) with app passwords, so mail apps that speak it can connect". This issue gathers what a decision record would need, as #85 to #87 do for their subjects. It decides nothing and asks for no code.

Read on 2026-11-19 from the RFC texts and the IANA registries (list at the end) and from Podbay's own records. The RFC statements were read through a fetch tool and not compared byte for byte; "(p)" marks a paraphrase.

What the standards ask

Item Source What it says
Authentication RFC 8620 §1.7, §2, §8.2 Every request is authenticated, over https. How credentials are obtained is out of scope. No scheme is mandated; Basic is not recommended, and where it is used each client should have a password of its own that can be revoked alone (p)
Session RFC 8620 §2 capabilities, accounts, primaryAccounts, username, apiUrl, downloadUrl, uploadUrl, eventSourceUrl, state
Account RFC 8620 §1.6.2, §2 A collection of data, not a user; one credential may reach several. name, isPersonal, isReadOnly, accountCapabilities
State and changes RFC 8620 §5.1, §5.2 A state string that must change when the data does. /changes returns created, updated and destroyed ids since a state; a server that cannot answers cannotCalculateChanges and the client drops its cache. Servers should be able to answer from any state given in the last 30 days (p)
Queries RFC 8620 §5.5, §5.6 filter, sort, position, limit; the answer says whether /queryChanges can be calculated, so a server may decline it
Blobs RFC 8620 §6 A blob is immutable. Upload is an authenticated POST; a blob nothing points to is kept at least an hour and is the uploader's own, also in a shared account. Download is an authenticated GET whose address carries accountId, blobId, type and name; the type served is the one the client asked for (p)
Push RFC 8620 §7 Minimal data: a map from account to the states of its types. By an event stream, or by a subscription the server posts to
Mailbox RFC 8621 §1.3.1, §2 id, name, parentId, role, sortOrder, four counts, myRights (nine rights), isSubscribed (per user). No two mailboxes of an account share a role. The server may limit how many mailboxes a message is in (maxMailboxesPerEmail, at least 1)
Email RFC 8621 §4.1 Belongs to one or more mailboxes at all times. blobId is the raw message. Keywords, with $draft, $seen, $flagged, $answered defined and $forwarded registered. preview at most 256 characters. hasAttachment set by the server
Thread RFC 8621 §3 id and emailIds; /get and /changes
Search RFC 8621 §4.4, §5 Twenty filter conditions; only the sort by receivedAt must be supported; snippets with the match marked
Identity RFC 8621 §6 name, email (fixed), replyTo, bcc, textSignature, htmlSignature, mayDelete
Sending RFC 8621 §7; RFC 4865 EmailSubmission: undoStatus is pending, final or canceled; sendAt; an envelope; onSuccessUpdateEmail. A server that holds mail says for how long (maxDelayedSend); held mail should count against a quota per user
Automatic reply RFC 8621 §8 One VacationResponse, id "singleton": isEnabled, fromDate, toDate, subject, textBody, htmlBody
Roles IANA mailbox name attributes Inbox, Sent, Drafts, Archive, Junk, Trash; Scheduled and Snoozed since RFC 9979 (May 2026, informational)

Other documents of the family, by their info pages: over WebSocket (RFC 8887), blob management (RFC 9404), quotas (RFC 9425), MDN (RFC 9007), Sieve scripts (RFC 9661), sharing (RFC 9670), contacts (RFC 9610), Web Push VAPID (RFC 9749). Calendars is still a draft (draft-ietf-jmap-calendars-34).

What Podbay has, and where it differs

JMAP Podbay today Gap, or what a decision has to say
Authentication Sessions for people; keys for MCP that read, or read, organise and draft, and never send (ADR-0004); "app password" is one line of text What an app password is: for a person or for a mailbox, whether it may send, how it ends with a membership or a recovery. A key cannot give fresh proof
Account A mailbox with its memberships; someone without one gets 404 An account as a mailbox fits (a reader as read-only, a shared mailbox as not personal). The id it is known by needs deciding (see #17)
Mailbox Seven places, one per message, and any number of labels (ADR-0007) Whether places and labels are both mailboxes, with the limit said (one place and the labels), and what the answer is when a client asks for none or two places. Flat labels and parentId (#37). isSubscribed is per user and the mailbox knows no person
Keywords Read and starred; muted planned (ADR-0010) Whether a client's own keywords are kept. Whether answered and forwarded are stored was not found
Thread Conversations by headers and subject Ids for threads, and their changes
Raw message Kept for received mail since 2026-11-17 (ADR-0015); none for sent mail, drafts and older mail What a blob is for those; whether mail can be imported
/changes Four counters that tell the open app something changed (ADR-0013, which says a counter is not a log) A log per type, with the ids of what was destroyed, for a time that is said. Set against the rule that deleting deletes
Search A grammar on the mailbox's full-text index The mapping of the filter conditions; /queryChanges may be declined
Upload A file is declared in a draft and then sent (ADR-0011) A free-standing upload, the uploader's own for an hour
Download A link, or an acknowledged POST for kinds that can do harm; the type served from a short inert list A GET whose type and name the client chooses. A route that takes a key and never a cookie may need a rule of its own; it has to be said
Push A WebSocket from the app's own page, held to its origin, for five minutes Which doors open: an event stream keeps the mailbox object awake (ADR-0013), RFC 8887 fits it better, a subscription posts to a third party
Identity A name and a signature in the mailbox's settings; From must be the mailbox's address Identities that are read-only at first; aliases are #53
Sending A message waits and leaves by one function, with an undo window and a time up to a year ahead (ADR-0016) A failed message has no undoStatus; a waiting message cannot be destroyed; the least hold; the envelope and the delivery state are not kept. And whether a mail app may send at all
Automatic reply One object with nearly these names (ADR-0008) Saving it needs the right to manage the mailbox and fresh proof
Rules A closed vocabulary of Podbay's own Sieve is a script generated from it, later, if at all

Questions a record would answer, the ones that fix most first

  1. Is there a log of changes per type, how long is it kept, and are destroyed ids kept?
  2. Is an account a mailbox, and what is its id?
  3. What is an app password: its reach, how it is sent, whether it may send mail, and when it ends?
  4. Are places and labels both mailboxes, and which error keeps the rule of one place?
  5. What is a blob for sent mail, drafts and uploads that belong to no draft?
  6. Does a download keep the inert types and the acknowledgement, or does a route without cookies get its own rule?
  7. May a mail app send, and how does its request reach the one function that lets mail leave, with its caps and its hold?
  8. Which ways of push are offered?
  9. What that is per user is offered (isSubscribed, identities)?
  10. The limits, and which capabilities are left out.

One thing can be done before any of it and loses nothing if JMAP never comes: the log of question 1. The counters began at nought and keep no history, so every day without a log is a day a later client could not catch up on. That is a suggestion for the lead, not a decision.

Not verified

  • No quote was compared byte for byte.
  • Whether a server may leave out the push subscription or the event stream; whether it may refuse a filter condition.
  • The bodies of the extension documents other than RFC 8887 and RFC 9979.
  • The state of the calendars draft (its page shows two states that do not agree).
  • Podbay's code was not read against its records for this, beyond table names.

Sources (read 2026-11-19)

Vorherrschende Sprache
TypeScript
Sterne
1
Forks
1
Ø Merge
9 Std. 3 Min.
Gemergte PRs (30 T.)
136

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus cloudhal-dev/podbay

Alle Issues in cloudhal-dev/podbay

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.