From: Tollef Fog Heen Date: Sat, 28 Jun 2008 19:31:03 +0000 (+0200) Subject: Make search filter simpler; just look in all fields X-Git-Tag: 0.1~28 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91517d01a282100414985319bf74f10ccb9da6f3;p=eweouz Make search filter simpler; just look in all fields --- 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); }