6 Commits
Author SHA1 Message Date
Mateusz PstruchaandClaude Opus 5.5 789b550301 Add Junk, spam actions and infinite scroll
CI / build (push) Successful in 17s
Junk joins the system views; Report spam / Not spam come from the
toolbar, menu and `!`; messages show their spam score as a badge. Rules
gains an Add spam filter preset — score over 5 → Junk, placed first and
stopping later rules — and the editor offers only numeric comparisons
for spam score.

Conversation lists now load older pages. The list previously only ever
showed the newest 50 conversations, leaving older mail unreachable even
though the API returned a cursor. Pages load as the end scrolls into
view, when j walks past the end, or via a Load older button that also
covers keyboard use. Refreshing after an action re-reads as many rows as
were loaded, so a deep scroll doesn't collapse back to one page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-23 15:32:35 +02:00
Mateusz PstruchaandClaude Opus 5.5 9550c6ac73 Add rule stop option, run now, and trash purge dates
CI / build (push) Successful in 13s
The rule editor gets a stop-after-match checkbox in place of the stop
action, and each rule a Run now button that confirms what it will do and
reports how many messages matched. Disabled rules dim their description
only, since Run now still works on them. Trash rows show when they'll be
deleted permanently.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-23 12:00:04 +02:00
Mateusz PstruchaandClaude Opus 5.5 ab854593a3 Add folders, tags, conversation actions and rules
CI / build (push) Successful in 16s
The sidebar gains views (Inbox, All mail, Sent, Trash), folders and
tags; list rows show tag chips. Conversation actions — archive,
delete/restore, read/unread, move, tag — come from a toolbar, a
right-click context menu on the native Popover API, or the keyboard
(e, #, Shift+I/U, v/l). With nothing open, keyboard actions apply to
the row under the cursor, so mail can be triaged from the list. After
an action the view returns to the list rather than auto-opening the
next conversation, since opening one marks it read.

The rules editor works on the same structured JSON the server stores,
so anything the API accepts can be shown and edited. Server validation
errors, such as a bad regex, appear inline without clearing the form.
The editor snapshots the rule it opens and is keyed per rule, so
opening another remounts it instead of reusing stale form state.

Menus close through our own code path rather than waiting on the
popover's toggle event, for the same reason as the compose dialog:
browsers can defer it while the tab is hidden.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-23 11:26:04 +02:00
Mateusz PstruchaandClaude Opus 5.5 f538853a0c Add compose, reply and outbox
CI / build (push) Successful in 18s
Compose/reply/reply-all in a native <dialog> with drafts; an outbox view
for drafts, queued and failed messages with retry timing, last error and
Retry/Delete; mark-read on open; c, r/a and Shift+R shortcuts (r moves
from refresh to reply, matching Gmail). Replying to your own sent
message addresses the people you wrote to rather than yourself.

The dialog now notifies its parent directly when it closes itself,
instead of relying on the <dialog> close event. Browsers may defer that
event — Chrome doesn't deliver it at all while the tab is hidden — and
when it didn't arrive, compose state never reset: the next reply
wouldn't open and a stale draft id was carried over. The event still
covers Escape, with a guard against notifying twice.

After sending, the UI watches that one message leave the queue and then
refreshes its thread; watching the whole queue meant an unrelated
message stuck retrying held up feedback for the one just sent. The
thread header now counts loaded messages rather than the summary taken
when the thread opened, which went stale after a reply.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-23 10:59:38 +02:00
Mateusz PstruchaandClaude Opus 5 f0b42baa50 Add read-only mail view
CI / build (push) Successful in 14s
Thread-grouped list, thread view with older messages collapsed, and
keyboard navigation (j/k, Enter/o, u/Esc, g/G, r, ?). Mutating shortcuts
are deliberately absent until the endpoints behind them exist.

Untrusted mail renders in an iframe sandboxed without allow-scripts or
allow-same-origin, with a CSP inside the frame doing the actual blocking
of remote loads. CSP rather than rewriting <img src> because rewriting
misses srcset, <picture>, CSS background-image and @font-face; img-src
covers every image load however it was requested. Remote images stay
blocked per message until the reader opts in.

Verified against mail carrying a tracking pixel, remote hero image, CSS
background image and inline <script>: the script neither ran nor reached
the parent, the frame was not same-origin accessible, and no request was
made even for a resolvable, actively-served image URL.

Note the quotes in img-src 'none' are load-bearing — unquoted, CSP reads
'none' as a hostname and would allow https://none/pixel.gif.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 22:53:24 +02:00
Mateusz PstruchaandClaude Opus 5 1145e31af6 Initial webapp scaffold
Vite + Svelte 5 + TypeScript with no other runtime dependencies, per the
client spec's speed-and-simplicity priority. Wires up the decided palette
with light/dark/system switching, a two-pane desktop shell, and a thin
API client against the sync server.

Deliberately no PWA/service worker, matching the spec's scope cut.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 19:01:07 +02:00