aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ui-tests/filterdescription.xml
diff options
context:
space:
mode:
authorNotZed <NotZed@HelixCode.com>2000-03-01 04:16:02 +0800
committerMichael Zucci <zucchi@src.gnome.org>2000-03-01 04:16:02 +0800
commit2f6721bf5bd7d5c853279db40b1fb15ded4745a2 (patch)
tree85dbacdbe5f2dbd5001232097c1678bccb0b69da /tests/ui-tests/filterdescription.xml
parent0fc90057e65e8a62a5a48753e818eb51eb2caa2c (diff)
downloadgsoc2013-evolution-2f6721bf5bd7d5c853279db40b1fb15ded4745a2.tar
gsoc2013-evolution-2f6721bf5bd7d5c853279db40b1fb15ded4745a2.tar.gz
gsoc2013-evolution-2f6721bf5bd7d5c853279db40b1fb15ded4745a2.tar.bz2
gsoc2013-evolution-2f6721bf5bd7d5c853279db40b1fb15ded4745a2.tar.lz
gsoc2013-evolution-2f6721bf5bd7d5c853279db40b1fb15ded4745a2.tar.xz
gsoc2013-evolution-2f6721bf5bd7d5c853279db40b1fb15ded4745a2.tar.zst
gsoc2013-evolution-2f6721bf5bd7d5c853279db40b1fb15ded4745a2.zip
Added test program.
2000-02-29 NotZed <NotZed@HelixCode.com> * tests/ui-tests/Makefile.am (filter_LDADD): Added test program. * tests/ui-tests/filterdescription.xml, saveoptions.xml: Data files for test program. * tests/ui-tests/filter.c (main): Test program for filter ui. svn path=/trunk/; revision=1992
Diffstat (limited to 'tests/ui-tests/filterdescription.xml')
-rw-r--r--tests/ui-tests/filterdescription.xml81
1 files changed, 81 insertions, 0 deletions
diff --git a/tests/ui-tests/filterdescription.xml b/tests/ui-tests/filterdescription.xml
new file mode 100644
index 0000000000..684e1e085f
--- /dev/null
+++ b/tests/ui-tests/filterdescription.xml
@@ -0,0 +1,81 @@
+<?xml version="1.0"?>
+<filterdescription>
+<ruleset type="match">
+<rule name="from-address">
+ <code>
+ (match-all (header-contains "From" ${sender}))
+ </code>
+ <description lang="en">When the from address matches <source type="address" name="sender">sender(s)</source>.</description>
+</rule>
+
+<rule name="to-address">
+ <code>
+ (match-all (header-contains "To" ${receipient}))
+ </code>
+ <description lang="en">When the to address matches <source type="address" name="receipient">receipients</source>.</description>
+</rule>
+
+<rule name="cc-address">
+ <code>
+ (match-all (header-contains "CC" ${self-email}))
+ </code>
+ <description lang="en">When I am in the cc list.</description>
+</rule>
+
+<rule name="msg-size">
+ <code>
+ (&amp; (&gt; message-size (size-lower size-range))
+ (&lt; message-size (size-uppwer size-range)))
+ </code>
+ <description lang="en">When the message is a <source type="size-range" name="size">certain size</source>.</description>
+</rule>
+</ruleset>
+
+<ruleset type="action">
+<rule name="copy-me">
+ <code>
+ (copy-to ${folder})
+ </code>
+ <description language="en">Send me a copy, to <source type="folder" name="folder">folder</source>.</description>
+</rule>
+</ruleset>
+
+<ruleset type="except">
+<rule name="except-me">
+ <code>
+ (match-all (not (header-contains "To" "zucchi@zedzone")))
+ </code>
+ <description language="en">When I am the receipient.</description>
+</rule>
+</ruleset>
+
+<optionset>
+ <option type="receive">
+ <description language="en">When a message arrives.</description>
+ </option>
+ <option type="send">
+ <description language="en">When a message is sent.</description>
+ </option>
+ <option type="receive">
+ <description language="en">Copy incoming messages from a certain address to specific folder.</description>
+ <optionrule type="match" rule="from-address"/>
+ <optionrule type="action" rule="copy-me"/>
+ </option>
+ <option type="send">
+ <description language="en">Copy sent messages to a specific folder.</description>
+ <optionrule type="action" rule="copy-me"/>
+ </option>
+ <option type="send">
+ <description language="en">Copy messages to me and others to a specific folder.</description>
+ <optionrule type="match" rule="from-address">
+ <optionvalue name="sender">
+ <address name="zucchi" email="zucchi@zedzone"/>
+ <address name="foo" email="bar"/>
+ </optionvalue>
+ </optionrule>
+ <optionrule type="match" rule="to-address"/>
+ <optionrule type="match" rule="cc-address"/>
+ <optionrule type="action" rule="copy-me"/>
+ </option>
+</optionset>
+</filterdescription>