diff options
author | Jeffrey Stedfast <fejj@helixcode.com> | 2000-11-01 07:38:22 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2000-11-01 07:38:22 +0800 |
commit | 1d60c5cc024dd69b2f0d776bd0f48d1af7fef08b (patch) | |
tree | 0b5cc1f65dabbe75a2d41c1b234808d71b34aab2 /filter/filtertypes.xml | |
parent | 92fd4e32e42e6d30f1f37bbec5a00756c2692ce5 (diff) | |
download | gsoc2013-evolution-1d60c5cc024dd69b2f0d776bd0f48d1af7fef08b.tar gsoc2013-evolution-1d60c5cc024dd69b2f0d776bd0f48d1af7fef08b.tar.gz gsoc2013-evolution-1d60c5cc024dd69b2f0d776bd0f48d1af7fef08b.tar.bz2 gsoc2013-evolution-1d60c5cc024dd69b2f0d776bd0f48d1af7fef08b.tar.lz gsoc2013-evolution-1d60c5cc024dd69b2f0d776bd0f48d1af7fef08b.tar.xz gsoc2013-evolution-1d60c5cc024dd69b2f0d776bd0f48d1af7fef08b.tar.zst gsoc2013-evolution-1d60c5cc024dd69b2f0d776bd0f48d1af7fef08b.zip |
Updated to allow the user to select "sounds like" or "does not sound like"
2000-10-31 Jeffrey Stedfast <fejj@helixcode.com>
* filtertypes.xml: Updated to allow the user to select "sounds
like" or "does not sound like" (uses header-soundex).
* filter-message-search.c (header_matches): Oops. Should be using
!g_strncasecmp. This should fix it so this filter match works
right.
(header_starts_with): Same.
(header_ends_with): Same.
(header_soundex): New filter callback for soundex matching (yes,
it's probably a bloated feature but hey, it was fun to code)
svn path=/trunk/; revision=6302
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 9b6946c030..3fa396f57b 100644 --- a/filter/filtertypes.xml +++ b/filter/filtertypes.xml @@ -52,6 +52,18 @@ (match-all (not (header-ends-with "From" ${sender}))) </code> </option> + <option value="matches soundex"> + <title>sounds like</title> + <code> + (match-all (header-soundex "From" ${sender})) + </code> + </option> + <option value="not match soundex"> + <title>does not sound like</title> + <code> + (match-all (not (header-soundex "From" ${sender}))) + </code> + </option> <option value="matches regex"> <title>matches regex</title> <code> @@ -131,6 +143,21 @@ (header-ends-with "Cc" ${recipient})))) </code> </option> + <option value="matches soundex"> + <title>sounds like</title> + <code> + (match-all (or (header-soundex "To" ${recipient}) + (header-soundex "Cc" ${recipient}))) + </code> + </option> + <option value="not match soundex"> + <title>does not sound like</title> + <code> + (match-all (not (or + (header-soundex "To" ${recipient}) + (header-soundex "Cc" ${recipient})))) + </code> + </option> <option value="matches regex"> <title>matches regex</title> <code> @@ -201,6 +228,18 @@ (match-all (not (header-ends-with "Subject" ${subject})) </code> </option> + <option value="matches soundex"> + <title>sounds like</title> + <code> + (match-all (header-soundex "Subject" ${subject})) + </code> + </option> + <option value="not match soundex"> + <title>does not sound like</title> + <code> + (match-all (not (header-soundex "Subject" ${subject}))) + </code> + </option> <option value="matches regex"> <title>matches regex</title> <code> @@ -281,6 +320,18 @@ (match-all (not (header-exists ${header-field})) </code> </option> + <option value="matches soundex"> + <title>sounds like</title> + <code> + (match-all (header-soundex ${header-field} ${word})) + </code> + </option> + <option value="not match soundex"> + <title>does not sound like</title> + <code> + (match-all (not (header-soundex ${header-field} ${word}))) + </code> + </option> <option value="matches regex"> <title>matches regex</title> <code> |