aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-11-26 11:51:58 +0100
committerDanilo M. <danix@danix.xyz>2026-11-26 11:51:58 +0100
commit2a568ea0cce16e77f4c8391408cd996f6b576dab (patch)
treec774b2c8fcc953a6ed034a96e4613948d7be791a /docs
parent8ec4e2ddd60928c1eb7347997ee37f618c2aaf5f (diff)
downloadqtmaildir-2a568ea0cce16e77f4c8391408cd996f6b576dab.tar.gz
qtmaildir-2a568ea0cce16e77f4c8391408cd996f6b576dab.zip
docs: backlog item 218, mailto: handler supportHEADmaster
qtmaildir cannot be picked as the x-scheme-handler/mailto default: the .desktop file declares no MimeType and passes no %u, and LaunchSelectors never reads a positional argument, so a mailto: URI is dropped silently. Recorded for later, not implemented. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/superpowers/plans/2026-08-03-post-0.1.0-usability.md37
1 files changed, 37 insertions, 0 deletions
diff --git a/docs/superpowers/plans/2026-08-03-post-0.1.0-usability.md b/docs/superpowers/plans/2026-08-03-post-0.1.0-usability.md
index b5cd061..fb28c8c 100644
--- a/docs/superpowers/plans/2026-08-03-post-0.1.0-usability.md
+++ b/docs/superpowers/plans/2026-08-03-post-0.1.0-usability.md
@@ -155,6 +155,7 @@ taking that too literally.
| 215 | Archive, Restore and the Inbox filter lost their icons, and three icon tests fail | defect | S | **done** 2026-11-17, unreleased. Fallback names that the installed themes carry: `archive-insert`, `document-revert`, and `mail-folder-inbox` for the filter |
| 216 | An invitation cannot be sent, and replies to one are not applied | workflow | M | open, 2026-11-16, split from 207. Editing an event's attendee list, sending `METHOD:REQUEST` through `MessageBuilder`, and applying the `METHOD:REPLY`s that come back to the stored event's `PARTSTAT`s. Builds on 207's `Invitation` parsing and calendar-part support |
| 217 | Undoing a tag change while another action is still landing can give the undo's messages to that action | defect | S? | open, 2026-10-31, found by review during 212; pre-existing. An undo's write is not armed, so its confirmation is credited to whatever command is waiting. A correlation token on `TagChange` is the robust fix |
+| 218 | qtmaildir cannot be the system's mailto: handler, so a mailto: link never opens a composer | workflow | M | open, 2026-11-26, requested via the quickshell Default apps page. Parse an RFC 6068 URI into a prefilled composer, hand it over the single-instance socket when a window is running, then `MimeType=` and `%u` in the .desktop |
| 73 | This backlog is past four thousand lines | maintenance | S | **done** 2026-08-13; 5056 lines to 578, closed sections moved to `2026-08-03-post-0.1.0-usability-closed.md` |
| 74 | "Searching..." keeps claiming a query is running while rows are already arriving | feedback | XS | **done** 2026-08-15, unreleased. The status-bar half only: the bar now counts threads per batch. The cold-cache delay itself was measured in 2026-08-11 and is not fixable here |
| 75 | The tagging rules window forgets its size and its column widths | persistence | S | **done** 2026-08-13, shipped in 0.17.0. The window-kind question is left open, see the closed-items file |
@@ -1753,3 +1754,39 @@ what it asked for. A test needs a gesture's command waiting while an undo's
confirmation arrives, with the two touching DIFFERENT messages, or the wrong
credit answers identically. `a30b4c2` tried crediting by matching tags and was
reverted (`aa5fc73`); read both before choosing.
+
+## 218. qtmaildir cannot be the system's mailto: handler
+
+**Observed.** Requested by the user through the quickshell session on
+2026-11-26: quickshell gained a Default apps page over
+`~/.config/mimeapps.list`, and qtmaildir cannot be offered there as the
+`x-scheme-handler/mailto` default. A mailto: link anywhere on the desktop
+therefore never reaches this application's composer.
+
+**Cause.** Verified in the tree, three gaps:
+
+- `assets/qtmaildir.desktop` has no `MimeType=` line, so nothing declares the
+ application a mailto handler.
+- Its `Exec=qtmaildir` passes no URL; a handler needs `Exec=qtmaildir %u`.
+- Nothing reads a positional argument. `LaunchSelectors::parse()` in
+ `src/launchselectors.cpp` uses `QCommandLineParser`, rejects unknown OPTIONS,
+ and never calls `positionalArguments()`, so `qtmaildir mailto:x@example.org`
+ opens an ordinary main window and the URI is silently dropped. The only
+ `mailto:` in `src/` is `calendarstore.cpp` stripping it from attendees.
+
+**Approach.** M. A pure parser for RFC 6068 (`to` from the path plus `to`,
+`cc`, `bcc`, `subject`, `body` from the query, percent-decoded, repeated
+fields joined), tested as a function, feeding a new-message `ComposeContext`
+through `ComposeContextBuilder`. Carry the URI in `LaunchSelectors` so the
+SingleInstance path in `main.cpp` hands it to a running window instead of
+starting a second process, which would also open a second notmuch handle. Then
+the two .desktop changes; `~/.local/share/applications/qtmaildir.desktop` is a
+symlink to the asset, so it follows.
+
+**Constraints.** A mailto: URI is untrusted input from any web page. Ignore
+headers RFC 6068 does not make safe (it names `from` and arbitrary headers as
+ones a client should not take blindly), never auto-send, and never attach
+anything a URI names: some clients honoured an `attach=` parameter and leaked
+local files that way. The account is picked by the usual rules, not by the URI.
+The SingleInstance wire format grows a field, so an older running instance
+receiving a newer launcher's message must not crash or misread it.