From b64cd45ebb6ca88f6f57acba22c5705899e0eca1 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Mon, 16 Nov 2026 12:24:23 +0100 Subject: feat(rules): Move to in the rules dialog TagRule gains move, read and written by TagRules and chosen from a Move to combo whose item data is the wire-format role. An unknown value from the file is kept raw in unknown and the rule still loads, so a save writes it back instead of deleting the rule; a role picked in the dialog replaces it. A move-only rule is valid. Item 214. Co-Authored-By: Claude Opus 5.5 --- src/tagrules.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/tagrules.h') diff --git a/src/tagrules.h b/src/tagrules.h index 4d3f0ab..946329a 100644 --- a/src/tagrules.h +++ b/src/tagrules.h @@ -37,6 +37,10 @@ struct TagRule QString note; ///< Why the rule is shaped this way. Shown in the dialog. QStringList add; QStringList remove; + /// "spam" or "trash", or empty. An account ROLE, never a folder name: the + /// hook resolves it per message to that account's configured folder, so + /// a typo cannot create a folder on the server (item 103, item 214). + QString move; int stage = 50; ///< Ascending. Account tags 10, topic rules 50. bool enabled = true; -- cgit v1.2.3