Skip to content
This repository was archived by the owner on Nov 22, 2026. It is now read-only.

Make Magpie Mail a normal app - #63

Draft
dreinecke wants to merge 570 commits into
mainfrom
feat/c080-normal-app
Draft

dreinecke wants to merge 570 commits into
mainfrom
feat/c080-normal-app

Conversation

@dreinecke

Copy link
Copy Markdown
Collaborator

Moves Magpie Mail into a native Qt application with an envelope-only shell plugin.

  • Adds acknowledged single-instance open/raise, compose, exact command-line mailto, and hidden background startup.
  • Preserves notifications, snooze scheduling, accounts, credentials, settings, notification routes, and the managed engine.
  • Adds a private five-field status snapshot and a numeric unread envelope with no shell-resident mail Service or backend.
  • Packages native helpers, default-client controls, and Apple's envelope artwork.
  • Handles packaged bin and direct-install layouts, native settings migration, and Linux-only default-client controls.

Validation: make validate; 10 native app tests; 23 activation cases; 7 package tests; 44 Service settings cases; staged production smoke and cold/warm handoffs; independent hostile review ending Security: PASS.

Draft until Enterprise installation and live app, envelope, notification, and snooze verification are complete.

dreinecke and others added 30 commits November 9, 2026 14:14
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A bundle now waits when the to-do list, the labels or the sender check
cannot be read, and mail Gmail cannot vouch for stays its own row. Undo
of a bundled action restores only what that action changed. A Point the
writer left out or got wrong no longer fails the mails around it. The
offer to bundle names the address and what goes behind it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Undo of a snooze returns mail from an earlier snooze of the same
conversation, and says so when it leaves a mail changed since. The offer
to bundle wraps instead of cutting off, and only the part of an address
before the @ can shorten. Refusing a bundle marks its mail for a new
Point first, and the sender check reads less of what a sender wrote.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FLvc73UBfaEarxQUZUTBr7
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FLvc73UBfaEarxQUZUTBr7
…m (C-074)

Hiding the bar icon stopped the app and left its settings with the bar
widget that no longer existed. Settings now live in settings.json, filled
once from the shell's entry. A value changed in Omarchy is still saved.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FLvc73UBfaEarxQUZUTBr7
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FLvc73UBfaEarxQUZUTBr7
Undo now returns every mail a snooze took out of the Inbox, including a
snooze made on another device. The offer to bundle a sender shows its
whole question on its own line, with the buttons below it. The check on
who sent a bundled mail is stricter about addresses it cannot read
reliably.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FLvc73UBfaEarxQUZUTBr7
Undo works out which mail to return from the conversation's current
labels, so a snooze changed on another device cannot leave a mail
outside the Inbox with no snooze. Sent mail and drafts stay out of the
Inbox. The check on who sent a bundled mail is stricter, and on a very
narrow row the offer can still be refused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FLvc73UBfaEarxQUZUTBr7
A snooze whose first attempt went unconfirmed can find more mail under
its label when it is retried. Undo then no longer relies on the older
record of what was in the Inbox. The check on who sent a bundled mail
also refuses the remaining kinds of hidden formatting in an address.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FLvc73UBfaEarxQUZUTBr7
A snooze now saves where each mail in its conversation was at that
moment, and Undo puts each one back there: in the Inbox, under the
snooze that already held it, or neither. Mail that arrived since is left
alone, and a snooze with no such record stays as it is. The change adds
no answer the screens rely on: they already treat every failure except
a snooze that has ended as an Undo that did not work.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FLvc73UBfaEarxQUZUTBr7
Undo goes back only as far as the snooze that made the change, so mail
that had returned to the Inbox stays in it and a separate earlier snooze
is left alone. Mail Undo puts back under an earlier snooze is found again
in time to return when that snooze is due.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FLvc73UBfaEarxQUZUTBr7
A bundle can snooze one conversation more than once. The snoozes now
share an action id, and Undo goes back to before the first of them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FLvc73UBfaEarxQUZUTBr7
Undo now returns the whole conversation after a retry or a failed
labels reading, and cancels what the bundle never applied.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FLvc73UBfaEarxQUZUTBr7
The repository is public. Dave chose to keep the shared rules off GitHub
and to erase them from its history, so agents must not compile the
Folklore block back into this file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FLvc73UBfaEarxQUZUTBr7
… (Q-006)

Dave chose to keep the main machine's private network name and address off this
public repository (Q-006 in Medley, 10 November 2026). The phone service
now asks Tailscale for the machine's own name, and uses it only when it is
a plain DNS name among the names Tailscale can issue a certificate for, so
the weekly certificate renewal works as before without the name in the
code. Docs describe the address without naming it, and pull requests name
Peacock notes by number instead of linking them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FLvc73UBfaEarxQUZUTBr7
The hostile review found three properties of the name check that no test
held: a space inside a label, labels over 63 characters and names over
253. Tests now refuse each and accept names at the limits. The lookup now
asks for the name before it makes a staging folder, and a missing list of
certificate names reports that, not a missing machine name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FLvc73UBfaEarxQUZUTBr7
Dave's household rule from Q-007 in Medley: nothing private goes into a
public repository, home folder paths among it. AGENTS.md and MAGPIE.md
named the folders where this machine keeps its checkouts and work trees;
they now name the repositories and the main checkout instead. The app's own
XDG folders stay, since they are the same wherever Magpie runs.

The agents' working files (carrots, questions and Dave's tasks) are now
ignored, so they cannot be committed by accident.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LstUPLXjLWp677fDJ4g2CT
link-plugin.sh accepts only an installer at an absolute path. The test now
also runs it with PATH=here from the parent folder and PATH=../here from a
sibling, where an installer waits; both must stop with the message. A
check that rejected only ./ paths passed the old cases and fails these.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PppPBNL8pos7ypSoe6qS31
As a normal app, Magpie Mail lost two looks it had as a shell plugin:
controls had square corners because the app's style fixed the radius at
zero, and the line under the top row was dark because it used the
theme's border colour. The radius now follows the desktop's window
rounding, read again after a theme change, and the line matches the
shell's faint rule in the text colour.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FLvc6ysxJTzP72yY4diHA3
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant