Mail apps (JMAP): what a decision needs to know
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 25/100
- Tipo de issue
- Documentação
- Clareza
- Claramente especificada
- Status de atividade
- Ativa
- Stack de tecnologia
- typescript
- Domínio
- api, backend, documentation
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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) |
| 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
- Is there a log of changes per type, how long is it kept, and are destroyed ids kept?
- Is an account a mailbox, and what is its id?
- What is an app password: its reach, how it is sent, whether it may send mail, and when it ends?
- Are places and labels both mailboxes, and which error keeps the rule of one place?
- What is a blob for sent mail, drafts and uploads that belong to no draft?
- Does a download keep the inert types and the acknowledgement, or does a route without cookies get its own rule?
- May a mail app send, and how does its request reach the one function that lets mail leave, with its caps and its hold?
- Which ways of push are offered?
- What that is per user is offered (isSubscribed, identities)?
- 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)
- https://www.rfc-editor.org/rfc/rfc8620.txt, https://www.rfc-editor.org/rfc/rfc8621.txt, https://www.rfc-editor.org/rfc/rfc8887.txt, https://www.rfc-editor.org/rfc/rfc9979.txt, https://www.rfc-editor.org/rfc/rfc4865.txt
- https://www.rfc-editor.org/info/rfc9404 and the same for rfc9425, rfc9007, rfc9661, rfc9670, rfc9610, rfc9749
- https://datatracker.ietf.org/doc/draft-ietf-jmap-calendars/
- https://www.iana.org/assignments/imap-mailbox-name-attributes/imap-mailbox-name-attributes.xhtml and https://www.iana.org/assignments/jmap/jmap.xhtml
- In this repository:
docs/feature-scope.md,docs/architecture.md,docs/auth-and-access.md,docs/roadmap.md, ADRs 0004, 0007, 0008, 0010, 0011, 0012, 0013, 0015, 0016
- Linguagem predominante
- TypeScript
- Estrelas
- 1
- Forks
- 1
- Merge médio
- 9h 3min
- PRs com merge (30d)
- 136
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de cloudhal-dev/podbay
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 73/100
cloudhal-dev/podbay#235 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 38/100
cloudhal-dev/podbay#234 ·
Mantenedores costumam responder em até 1 dia
-
decision enhancement needs lead security
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 25/100
cloudhal-dev/podbay#93 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
area: auth decision enhancement needs lead
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 25/100
cloudhal-dev/podbay#87 ·
Mantenedores costumam responder em até 1 dia
-
decision enhancement needs lead
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 25/100
cloudhal-dev/podbay#86 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de cloudhal-dev/podbay
Issues semelhantes
-
area: bio enhancement good first issue help wanted
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
Hilal-11/snaplnk.io#36 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 82/100
elecnix/bellwether#570 ·
Mantenedores costumam responder em até 1 dia
-
enhancement good first issue help wanted
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
canblmz1/prefix-safe-json#135 ·
Mantenedores costumam responder em até 1 dia
-
triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
ionic-team/capacitor#8759 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
jenkins-infra/plugin-modernizer-stats#220 · 1 comentário ·
Mantenedores costumam responder em até 3 dias