aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_launchselectors.cpp
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-11-16 12:24:22 +0100
committerDanilo M. <danix@danix.xyz>2026-11-16 12:24:22 +0100
commit227258a199283089ec16e4798988277cf5062e67 (patch)
tree66500eb7a9f84b2ab85c3bbf1ab1c771c4eb48dd /tests/test_launchselectors.cpp
parent21da4ee6c225d2b0b04fc51e17f39f446740a35a (diff)
downloadqtmaildir-227258a199283089ec16e4798988277cf5062e67.tar.gz
qtmaildir-227258a199283089ec16e4798988277cf5062e67.zip
feat(hooks): let a rule move new mail to spam or trash
A rule may carry "move": "spam" | "trash", an account role rather than a folder name. The post-new hook moves each matching tag:new message into its own account's configured folder under a fresh Maildir name in cur/, records the renames with one notmuch new --no-hooks, then tags +spam or +deleted, -inbox and the account-relative moved-from: origin. unread is never touched. A message with several files, in no account, or whose account has no folder for the role is logged and left alone, and a configured folder that does not exist is never created. Also fixes _quote, which escaped quotes with a backslash notmuch does not honour, so an id holding a quote matched nothing on the carve-out path. Item 214. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tests/test_launchselectors.cpp')
0 files changed, 0 insertions, 0 deletions