aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filtertypes.xml
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-05-10 07:14:33 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-05-10 07:14:33 +0800
commita23d192991b3abfa64b447a2eaa5219757599e3e (patch)
tree86e8326b22522674658dd3f6b9303903b09f1b42 /filter/filtertypes.xml
parent57a877702667674f5ddb845c1c7d4378866c391c (diff)
downloadgsoc2013-evolution-a23d192991b3abfa64b447a2eaa5219757599e3e.tar
gsoc2013-evolution-a23d192991b3abfa64b447a2eaa5219757599e3e.tar.gz
gsoc2013-evolution-a23d192991b3abfa64b447a2eaa5219757599e3e.tar.bz2
gsoc2013-evolution-a23d192991b3abfa64b447a2eaa5219757599e3e.tar.lz
gsoc2013-evolution-a23d192991b3abfa64b447a2eaa5219757599e3e.tar.xz
gsoc2013-evolution-a23d192991b3abfa64b447a2eaa5219757599e3e.tar.zst
gsoc2013-evolution-a23d192991b3abfa64b447a2eaa5219757599e3e.zip
Add filter-file.[c,h] to the build.
2002-05-09 Jeffrey Stedfast <fejj@ximian.com> * Makefile.am: Add filter-file.[c,h] to the build. * filtertypes.xml: Add a "Command" filter rule. * filter-element.c (filter_element_new_type_name): Add support for type "command" which uses the new FilterFile widget. svn path=/trunk/; revision=16739
Diffstat (limited to 'filter/filtertypes.xml')
-rw-r--r--filter/filtertypes.xml32
1 files changed, 32 insertions, 0 deletions
diff --git a/filter/filtertypes.xml b/filter/filtertypes.xml
index f6f0ce2abe..2ef34da1c5 100644
--- a/filter/filtertypes.xml
+++ b/filter/filtertypes.xml
@@ -562,6 +562,38 @@
<input type="source" name="source"/>
</part>
+ <part name="command">
+ <title>Command</title>
+ <input type="command" name="command"/>
+ <input type="optionlist" name="retval-type">
+ <option value="is">
+ <title>is</title>
+ <code>
+ (match-all (= (shell-exec ${command}) ${retval}))
+ </code>
+ </option>
+ <option value="is-not">
+ <title>is not</title>
+ <code>
+ (match-all (not (= (shell-exec ${command}) ${retval})))
+ </code>
+ </option>
+ <option value="greater-than">
+ <title>is greater than</title>
+ <code>
+ (match-all (&gt; (shell-exec ${command}) ${retval}))
+ </code>
+ </option>
+ <option value="less-than">
+ <title>is less than</title>
+ <code>
+ (match-all (&lt; (shell-exec ${command}) ${retval}))
+ </code>
+ </option>
+ </input>
+ <input type="integer" name="retval"/>
+ </part>
+
</partset>