diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-13 17:03:37 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-13 17:03:37 +0200 |
| commit | 1d4bb87c03b2ccec6555ace002c5a519abb86f74 (patch) | |
| tree | 23f32d68e5ee8472d885de14c01b4753e67e723d /docs/superpowers/plans | |
| parent | 9fc6ca0d9a9cdba9d5808951ce290e559a9e8554 (diff) | |
| download | quickshell-1d4bb87c03b2ccec6555ace002c5a519abb86f74.tar.gz quickshell-1d4bb87c03b2ccec6555ace002c5a519abb86f74.zip | |
docs: design for mail arrival notifications
One notification per account per arriving batch, from a new
mail-notify.sh sibling to waybar-mail.sh.
Arrival is detected with notmuch's lastmod revision counter rather
than a count delta or a date watermark: a commit is not the same as
new mail, since reading and tagging also commit, and date: is the
message's own Date header, so backdated mail would never notify and
future-dated mail would notify forever.
A separate process rather than extending waybar-mail.sh, which
already has the arrival edge: waybar owns that process, so a bar
restart would stop notifications with nothing reporting it.
State carries the database UUID beside the revision, because notmuch
revisions are only comparable within one database. Missing, corrupt
or mismatched state seeds silently: with no floor, lastmod:0..
matches all 101 unread messages here and startup becomes a wall of
popups.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017ZwWrCEbdKzmisfg9bb1nS
Diffstat (limited to 'docs/superpowers/plans')
0 files changed, 0 insertions, 0 deletions
