diff options
author | Jeffrey Stedfast <fejj@helixcode.com> | 2000-10-28 06:20:55 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2000-10-28 06:20:55 +0800 |
commit | ba3744e5c73066aeaf922d901dd8e4540e26d03a (patch) | |
tree | d73e7d1775976190063f194c42b62310bf3acb48 /filter/filtertypes.xml | |
parent | 201718d5533f383f65790a7fa7a8f0b4284936d4 (diff) | |
download | gsoc2013-evolution-ba3744e5c73066aeaf922d901dd8e4540e26d03a.tar gsoc2013-evolution-ba3744e5c73066aeaf922d901dd8e4540e26d03a.tar.gz gsoc2013-evolution-ba3744e5c73066aeaf922d901dd8e4540e26d03a.tar.bz2 gsoc2013-evolution-ba3744e5c73066aeaf922d901dd8e4540e26d03a.tar.lz gsoc2013-evolution-ba3744e5c73066aeaf922d901dd8e4540e26d03a.tar.xz gsoc2013-evolution-ba3744e5c73066aeaf922d901dd8e4540e26d03a.tar.zst gsoc2013-evolution-ba3744e5c73066aeaf922d901dd8e4540e26d03a.zip |
Added header-starts-with, header-ends-with, and header-exists menu items.
2000-10-27 Jeffrey Stedfast <fejj@helixcode.com>
* filtertypes.xml: Added header-starts-with, header-ends-with, and
header-exists menu items.
* filter-message-search.c (header_starts_with): New callback to
match the beginnings of headers.
(header_ends_with): New callback to match the ends of headers.
(header_exists): New callback to determine if a header exists
which is useful when filtering out all those pesky bug-buddy
emails!
svn path=/trunk/; revision=6242
Diffstat (limited to 'filter/filtertypes.xml')
-rw-r--r-- | filter/filtertypes.xml | 115 |
1 files changed, 115 insertions, 0 deletions
diff --git a/filter/filtertypes.xml b/filter/filtertypes.xml index f1aa389ab1..38723dbf98 100644 --- a/filter/filtertypes.xml +++ b/filter/filtertypes.xml @@ -28,6 +28,31 @@ (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> <option value="matches regex"> <title>matches regex</title> <code> @@ -77,6 +102,36 @@ (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> <option value="matches regex"> <title>matches regex</title> <code> @@ -123,6 +178,30 @@ (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> <option value="matches regex"> <title>matches regex</title> <code> @@ -167,6 +246,42 @@ (match-all (not (header-matches ${header-field} ${word})) </code> </option> + <option value="starts with"> + <title>starts with</title> + <code> + (match-all (header-starts-with ${header-field} ${word})) + </code> + </option> + <option value="not starts with"> + <title>does not start with</title> + <code> + (match-all (not (header-starts-with ${header-field} ${word})) + </code> + </option> + <option value="ends with"> + <title>ends with</title> + <code> + (match-all (header-ends-with ${header-field} ${word})) + </code> + </option> + <option value="not ends with"> + <title>does not end with</title> + <code> + (match-all (not (header-ends-with ${header-field} ${word})) + </code> + </option> + <option value="exists"> + <title>exists</title> + <code> + (match-all (header-exists ${header-field})) + </code> + </option> + <option value="not exists"> + <title>does not exist</title> + <code> + (match-all (not (header-exists ${header-field})) + </code> + </option> <option value="matches regex"> <title>matches regex</title> <code> |