aboutsummaryrefslogtreecommitdiffstats
path: root/src/notmuchworker.h
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-31 11:44:55 +0100
committerDanilo M. <danix@danix.xyz>2026-11-17 10:26:20 +0100
commit2cd4bcdb4c1f171d1597c666eb2e9a49dbb7c266 (patch)
treeebf9a2a482d91d4dfb69c10a0db483f2117bf948 /src/notmuchworker.h
parent5f91222785f6b24c041086ab775ca9d20e878c64 (diff)
downloadqtmaildir-2cd4bcdb4c1f171d1597c666eb2e9a49dbb7c266.tar.gz
qtmaildir-2cd4bcdb4c1f171d1597c666eb2e9a49dbb7c266.zip
feat: apply a tag change to every message a query would move
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Diffstat (limited to 'src/notmuchworker.h')
-rw-r--r--src/notmuchworker.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/notmuchworker.h b/src/notmuchworker.h
index ad5f616..fa223e6 100644
--- a/src/notmuchworker.h
+++ b/src/notmuchworker.h
@@ -232,6 +232,15 @@ public slots:
const QStringList &remove,
const QString &description);
+ /// Applies `+add -remove` to every message the change would move within
+ /// `query` (item 212, a rule applied to existing mail). The query is
+ /// narrowed with SearchTerm::changes() so already-correct messages are
+ /// never written, then the ids go through applyTags(), which reports the
+ /// effective set for undo. Emits nothing when nothing would change.
+ void applyTagsToQuery(const QString &query, const QStringList &add,
+ const QStringList &remove,
+ const QString &description);
+
/// Resolves whole threads to the message ids and file paths they contain.
///
/// Delete thread MOVES every message, and a move needs message ids, which