summaryrefslogtreecommitdiffstats
path: root/src/tagdialog.h
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-09-13 20:32:47 +0200
committerDanilo M. <danix@danix.xyz>2026-09-13 20:32:47 +0200
commitc7a2444ed5b9bb30b9f10d3e8dff8a6d6b6bb16a (patch)
treede416968b7dbb90e6ec4a8e1c55743ab71eea533 /src/tagdialog.h
parent533c9243bede053f4ea7e1f20de13e72c2b939b8 (diff)
downloadqtmaildir-c7a2444ed5b9bb30b9f10d3e8dff8a6d6b6bb16a.tar.gz
qtmaildir-c7a2444ed5b9bb30b9f10d3e8dff8a6d6b6bb16a.zip
feat: mark spam moves mail to the account's spam folder
Mark spam was a tag-only action that added the spam tag and removed inbox, so a message marked as spam stayed in the inbox on disk. It now MOVES the file into the account's configured spam folder, exactly mirroring Delete: the account-relative spam key is the destination, the move records moved-from: with the origin, and unread and inbox are stripped in the same confirmed write so one undo returns the folder and the tags together. NotmuchWorker::moveMessages already handled a folder generically and applyTags already overwrote an older moved-from: tag, so the worker needed no change; the tests pin that behaviour for the spam destination. Five existing tests used spam as a worker-free, tag-only stand-in for the old Delete. Since spam is now a move too, they are retargeted to flag, the remaining selection-scoped tag-only action.
Diffstat (limited to 'src/tagdialog.h')
0 files changed, 0 insertions, 0 deletions