aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filtertypes.xml
diff options
context:
space:
mode:
Diffstat (limited to 'filter/filtertypes.xml')
-rw-r--r--filter/filtertypes.xml141
1 files changed, 39 insertions, 102 deletions
diff --git a/filter/filtertypes.xml b/filter/filtertypes.xml
index 65fdb292e0..2d90f9eb87 100644
--- a/filter/filtertypes.xml
+++ b/filter/filtertypes.xml
@@ -162,7 +162,7 @@
<option value="not contains">
<title>does not contain</title>
<code>
- (match-all (not (header-contains "Subject" ${subject})))
+ (match-all (not (header-contains "Subject" ${subject}))))
</code>
</option>
<option value="is">
@@ -337,13 +337,13 @@
</code>
</option>
<option value="before">
- <title>is before</title>
+ <title>was before</title>
<code>
(match-all (&lt; (get-sent-date) ${versus}))
</code>
</option>
<option value="after">
- <title>is after</title>
+ <title>was after</title>
<code>
(match-all (&gt; (get-sent-date) ${versus}))
</code>
@@ -368,13 +368,13 @@
</code>
</option>
<option value="before">
- <title>is before</title>
+ <title>was before</title>
<code>
(match-all (&lt; (get-received-date) ${versus}))
</code>
</option>
<option value="after">
- <title>is after</title>
+ <title>was after</title>
<code>
(match-all (&gt; (get-received-date) ${versus}))
</code>
@@ -383,29 +383,10 @@
<input type="datespec" name="versus"/>
</part>
- <part name="label">
- <title>Label</title>
- <input type="optionlist" name="label-type">
- <option value="is">
- <title>is</title>
- <code>
- (match-all (= (get-label) ${versus}))
- </code>
- </option>
- <option value="is-not">
- <title>is not</title>
- <code>
- (match-all (not (= (get-label) ${versus})))
- </code>
- </option>
- </input>
- <input type="label" name="versus"/>
- </part>
-
<part name="score">
<title>Score</title>
<input type="optionlist" name="score-type">
- <option value="is">
+ <option value="less-than">
<title>is</title>
<code>
(match-all (= (get-score) ${versus}))
@@ -433,6 +414,7 @@
<input type="score" name="versus"/>
</part>
+
<part name="size">
<title>Size (kB)</title>
<input type="optionlist" name="size-type">
@@ -484,24 +466,6 @@
</input>
</part>
- <part name="follow-up">
- <title>Follow Up</title>
- <input type="optionlist" name="match-type">
- <option value="is">
- <title>is Flagged</title>
- <code>
- (match-all (not (= (user-tag "follow-up") "")))
- </code>
- </option>
- <option value="is not">
- <title>is not Flagged</title>
- <code>
- (match-all (= (user-tag "follow-up") ""))
- </code>
- </option>
- </input>
- </part>
-
<part name="attachments">
<title>Attachments</title>
<input type="optionlist" name="match-type">
@@ -523,21 +487,45 @@
<part name="mlist">
<title>Mailing list</title>
<input type="optionlist" name="mlist-type">
+ <option value="contains">
+ <title>contains</title>
+ <code>(match-all (header-contains "x-camel-mlist" ${mlist}))</code>
+ </option>
+ <option value="not contains">
+ <title>does not contain</title>
+ <code>(match-all (not (header-contains "x-camel-mlist" ${mlist})))</code>
+ </option>
<option value="is">
<title>is</title>
- <code>(match-all (header-matches "x-camel-mlist" ${mlist}))</code>
+ <code>(match-all (header-matches "x-camel-mlist" ${mlist}))</code>
</option>
<option value="is not">
<title>is not</title>
<code>(match-all (not (header-matches "x-camel-mlist" ${mlist})))</code>
</option>
- <option value="contains">
- <title>contains</title>
- <code>(match-all (header-contains "x-camel-mlist" ${mlist}))</code>
+ <option value="starts with">
+ <title>starts with</title>
+ <code>
+ (match-all (header-starts-with "x-camel-mlist" ${mlist}))
+ </code>
</option>
- <option value="not contains">
- <title>does not contain</title>
- <code>(match-all (not (header-contains "x-camel-mlist" ${mlist})))</code>
+ <option value="not starts with">
+ <title>does not start with</title>
+ <code>
+ (match-all (not (header-starts-with "x-camel-mlist" ${mlist})))
+ </code>
+ </option>
+ <option value="ends with">
+ <title>ends with</title>
+ <code>
+ (match-all (header-ends-with "x-camel-mlist" ${mlist}))
+ </code>
+ </option>
+ <option value="not ends with">
+ <title>does not end with</title>
+ <code>
+ (match-all (not (header-ends-with "x-camel-mlist" ${mlist})))
+ </code>
</option>
</input>
<input type="string" name="mlist"/>
@@ -580,39 +568,7 @@
</input>
<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>
@@ -645,11 +601,6 @@
<code>(set-score ${score})</code>
<input type="score" name="score"/>
</part>
- <part name="adj-score">
- <title>Adjust Score</title>
- <code>(adjust-score ${score})</code>
- <input type="score" name="score"/>
- </part>
<part name="set-status">
<title>Set Status</title>
<code>
@@ -673,19 +624,5 @@
</option>
</input>
</part>
- <part name="beep">
- <title>Beep</title>
- <code>(beep)</code>
- </part>
- <part name="play-sound">
- <title>Play Sound</title>
- <code>(play-sound ${sound})</code>
- <input type="string" name="sound"/>
- </part>
- <part name="shell-exec">
- <title>Execute Shell Command</title>
- <code>(shell-exec ${command})</code>
- <input type="string" name="command"/>
- </part>
</actionset>
</filterdescription>