diff options
Diffstat (limited to 'camel/camel-folder-search.c')
-rw-r--r-- | camel/camel-folder-search.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/camel/camel-folder-search.c b/camel/camel-folder-search.c index aa3da63f3a..9d6f80d256 100644 --- a/camel/camel-folder-search.c +++ b/camel/camel-folder-search.c @@ -25,6 +25,7 @@ #include <stdio.h> #include <string.h> +#include <glib.h> #include "camel-folder-search.h" @@ -357,15 +358,15 @@ search_header_contains(struct _ESExp *f, int argc, struct _ESExpResult **argv, C /* only a subset of headers are supported .. */ headername = argv[0]->value.string; - if (!strcasecmp(headername, "subject")) { + if (!g_strcasecmp(headername, "subject")) { header = search->current->subject; - } else if (!strcasecmp(headername, "date")) { + } else if (!g_strcasecmp(headername, "date")) { /* FIXME: not a very useful form of the date */ sprintf(strbuf, "%d", (int)search->current->date_sent); header = strbuf; - } else if (!strcasecmp(headername, "from")) { + } else if (!g_strcasecmp(headername, "from")) { header = search->current->from; - } else if (!strcasecmp(headername, "to")) { + } else if (!g_strcasecmp(headername, "to")) { header = search->current->from; } else { g_warning("Performing query on unknown header: %s", headername); |