Christopher James Lahey wrote: >On Sat, 2002-05-11 at 11:09, Stephan wrote: > >>In *$evosource_topdir/addressbook/backend/idl/addressbook.idl* there is >>a comment attached to the getcursor() method which claims that *The >>syntax for the query string is not yet defined*. This seems to >>contradict the sourcecode found in >>*$evosource_topdir/addressbook/backend/ebook/address-conduit.c* wherein >>getcursor() is called as follows: >> >>snip >>>>>>>>> >> >>e_book_get_cursor (book, "(contains \"full_name\" \"\")", cursor_cb, ctxt); >> >>snip <<<<<<<<<< >> > >Ah, yeah. That comment's out of date. I just removed it from my copy >of the source code and I'll commit that some time soon. > >>calling the above method with the *query* parameter set to *""* >>generates a *ECardCursor* of zero length in the *cursor_cb()* method. >> > >Yeah, as I said in another message, the query string you probably want >is "(contains \"x-evolution-any-field\" \"\")" > >Also, as I explained in the other message, you probably want to use >e_book_simple_query, though e_book_get_cursor will probably also work. > >Gook luck with this. > >Thanks, > Chris > Thanks Chris
Both your suggestions work great :) regards Stephan _______________________________________________ evolution-hackers maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/evolution-hackers
