aboutsummaryrefslogtreecommitdiffstats
path: root/filter/vfoldertypes.xml
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2001-01-02 07:05:35 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-01-02 07:05:35 +0800
commitf561a84cdea45210b991faeddf908d7529d1592b (patch)
tree5b06a1f426e353e005c4b6c36cf8c1f68e761a83 /filter/vfoldertypes.xml
parent2f2faca992bfb471a2fb5717f5e50792744732a1 (diff)
downloadgsoc2013-evolution-f561a84cdea45210b991faeddf908d7529d1592b.tar
gsoc2013-evolution-f561a84cdea45210b991faeddf908d7529d1592b.tar.gz
gsoc2013-evolution-f561a84cdea45210b991faeddf908d7529d1592b.tar.bz2
gsoc2013-evolution-f561a84cdea45210b991faeddf908d7529d1592b.tar.lz
gsoc2013-evolution-f561a84cdea45210b991faeddf908d7529d1592b.tar.xz
gsoc2013-evolution-f561a84cdea45210b991faeddf908d7529d1592b.tar.zst
gsoc2013-evolution-f561a84cdea45210b991faeddf908d7529d1592b.zip
Use e_utf8_strstrcase() instead of just strstr(). (header_starts_with):
2000-12-21 Jeffrey Stedfast <fejj@helixcode.com> * filter-message-search.c (header_contains): Use e_utf8_strstrcase() instead of just strstr(). (header_starts_with): Make sure that the header contents are longer than the starts-with string. * vfoldertypes.xml: Don't send \"Subject\" to body-contains. Also added matches, starts-with, and ends-with xml stuff. svn path=/trunk/; revision=7204
Diffstat (limited to 'filter/vfoldertypes.xml')
-rw-r--r--filter/vfoldertypes.xml119
1 files changed, 117 insertions, 2 deletions
diff --git a/filter/vfoldertypes.xml b/filter/vfoldertypes.xml
index 84d06964c4..36157e6ffc 100644
--- a/filter/vfoldertypes.xml
+++ b/filter/vfoldertypes.xml
@@ -12,9 +12,42 @@
<title>does not contain</title>
<code>(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="starts with">
+ <title>starts with</title>
+ <code>
+ (match-all (header-starts-with "From" ${sender}))
+ </code>
+ </option>
+ <option value="not starts with">
+ <title>does not start with</title>
+ <code>
+ (match-all (not (header-starts-with "From" ${sender})))
+ </code>
+ </option>
+ <option value="ends with">
+ <title>ends with</title>
+ <code>
+ (match-all (header-ends-with "From" ${sender}))
+ </code>
+ </option>
+ <option value="not ends with">
+ <title>does not end with</title>
+ <code>
+ (match-all (not (header-ends-with "From" ${sender})))
+ </code>
+ </option>
</input>
<input type="string" name="sender"/>
</part>
+
<part name="to">
<title>Recipients</title>
<input type="optionlist" name="recipient-type">
@@ -33,9 +66,55 @@
(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="starts with">
+ <title>starts with</title>
+ <code>
+ (match-all (or (header-starts-with "To" ${recipient})
+ (header-starts-with "Cc" ${recipient})))
+ </code>
+ </option>
+ <option value="not starts with">
+ <title>does not start with</title>
+ <code>
+ (match-all (not (or
+ (header-starts-with "To" ${recipient})
+ (header-starts-with "Cc" ${recipient}))))
+ </code>
+ </option>
+ <option value="ends with">
+ <title>ends with</title>
+ <code>
+ (match-all (or (header-ends-with "To" ${recipient})
+ (header-ends-with "Cc" ${recipient})))
+ </code>
+ </option>
+ <option value="not ends with">
+ <title>does not end with</title>
+ <code>
+ (match-all (not (or
+ (header-ends-with "To" ${recipient})
+ (header-ends-with "Cc" ${recipient}))))
+ </code>
+ </option>
</input>
<input type="address" name="recipient"/>
</part>
+
<part name="subject">
<title>Subject</title>
<input type="optionlist" name="subject-type">
@@ -51,6 +130,42 @@
(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="starts with">
+ <title>starts with</title>
+ <code>
+ (match-all (header-starts-with "Subject" ${subject}))
+ </code>
+ </option>
+ <option value="not starts with">
+ <title>does not start with</title>
+ <code>
+ (match-all (not (header-starts-with "Subject" ${subject}))
+ </code>
+ </option>
+ <option value="ends with">
+ <title>ends with</title>
+ <code>
+ (match-all (header-ends-with "Subject" ${subject}))
+ </code>
+ </option>
+ <option value="not ends with">
+ <title>does not end with</title>
+ <code>
+ (match-all (not (header-ends-with "Subject" ${subject}))
+ </code>
+ </option>
</input>
<input type="string" name="subject"/>
</part>
@@ -66,7 +181,7 @@
<option value="not contains">
<title>does not contain</title>
<code>
- (not (body-contains "Subject" ${word}))
+ (not (body-contains ${word}))
</code>
</option>
</input>
@@ -136,7 +251,7 @@
(match-all (not (&lt; (get-received-date) ${versus})))
</code>
</option>
- </input>
+ </input>
<input type="datespec" name="versus">
</input>
</part>