diff options
Diffstat (limited to 'filter/filtertypes.xml')
-rw-r--r-- | filter/filtertypes.xml | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/filter/filtertypes.xml b/filter/filtertypes.xml index 6766f4bf3b..f1aa389ab1 100644 --- a/filter/filtertypes.xml +++ b/filter/filtertypes.xml @@ -16,6 +16,18 @@ (match-all (not (header-contains "From" ${sender}))) </code> </option> + <option value="is"> + <title>is</title> + <code> + (match-all (header-matches "From" ${sender})) + </code> + </option> + <option value="is not"> + <title>is not</title> + <code> + (match-all (not (header-matches "From" ${sender}))) + </code> + </option> <option value="matches regex"> <title>matches regex</title> <code> @@ -50,6 +62,21 @@ (header-contains "Cc" ${recipient})))) </code> </option> + <option value="is"> + <title>is</title> + <code> + (match-all (or (header-matches "To" ${recipient}) + (header-matches "Cc" ${recipient}))) + </code> + </option> + <option value="is not"> + <title>is not</title> + <code> + (match-all (not (or + (header-matches "To" ${recipient}) + (header-matches "Cc" ${recipient})))) + </code> + </option> <option value="matches regex"> <title>matches regex</title> <code> @@ -84,6 +111,18 @@ (match-all (not (header-contains "Subject" ${subject}))) </code> </option> + <option value="is"> + <title>is</title> + <code> + (match-all (header-matches "Subject" ${subject})) + </code> + </option> + <option value="is not"> + <title>is not</title> + <code> + (match-all (not (header-matches "Subject" ${subject})) + </code> + </option> <option value="matches regex"> <title>matches regex</title> <code> @@ -116,6 +155,18 @@ (match-all (not (header-contains ${header-field} ${word}))) </code> </option> + <option value="is"> + <title>is</title> + <code> + (match-all (header-matches ${header-field} ${word})) + </code> + </option> + <option value="is not"> + <title>is not</title> + <code> + (match-all (not (header-matches ${header-field} ${word})) + </code> + </option> <option value="matches regex"> <title>matches regex</title> <code> |