aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--filter/ChangeLog5
-rw-r--r--filter/filtertypes.xml21
2 files changed, 26 insertions, 0 deletions
diff --git a/filter/ChangeLog b/filter/ChangeLog
index d8a1f75ed3..35b06ab956 100644
--- a/filter/ChangeLog
+++ b/filter/ChangeLog
@@ -1,3 +1,8 @@
+2000-09-11 Jeffrey Stedfast <fejj@helixcode.com>
+
+ * filtertypes.xml: Updated to allow the user to specify arbitrary
+ headers.
+
2000-09-09 Jeffrey Stedfast <fejj@helixcode.com>
* filter-driver.c (filter_driver_run): Fixed a logic error. Only
diff --git a/filter/filtertypes.xml b/filter/filtertypes.xml
index 791e566a85..7574540ba4 100644
--- a/filter/filtertypes.xml
+++ b/filter/filtertypes.xml
@@ -54,6 +54,27 @@
</input>
<input type="string" name="subject"/>
</part>
+
+ <part name="header">
+ <title>Header</title>
+ <input type="string" name="header-field"/>
+ <input type="optionlist" name="header-type">
+ <option value="contains">
+ <title>contains</title>
+ <code>
+ (match-all (header-contains ${header-field} ${subject}))
+ </code>
+ </option>
+ <option value="not contains">
+ <title>does not contain</title>
+ <code>
+ (match-all (not (header-contains ${header-field} ${subject})))
+ </code>
+ </option>
+ </input>
+ <input type="string" name="subject"/>
+ </part>
+
<part name="body">
<title>Message Body</title>
<input type="optionlist" name="body-type">