[Deskbar] Searching contacts via e-d-s ldap addressbook



Hi all

Searching contacts from evolution-data-server ldap addressbooks doesn't
seem to work. I think this received some discussion about a year ago.

The attached patch makes it work - at least for me.

Sometimes its a bit slow - I seem to recall some discussion about the
e-d-s search being a 'sync' search, whereas async might be better. If
anyone could give me some pointers, I might be able to try that out (not
sure where I should start).

Regards
Karl
--- keep/evolution.c	2007-01-20 20:40:17.000000000 +0000
+++ deskbar-applet-2.16.0/deskbar/evolution/evolution.c	2007-01-20 20:41:31.000000000 +0000
@@ -216,7 +216,7 @@ init (void)
 
 			if (p != NULL && strcmp (p, "true") == 0) {
 				char *uri = g_strdup_printf ("%s/%s", e_source_group_peek_base_uri (group), e_source_peek_relative_uri (source));
-				EBook *book = e_book_new_from_uri (uri, NULL);
+				EBook *book = e_book_new (source, NULL);
 				if (book != NULL) {
 					books = g_slist_prepend (books, book);
 					e_book_open(book, TRUE, NULL);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]