hello Cris, some update: the patch you suggested doesn't work. However, the following works: --- evolution-1.4.6/addressbook/backend/pas/pas-backend-ldap.c.orig 2004-04-22 10:45:59.000000000 +0200 +++ evolution-1.4.6/addressbook/backend/pas/pas-backend-ldap.c 2004-05-03 14:43:20.000000000 +0200 @@ -2743,6 +2743,12 @@ { int i; + //extremely ugly hack to fix the "by category" search. --> do not want to lose my time + if (!strcmp(query_prop, "category")) + { + return "category"; + } + for (i = 0; i < num_prop_infos; i ++) if (!strcmp (query_prop, prop_info[i].query_prop)) return prop_info[i].ldap_attr; I will test it, and try to update the debian package. All comments are welcomed, and I made an ugly patch because I do not want to invest a lot of time fixing a 1.4 version, while 1.5 is coming. Stan. Le ven 23/04/2004 à 09:44, Chris Toshok a écrit : > try reverting all your changes, and apply the following: > > RCS file: /cvs/gnome/evolution/addressbook/gui/component/addressbook.c,v > retrieving revision 1.211 > diff -u -r1.211 addressbook.c > --- addressbook.c 14 Jun 2003 04:34:07 -0000 1.211 > +++ addressbook.c 23 Apr 2004 07:48:23 -0000 > @@ -858,7 +858,7 @@ > } else { > master_list = get_master_list (); > category_name = e_categories_master_list_nth (master_list, subid); > - search_query = g_strdup_printf ("(is \"category\" \"%s\")", category_name); > + search_query = g_strdup_printf ("(is \"categories\" \"%s\")", category_name); > } > break; > > Chris > > On Fri, 2004-04-23 at 08:29 +0200, Stan Pinte wrote: > > hello, > > > > I tried to solve the following bug in evolution-1.4.6: queries by > > category in LDAP-backed addressbooks do not work. > > > > the following patch solves the problem: > > > > --- evolution-1.4.6/addressbook/backend/pas/pas-backend-ldap.c.orig 2004-04-22 10:45:59.000000000 +0200 > > +++ evolution-1.4.6/addressbook/backend/pas/pas-backend-ldap.c 2004-04-22 10:46:23.000000000 +0200 > > @@ -268,7 +268,7 @@ > > E_STRING_PROP (E_CARD_SIMPLE_FIELD_MAILER, "mailer", "mailer"), > > > > E_STRING_PROP (E_CARD_SIMPLE_FIELD_FILE_AS, "file_as", "fileAs"), > > - E_COMPLEX_PROP (E_CARD_SIMPLE_FIELD_CATEGORIES, "categories", "category", category_populate, category_ber, category_compare), > > + E_COMPLEX_PROP (E_CARD_SIMPLE_FIELD_CATEGORIES, "category", "category", category_populate, category_ber, category_compare), > > > > STRING_PROP (E_CARD_SIMPLE_FIELD_CALURI, "caluri", "calCalURI"), > > STRING_PROP (E_CARD_SIMPLE_FIELD_FBURL, "fburl", > > "calFBURL"), > > > > , but creates another problem: > > > > the "Categories" button in the contact edition folder is now > > disabled. Yet, the categories are still listed in the text field. > > > > I tried to solve it using that patch: > > > > --- evolution-1.4.6/addressbook/gui/contact-editor/e-contact-editor.c.orig 2004-04-22 12:46:12.000000000 +0200 > > +++ evolution-1.4.6/addressbook/gui/contact-editor/e-contact-editor.c 2004-04-22 12:45:34.000000000 +0200 > > @@ -2128,7 +2128,7 @@ > > { "entry-nickname", "nickname" }, > > { "entry-spouse", "spouse" }, > > { "text-comments", "note" }, > > - { "entry-categories", "categories" }, > > + { "entry-categories", "category" }, > > { "entry-caluri", "caluri" }, > > { "entry-fburl", "fburl" }, > > }; > > > > but, it makes things worse: the button is still disabled, and the > > categories do not show up anymore in the text field. > > > > I am determined to solve this problem, but I am asking around for any > > hints... > > > > thanks a lot, > > > > Stan. > > _______________________________________________ > > evolution-hackers maillist - evolution-hackers lists ximian com > > http://lists.ximian.com/mailman/listinfo/evolution-hackers > > > > > > !DSPAM:4088b84b134681556419849! > > > > > _______________________________________________ > evolution-hackers maillist - evolution-hackers lists ximian com > http://lists.ximian.com/mailman/listinfo/evolution-hackers -- ------ join me at spinte jabber org GPG: CBAC 1C79 D133 D3D7 247D D723 FCF9 AEB9 BC4F 5802 ------
Attachment:
signature.asc
Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e=2E?=