aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-10-24 01:32:08 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-10-24 01:32:08 +0800
commit51d005f03d8f6ee0d7792355ae07cd62fa66b747 (patch)
tree14c507ec9ca1fc880bb3de6a4f9e963b5c3f39ac
parente42e84e2bf7d38341ad44695cbf90df933d8c580 (diff)
downloadgsoc2013-evolution-51d005f03d8f6ee0d7792355ae07cd62fa66b747.tar
gsoc2013-evolution-51d005f03d8f6ee0d7792355ae07cd62fa66b747.tar.gz
gsoc2013-evolution-51d005f03d8f6ee0d7792355ae07cd62fa66b747.tar.bz2
gsoc2013-evolution-51d005f03d8f6ee0d7792355ae07cd62fa66b747.tar.lz
gsoc2013-evolution-51d005f03d8f6ee0d7792355ae07cd62fa66b747.tar.xz
gsoc2013-evolution-51d005f03d8f6ee0d7792355ae07cd62fa66b747.tar.zst
gsoc2013-evolution-51d005f03d8f6ee0d7792355ae07cd62fa66b747.zip
Don't forget to set the rule source! (eg "incoming", "demand", or
2000-10-23 Jeffrey Stedfast <fejj@helixcode.com> * mail-autofilter.c (filter_gui_add_from_message): Don't forget to set the rule source! (eg "incoming", "demand", or "outgoing") svn path=/trunk/; revision=6114
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/mail-autofilter.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 88f95297a2..aca1bb2435 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2000-10-23 Jeffrey Stedfast <fejj@helixcode.com>
+
+ * mail-autofilter.c (filter_gui_add_from_message): Don't forget to
+ set the rule source! (eg "incoming", "demand", or "outgoing")
+
2000-10-22 Ettore Perazzoli <ettore@helixcode.com>
* message-list.c (message_list_init): Always display the vertical
diff --git a/mail/mail-autofilter.c b/mail/mail-autofilter.c
index 6b41e87d2e..4070f5fc4e 100644
--- a/mail/mail-autofilter.c
+++ b/mail/mail-autofilter.c
@@ -281,6 +281,10 @@ filter_gui_add_from_message(CamelMimeMessage *msg, int flags)
systemrules = g_strdup_printf("%s/evolution/filtertypes.xml", EVOLUTION_DATADIR);
rule_context_load((RuleContext *)fc, systemrules, userrules);
rule = filter_rule_from_message(fc, msg, flags);
+
+ /* FIXME: with demand filters being abandoned, do we still care about source? */
+ filter_rule_set_source (rule, FILTER_SOURCE_INCOMING);
+
rule_context_add_rule_gui((RuleContext *)fc, rule, _("Add Filter Rule"), userrules);
g_free (userrules);
g_free (systemrules);