aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filtertypes.xml
diff options
context:
space:
mode:
Diffstat (limited to 'filter/filtertypes.xml')
-rw-r--r--filter/filtertypes.xml15
1 files changed, 15 insertions, 0 deletions
diff --git a/filter/filtertypes.xml b/filter/filtertypes.xml
index f93a7b9c35..034164bb0f 100644
--- a/filter/filtertypes.xml
+++ b/filter/filtertypes.xml
@@ -22,6 +22,13 @@
<description lang="en">The Subject contains <source type="folder" name="words">words</source>.</description>
</rule>
+<rule name="body-contains">
+ <code>
+ (match-all (body-contains ${words}))
+ </code>
+ <description lang="en">The body contains <source type="folder" name="words">words</source>.</description>
+</rule>
+
<rule name="cc-address">
<code>
(match-all (header-contains "CC" ${self-email}))
@@ -72,6 +79,14 @@
</code>
<description language="en">When I am the receipient.</description>
</rule>
+
+<rule name="not-body-contains">
+ <code>
+ (match-all (not (body-contains ${words})))
+ </code>
+ <description lang="en">The body does not contain <source type="folder" name="words">words</source>.</description>
+</rule>
+
</ruleset>
<optionset>