aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--filter/ChangeLog7
-rw-r--r--filter/filtertypes.xml15
-rw-r--r--filter/vfoldertypes.xml12
3 files changed, 34 insertions, 0 deletions
diff --git a/filter/ChangeLog b/filter/ChangeLog
index cb9562d284..cd7acabaee 100644
--- a/filter/ChangeLog
+++ b/filter/ChangeLog
@@ -1,3 +1,10 @@
+2000-05-30 Not Zed <NotZed@HelixCode.com>
+
+ * filtertypes.xml: And here too.
+
+ * vfoldertypes.xml: Add body-contains and not-body-contains
+ types.
+
2000-05-27 Not Zed <NotZed@HelixCode.com>
* vfoldertypes.xml: New file - lists rules appropriate for
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>
diff --git a/filter/vfoldertypes.xml b/filter/vfoldertypes.xml
index bb12220d31..505a5948e1 100644
--- a/filter/vfoldertypes.xml
+++ b/filter/vfoldertypes.xml
@@ -21,6 +21,12 @@
</code>
<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>
@@ -38,6 +44,12 @@
</code>
<description language="en">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>