aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-element.c
diff options
context:
space:
mode:
authorJon Trowbridge <trow@gnu.org>2001-04-14 06:08:03 +0800
committerJon Trowbridge <trow@src.gnome.org>2001-04-14 06:08:03 +0800
commit0eb8afc1d0cfa27d020a4191f44e400c714d190c (patch)
treeb3629148572fa1f1ee1982e8359faed15245d74b /filter/filter-element.c
parent546128c8d99b1edd859ba5d8b57549550b910a1d (diff)
downloadgsoc2013-evolution-0eb8afc1d0cfa27d020a4191f44e400c714d190c.tar
gsoc2013-evolution-0eb8afc1d0cfa27d020a4191f44e400c714d190c.tar.gz
gsoc2013-evolution-0eb8afc1d0cfa27d020a4191f44e400c714d190c.tar.bz2
gsoc2013-evolution-0eb8afc1d0cfa27d020a4191f44e400c714d190c.tar.lz
gsoc2013-evolution-0eb8afc1d0cfa27d020a4191f44e400c714d190c.tar.xz
gsoc2013-evolution-0eb8afc1d0cfa27d020a4191f44e400c714d190c.tar.zst
gsoc2013-evolution-0eb8afc1d0cfa27d020a4191f44e400c714d190c.zip
Make the (previously unused) get-source command actually do the right
2001-04-13 Jon Trowbridge <trow@gnu.org> * camel-filter-search.c (get_source): Make the (previously unused) get-source command actually do the right thing, properly shrouding any passed-in source and falling back to use the source attached to the mime message. 2001-04-13 Jon Trowbridge <trow@gnu.org> * filtertypes.xml: Add XML specs for source account filtering. * filter-element.c (filter_element_new_type_name): Recognize type "source", construct a FilterSource. * filter-source.c: Added. A FilterElement for the account e-mail comes from. svn path=/trunk/; revision=9304
Diffstat (limited to 'filter/filter-element.c')
-rw-r--r--filter/filter-element.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/filter/filter-element.c b/filter/filter-element.c
index dd7a7167bb..7aa3b654d6 100644
--- a/filter/filter-element.c
+++ b/filter/filter-element.c
@@ -33,6 +33,7 @@
#include "filter-datespec.h"
#include "filter-score.h"
#include "filter-folder.h"
+#include "filter-source.h"
static gboolean validate (FilterElement *fe);
@@ -266,6 +267,8 @@ filter_element_new_type_name (const char *type)
return (FilterElement *)filter_score_new ();
} else if (!strcmp (type, "regex")) {
return (FilterElement *)filter_input_new_type_name (type);
+ } else if (!strcmp (type, "source")) {
+ return (FilterElement *)filter_source_new ();
} else {
g_warning("Unknown filter type '%s'", type);
return 0;