From 91517d01a282100414985319bf74f10ccb9da6f3 Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Sat, 28 Jun 2008 21:31:03 +0200 Subject: [PATCH] Make search filter simpler; just look in all fields --- src/dump-addressbook.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/dump-addressbook.c b/src/dump-addressbook.c index b92f05e..10c7c4b 100644 --- a/src/dump-addressbook.c +++ b/src/dump-addressbook.c @@ -83,11 +83,7 @@ int main(int argc, char **argv) } if (search_filter != NULL) { - char *qu = g_strdup_printf ("(or (contains \"email\" \"%s\") " - "(contains \"full_name\" \"%s\"))", - *search_filter, *search_filter); - query = e_book_query_from_string(qu); - g_free(qu); + query = e_book_query_any_field_contains(*search_filter); } else { query = e_book_query_field_exists(E_CONTACT_FULL_NAME); } -- 2.39.5