aboutsummaryrefslogtreecommitdiffstats
path: root/src/tagrules.h
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-11-16 12:24:23 +0100
committerDanilo M. <danix@danix.xyz>2026-11-16 12:24:23 +0100
commitb64cd45ebb6ca88f6f57acba22c5705899e0eca1 (patch)
tree8f4d9addf8920142e29727c0f758f1ddca2301bb /src/tagrules.h
parent227258a199283089ec16e4798988277cf5062e67 (diff)
downloadqtmaildir-b64cd45ebb6ca88f6f57acba22c5705899e0eca1.tar.gz
qtmaildir-b64cd45ebb6ca88f6f57acba22c5705899e0eca1.zip
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 <noreply@anthropic.com>
Diffstat (limited to 'src/tagrules.h')
-rw-r--r--src/tagrules.h4
1 files changed, 4 insertions, 0 deletions
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;