From: Tollef Fog Heen Date: Sun, 29 Sep 2013 13:31:14 +0000 (+0200) Subject: Only look for address books X-Git-Tag: 0.8~8 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77faeb4bc0be795423b11075d2d3595371eb3b85;p=eweouz Only look for address books --- diff --git a/src/eweouz-dump-addressbook.c b/src/eweouz-dump-addressbook.c index e286881..ca7a019 100644 --- a/src/eweouz-dump-addressbook.c +++ b/src/eweouz-dump-addressbook.c @@ -85,7 +85,7 @@ int main(int argc, char **argv) return 1; } - sources = e_source_registry_list_sources (eds_source_registry, NULL); + sources = e_source_registry_list_sources (eds_source_registry, E_SOURCE_EXTENSION_ADDRESS_BOOK); if (search_filter != NULL) { query = e_book_query_any_field_contains(*search_filter); @@ -98,8 +98,7 @@ int main(int argc, char **argv) client = E_BOOK_CLIENT(e_book_client_connect_sync(source, NULL, &error)); if (error != NULL) { - /* Probably no backend name, so skip */ - /* fprintf(stderr, "e_book_new: %s\n", error->message);*/ + fprintf(stderr, "e_book_client_connect_sync: %s\n", error->message); g_error_free(error); error = NULL; continue;