aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filtertypes.xml
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/filtertypes.xml
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/filtertypes.xml')
-rw-r--r--filter/filtertypes.xml19
1 files changed, 19 insertions, 0 deletions
diff --git a/filter/filtertypes.xml b/filter/filtertypes.xml
index 7b168afe8c..aa2b9bbbfa 100644
--- a/filter/filtertypes.xml
+++ b/filter/filtertypes.xml
@@ -533,6 +533,25 @@
<input type="regex" name="expression"/>
</part>
+ <part name="source">
+ <title>Source Account</title>
+ <input type="optionlist" name="srcmatch-type">
+ <option value="is">
+ <title>Is</title>
+ <code>
+ (match-all (= (get-source) ${uri}))
+ </code>
+ </option>
+ <option value="is-not">
+ <title>Is Not</title>
+ <code>
+ (match-all (not (= (get-source) ${uri})))
+ </code>
+ </option>
+ </input>
+ <input type="source" name="uri"/>
+ </part>
+
</partset>