aboutsummaryrefslogtreecommitdiffstats
path: root/src/tagrules.h
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-31 11:51:24 +0100
committerDanilo M. <danix@danix.xyz>2026-11-17 10:26:22 +0100
commit86ff3c6a66c2973a96c589151855a2d54d807236 (patch)
tree798689933576153258ebe225869b6de31a8e2aea /src/tagrules.h
parenta4c4038cc44911915b4bc97473f6f80376d85e23 (diff)
downloadqtmaildir-86ff3c6a66c2973a96c589151855a2d54d807236.tar.gz
qtmaildir-86ff3c6a66c2973a96c589151855a2d54d807236.zip
feat: apply a rule from the rules dialog, and opt a rule into archiving
Apply saves first, so only what the hook would run is applied, then asks the owner to apply the saved rule. A checkbox maps to allow_archive, and the banner names every rule the sync hook will skip. Items 212 and 213. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'src/tagrules.h')
-rw-r--r--src/tagrules.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tagrules.h b/src/tagrules.h
index 2ceafef..94e3a85 100644
--- a/src/tagrules.h
+++ b/src/tagrules.h
@@ -20,6 +20,7 @@
#include <QJsonObject>
#include <QList>
+#include <QMetaType>
#include <QString>
#include <QStringList>
@@ -123,3 +124,5 @@ private:
QJsonObject m_unknown; ///< Unrecognised top-level keys.
bool m_missing = false;
};
+
+Q_DECLARE_METATYPE(TagRule)