aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filtertypes.xml
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-10-28 05:42:52 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-10-28 05:42:52 +0800
commite3566a474cdade04088e6789b694287e3f1072fb (patch)
treebae90c5ebdc2d62ff4e31883efdd00c52a255d27 /filter/filtertypes.xml
parent7b8d4345fe3671e0d6fe0dab23ba1212d564a172 (diff)
downloadgsoc2013-evolution-e3566a474cdade04088e6789b694287e3f1072fb.tar
gsoc2013-evolution-e3566a474cdade04088e6789b694287e3f1072fb.tar.gz
gsoc2013-evolution-e3566a474cdade04088e6789b694287e3f1072fb.tar.bz2
gsoc2013-evolution-e3566a474cdade04088e6789b694287e3f1072fb.tar.lz
gsoc2013-evolution-e3566a474cdade04088e6789b694287e3f1072fb.tar.xz
gsoc2013-evolution-e3566a474cdade04088e6789b694287e3f1072fb.tar.zst
gsoc2013-evolution-e3566a474cdade04088e6789b694287e3f1072fb.zip
Add header-matches expressions ("is" / "is not").
2000-10-27 Jeffrey Stedfast <fejj@helixcode.com> * filtertypes.xml: Add header-matches expressions ("is" / "is not"). * filter-message-search.c (header_matches): New callback to match headers exactly (aka strcmp rather than strstr). svn path=/trunk/; revision=6240
Diffstat (limited to 'filter/filtertypes.xml')
-rw-r--r--filter/filtertypes.xml51
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>