aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-07-06 10:15:30 +0800
committerDan Winship <danw@src.gnome.org>2000-07-06 10:15:30 +0800
commit6003a18e8970367021fbddbac8167536bb952ed5 (patch)
tree63b3ac3e4c979d6a79d1b9c356da4095151baebe
parent9084c9b5ce21d307f870875d9c75753d05dc1fe5 (diff)
downloadgsoc2013-evolution-6003a18e8970367021fbddbac8167536bb952ed5.tar
gsoc2013-evolution-6003a18e8970367021fbddbac8167536bb952ed5.tar.gz
gsoc2013-evolution-6003a18e8970367021fbddbac8167536bb952ed5.tar.bz2
gsoc2013-evolution-6003a18e8970367021fbddbac8167536bb952ed5.tar.lz
gsoc2013-evolution-6003a18e8970367021fbddbac8167536bb952ed5.tar.xz
gsoc2013-evolution-6003a18e8970367021fbddbac8167536bb952ed5.tar.zst
gsoc2013-evolution-6003a18e8970367021fbddbac8167536bb952ed5.zip
make header matching case-insensitive
* camel-folder-search.c (search_header_contains): make header matching case-insensitive svn path=/trunk/; revision=3906
-rw-r--r--camel/ChangeLog3
-rw-r--r--camel/camel-folder-search.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 37e7454f1c..227dbbe5dc 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,5 +1,8 @@
2000-07-05 Dan Winship <danw@helixcode.com>
+ * camel-folder-search.c (search_header_contains): make header
+ matching case-insensitive
+
* camel-folder-summary.c:
* camel-session.c:
* providers/mbox/camel-mbox-folder.c:
diff --git a/camel/camel-folder-search.c b/camel/camel-folder-search.c
index 0162de0a80..e065316ef7 100644
--- a/camel/camel-folder-search.c
+++ b/camel/camel-folder-search.c
@@ -28,6 +28,7 @@
#include <glib.h>
#include "camel-folder-search.h"
+#include "string-utils.h"
#define d(x)
#define r(x)
@@ -381,7 +382,7 @@ search_header_contains(struct _ESExp *f, int argc, struct _ESExpResult **argv, C
/* performs an OR of all words */
for (i=1;i<argc && !truth;i++) {
if (argv[i]->type == ESEXP_RES_STRING
- && strstr(header, argv[i]->value.string)) {
+ && strstrcase(header, argv[i]->value.string)) {
r(printf("%s got a match with %s of %s\n", search->current->uid, header, argv[i]->value.string));
truth = TRUE;
break;