]> err.no Git - eweouz/commitdiff
Only look for address books
authorTollef Fog Heen <tfheen@err.no>
Sun, 29 Sep 2013 13:31:14 +0000 (15:31 +0200)
committerTollef Fog Heen <tfheen@err.no>
Sun, 29 Sep 2013 13:31:14 +0000 (15:31 +0200)
src/eweouz-dump-addressbook.c

index e286881ad57883c6fe497c383cb93fb3b4664e6f..ca7a01933f9ffc9782ab31aac8085bacf62765d7 100644 (file)
@@ -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;