]> err.no Git - eweouz/commitdiff
Make search filter simpler; just look in all fields
authorTollef Fog Heen <tfheen@err.no>
Sat, 28 Jun 2008 19:31:03 +0000 (21:31 +0200)
committerTollef Fog Heen <tfheen@err.no>
Sat, 28 Jun 2008 19:31:03 +0000 (21:31 +0200)
src/dump-addressbook.c

index b92f05ed6238c9af21961bba1a4ed584b6212aa9..10c7c4bd3ba881ad8e510111e4072290639fa630 100644 (file)
@@ -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);
        }