From 1f26a903b0a67d87503c93cb9de670e9f84a7fda Mon Sep 17 00:00:00 2001 From: Not Zed Date: Wed, 12 May 2004 07:14:09 +0000 Subject: load threading option if threading enabled. (xml_encode): write out 2004-05-12 Not Zed * 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 --- filter/rule-context.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'filter/rule-context.h') diff --git a/filter/rule-context.h b/filter/rule-context.h index 681ab7a61d..2f54a574f8 100644 --- a/filter/rule-context.h +++ b/filter/rule-context.h @@ -41,12 +41,20 @@ typedef struct _RuleContext RuleContext; typedef struct _RuleContextClass RuleContextClass; +/* backend capabilities, this is a hack since we don't support nested rules */ +enum { + RULE_CONTEXT_GROUPING = 1 << 0, + RULE_CONTEXT_THREADING = 1 << 1, +}; + struct _RuleContext { GObject parent_object; struct _RuleContextPrivate *priv; char *error; /* string version of error */ + guint32 flags; /* capability flags */ + GList *parts; GList *rules; -- cgit v1.2.3