diff options
Diffstat (limited to 'filter/filtertypes.xml')
-rw-r--r-- | filter/filtertypes.xml | 79 |
1 files changed, 73 insertions, 6 deletions
diff --git a/filter/filtertypes.xml b/filter/filtertypes.xml index 930db4fc2a..6417ef261c 100644 --- a/filter/filtertypes.xml +++ b/filter/filtertypes.xml @@ -2,15 +2,31 @@ <filterdescription> <partset> <part name="sender"> - <title>Sender</title> + <title>Sender</title> <input type="optionlist" name="sender-type"> <option value="contains"> - <title>contains</title> - <code>(match-all (header-contains "From" ${sender}))</code> + <title>contains</title> + <code> + (match-all (header-contains "From" ${sender})) + </code> </option> <option value="not contains"> - <title>does not contain</title> - <code>(match-all (not (header-contains "From" ${sender})))</code> + <title>does not contain</title> + <code> + (match-all (not (header-contains "From" ${sender}))) + </code> + </option> + <option value="matches regex"> + <title>matches regex</title> + <code> + (match-all (header-regex "From" ${sender})) + </code> + </option> + <option value="not match regex"> + <title>does not match regex</title> + <code> + (match-all (not (header-regex "From" ${sender}))) + </code> </option> </input> <input type="string" name="sender"/> @@ -34,6 +50,21 @@ (header-contains "Cc" ${recipient})))) </code> </option> + <option value="matches regex"> + <title>matches regex</title> + <code> + (match-all (or (header-regex "To" ${recipient}) + (header-regex "Cc" ${recipient}))) + </code> + </option> + <option value="not match regex"> + <title>does not match regex</title> + <code> + (match-all (not (or + (header-regex "To" ${recipient}) + (header-regex "Cc" ${recipient})))) + </code> + </option> </input> <input type="address" name="recipient"/> </part> @@ -53,6 +84,18 @@ (match-all (not (header-contains "Subject" ${subject}))) </code> </option> + <option value="matches regex"> + <title>matches regex</title> + <code> + (match-all (header-regex "Subject" ${subject})) + </code> + </option> + <option value="not match regex"> + <title>does not match regex</title> + <code> + (match-all (not (header-regex "Subject" ${subject})) + </code> + </option> </input> <input type="string" name="subject"/> </part> @@ -73,6 +116,18 @@ (match-all (not (header-contains ${header-field} ${word}))) </code> </option> + <option value="matches regex"> + <title>matches regex</title> + <code> + (match-all (header-regex ${header-field} ${word})) + </code> + </option> + <option value="not match regex"> + <title>does not match regex</title> + <code> + (match-all (not (header-regex ${header-field} ${word})) + </code> + </option> </input> <input type="string" name="word"/> </part> @@ -89,7 +144,19 @@ <option value="not contains"> <title>does not contain</title> <code> - (not (body-contains "Subject" ${word})) + (not (body-contains ${word})) + </code> + </option> + <option value="matches regex"> + <title>matches regex</title> + <code> + (body-regex ${word}) + </code> + </option> + <option value="not match regex"> + <title>does not match regex</title> + <code> + (not (body-regex ${word})) </code> </option> </input> |