aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-rule.h
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-05-12 15:14:09 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-05-12 15:14:09 +0800
commit1f26a903b0a67d87503c93cb9de670e9f84a7fda (patch)
tree1e7e702840d5ab966a14d87d1cbeffdc1c7a87de /filter/filter-rule.h
parentdedec6a7084cc67aa79cd884f47e6a2d8ee818db (diff)
downloadgsoc2013-evolution-1f26a903b0a67d87503c93cb9de670e9f84a7fda.tar
gsoc2013-evolution-1f26a903b0a67d87503c93cb9de670e9f84a7fda.tar.gz
gsoc2013-evolution-1f26a903b0a67d87503c93cb9de670e9f84a7fda.tar.bz2
gsoc2013-evolution-1f26a903b0a67d87503c93cb9de670e9f84a7fda.tar.lz
gsoc2013-evolution-1f26a903b0a67d87503c93cb9de670e9f84a7fda.tar.xz
gsoc2013-evolution-1f26a903b0a67d87503c93cb9de670e9f84a7fda.tar.zst
gsoc2013-evolution-1f26a903b0a67d87503c93cb9de670e9f84a7fda.zip
load threading option if threading enabled. (xml_encode): write out
2004-05-12 Not Zed <NotZed@Ximian.com> * filter-rule.c (xml_decode): load threading option if threading enabled. (xml_encode): write out threading setting. (rule_copy): copy threading option. (rule_eq): compare threading. (build_code): build the match-threads stuff if set. (fr_grouping_changed): insead of the match_all match_any activate clalbacks. (fr_threading_changed): handle threading option menu * rule-context.c (rule_context_init): set capabilities flags. * vfolder-context.c (vfolder_context_init): set capabilities flags to include threading. * rule-context.h: added a capabilities flag, grouping and threading capabilities. Sort of a hack to workaround not being able to put grouping or threading into rules. * filter-rule.h: added an option for threading as well as grouping. svn path=/trunk/; revision=25877
Diffstat (limited to 'filter/filter-rule.h')
-rw-r--r--filter/filter-rule.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/filter/filter-rule.h b/filter/filter-rule.h
index a6b2c3996a..2d5ba8174a 100644
--- a/filter/filter-rule.h
+++ b/filter/filter-rule.h
@@ -45,6 +45,13 @@ enum _filter_grouping_t {
FILTER_GROUP_ANY /* any rule must match */
};
+/* threading, if the context supports it */
+enum _filter_threading_t {
+ FILTER_THREAD_NONE, /* don't add any thread matching */
+ FILTER_THREAD_ALL, /* add all possible threads */
+ FILTER_THREAD_REPLIES, /* add only replies */
+ FILTER_THREAD_REPLIES_PARENTS, /* replies plus parents */
+};
#define FILTER_SOURCE_INCOMING "incoming" /* performed on incoming email */
#define FILTER_SOURCE_DEMAND "demand" /* performed on the selected folder
@@ -60,6 +67,8 @@ struct _FilterRule {
char *source;
enum _filter_grouping_t grouping;
+ enum _filter_threading_t threading;
+
unsigned int system:1; /* this is a system rule, cannot be edited/deleted */
GList *parts;
};