diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-12 10:16:27 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-12 10:16:27 +0200 |
| commit | 2b4e1bb2d62c464d9eb949dc7c60cac8dd57f638 (patch) | |
| tree | 3e9104a950ce10baa813b67ce7e3cfd3752ae89a /mail-overview/MailPanel.qml | |
| parent | 92cf294993c49fa95547ad14ac7d21c7c7a2b837 (diff) | |
| download | quickshell-2b4e1bb2d62c464d9eb949dc7c60cac8dd57f638.tar.gz quickshell-2b4e1bb2d62c464d9eb949dc7c60cac8dd57f638.zip | |
fix(mail-overview): parse account sections by walking lines
Two bugs, both found by actually running the shell rather than reading the
code.
shell.qml used Connections without importing QtQuick, so the config failed to
load outright: "Connections is not a type". That one was loud, and it only
affected the temporary verification probe.
The parser was the real bug and it was quiet. Section bodies were matched as
"everything up to the next [", which is wrong for this file: accounts whose
folders are named like [Gmail]/Bozze end their body at that bracket, before
the label line is reached. Three of the five accounts therefore fell back to
displaying their raw key, and nothing reported a problem because falling back
is a legitimate path for an account that genuinely has no label.
Replaced with a line walk. It says what it means, its only state is which
section is open, and it was checked against the real config before being
trusted: all five accounts now resolve both label and colour. An attempted
fix with a lazy quantifier and a lookahead made things worse, dropping every
label, which is the argument for the boring version.
Verified in a running shell: five accounts in config order with their labels,
counts summing exactly to the global notmuch count, no unknowns, and the
config stays loaded for the full timeout rather than exiting silently.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WWL8JYHu7yhAdtx5pU9PMU
Diffstat (limited to 'mail-overview/MailPanel.qml')
0 files changed, 0 insertions, 0 deletions
