16 lines
674 B
Diff
16 lines
674 B
Diff
diff --git a/camel/camel-search-sql-sexp.c b/camel/camel-search-sql-sexp.c
|
|
index b1f2c27..d3e561d 100644
|
|
--- a/camel/camel-search-sql-sexp.c
|
|
+++ b/camel/camel-search-sql-sexp.c
|
|
@@ -363,7 +363,9 @@ check_header (struct _ESExp *f, int argc, struct _ESExpResult **argv, void *data
|
|
value = get_db_safe_string (tstr);
|
|
g_free (tstr);
|
|
} else if (how == CAMEL_SEARCH_MATCH_EXACT) {
|
|
- value = get_db_safe_string(argv[i]->value.string);
|
|
+ tstr = g_strdup_printf ("%c%s%c", '%', argv[i]->value.string, '%');
|
|
+ value = get_db_safe_string (tstr);
|
|
+ g_free (tstr);
|
|
}
|
|
str = g_strdup_printf("(%s LIKE %s)", headername, value);
|
|
g_free(value);
|