aboutsummaryrefslogtreecommitdiffstats
path: root/docs/superpowers/specs
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-31 12:33:10 +0100
committerDanilo M. <danix@danix.xyz>2026-11-17 10:26:28 +0100
commit097507f83d3d559455910e7c9e8969abd2eef961 (patch)
tree8510a27ecb336fad616d318ac75b4cf90dd04e8d /docs/superpowers/specs
parente9dfdabb7b20e722197d4ae7618a8bd41ea813f0 (diff)
downloadqtmaildir-097507f83d3d559455910e7c9e8969abd2eef961.tar.gz
qtmaildir-097507f83d3d559455910e7c9e8969abd2eef961.zip
fix: build a backfill's undo from the worker's answer, not the queue
Apply no longer arms commands on the shared confirmation queue. A backfill can run for a long time; a gesture made meanwhile cleared the queue, and the backfill's confirmation was then credited to the user's command, so undoing that command inverted the backfill over every message it touched. MainWindow counts the whole rule, confirms, and sends applyRule() with a token. onRuleApplied() drops a stale token, records each operation's effective change through the bookkeeping onTagsApplied() shares, and pushes one MessageTagCommand per operation with the ids it moved, inside one undo macro. Every configured account is marked edited, since a backfill reaches mail no row shows and a narrowed sync could otherwise clear the pending count without pushing it. Nothing moved shows the nothing-to-change status instead of "done". Also: a count of -1 says the rule could not be counted, and the confirmation says undo lasts until the next search, which is when runQuery() clears the stack. Item 212. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs/superpowers/specs')
0 files changed, 0 insertions, 0 deletions