aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/util/eab-book-util.c
Commit message (Collapse)AuthorAgeFilesLines
* Unrefing the query.Sushma Rai2005-07-151-1/+1
| | | | svn path=/trunk/; revision=29774
* case insesitive version of strstr. Used from camelSivaiah Nallagatla2005-01-271-4/+30
| | | | | | | | | | | | | | | | 2005-01-26 Sivaiah Nallagatla <snallagatla@novell.com> * util/eab-book-util.c (strstrcase) : case insesitive version of strstr. Used from camel (eab_contact_list_from_string) : do case in sensitive search for "BEGIN:VCARD" and "END:VCARD" to take care of broken vcards Fixes #70339 svn path=/trunk/; revision=28578
* cast length specifier to int.Not Zed2005-01-121-1/+1
| | | | | | | | | 2005-01-11 Not Zed <NotZed@Ximian.com> * util/eab-book-util.c (eab_name_and_email_query): cast length specifier to int. svn path=/trunk/; revision=28370
* When name is NULL query against complete email id instead of user nameSivaiah Nallagatla2004-11-181-7/+6
| | | | | | | | | | | | | 2004-11-07 Sivaiah Nallagatla <snallagatla@novell.com> * util/eab-book-util.c (eab_name_and_email_query) : When name is NULL query against complete email id instead of user name part to take care of users@foo.org not matching against users@bar.org . Also include query based on name always Fix for #67656 svn path=/trunk/; revision=27937
* Fixes bug #66369.Hans Petter Jansson2004-09-301-26/+34
| | | | | | | | | | | 2004-09-29 Hans Petter Jansson <hpj@ximian.com> Fixes bug #66369. * util/eab-book-util.c (eab_contact_list_from_string): Make the vcard splitter work with any amount of blank lines between vcards. svn path=/trunk/; revision=27429
* Don't accept input that doesn't have at least a "BEGIN:VCARD" in it.Hans Petter Jansson2004-06-251-0/+7
| | | | | | | | | 2004-06-24 Hans Petter Jansson <hpj@ximian.com> * util/eab-book-util.c (eab_contact_list_from_string): Don't accept input that doesn't have at least a "BEGIN:VCARD" in it. svn path=/trunk/; revision=26505
* Add an x-source-vcard target entry that includes the source book URI.Hans Petter Jansson2004-06-241-0/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-06-23 Hans Petter Jansson <hpj@ximian.com> * gui/component/addressbook-view.c: Add an x-source-vcard target entry that includes the source book URI. (destroy_merge_context): Implement. (removed_contact_cb): Implement. (merged_contact_cb): Implement. (selector_tree_drag_data_received): Get the source and target books, and see if we need to remove contacts from source after they're added to target. Copy contacts sequentially, not in parallel, with a callback. * gui/widgets/e-addressbook-view.c: Add an x-source-vcard target entry that includes the source book URI. (table_drag_data_delete): Remove. This is handled by the drag target. (table_drag_data_get): Handle more than one contact. Supply source. (create_table_view): Don't connect to the delete signal. * gui/widgets/e-minicard-view.c: Add an x-source-vcard target entry that includes the source book URI. (e_minicard_view_drag_data_delete): Remove. This is handled by the drag target. (e_minicard_view_drag_data_get): Handle x-source-vcard target. (e_minicard_view_drag_begin): Don't connect to the delete signal. (e_minicard_view_dispose): Don't disconnect from the delete signal. (e_minicard_view_init): Don't init delete_id. * gui/widgets/e-minicard-view.h: Remove delete_id from struct. * util/eab-book-util.[ch] (eab_contact_list_from_string): Skip the source URI if present. (eab_book_and_contact_list_from_string): Create the source book from the provided URI, if present. (eab_book_and_contact_list_to_string): Include the book URI in generated string. svn path=/trunk/; revision=26485
* EBookContactsCallback -> EBookListCallback. (eab_nickname_query): same.Chris Toshok2004-06-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-06-17 Chris Toshok <toshok@ximian.com> * util/eab-book-util.c (eab_name_and_email_query): EBookContactsCallback -> EBookListCallback. (eab_nickname_query): same. * printing/e-contact-print.c: e-book-async.h -> e-book.h * gui/widgets/eab-vcard-control.c: e-book-async.h -> e-book.h. * gui/widgets/e-addressbook-model.h: e-book-async.h -> e-book.h. * gui/widgets/eab-popup-control.h: e-book-async.h -> e-book.h. * gui/widgets/eab-popup-control.c: remove e-book-async.h include. * gui/merging/eab-contact-merging.h: e-book-async.h -> e-book.h. * gui/contact-editor/e-contact-editor.h: e-book-async.h -> e-book.h. * gui/contact-editor/e-contact-editor.h: same. * gui/contact-list-editor/e-contact-list-editor.h: same. * gui/contact-list-editor/e-contact-list-model.h: remove include of e-book-async.h * gui/component/select-names/e-select-names-completion.h: include e-book.h, not e-book-async.h * gui/component/select-names/e-select-names-model.c: same. * gui/component/select-names/e-select-names.c: same. * gui/component/addressbook-migrate.c: include e-book.h, not e-book-async.h * gui/component/addressbook-view.c: same. * gui/component/addressbook.h: same. * gui/component/addressbook.c: remove include e-book-async.h. svn path=/trunk/; revision=26402
* [ fixes bug #52571 ] ugh. name fields that have \" around the name breakChris Toshok2004-01-241-19/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-01-23 Chris Toshok <toshok@ximian.com> [ fixes bug #52571 ] * util/eab-book-util.c (escape): ugh. name fields that have \" around the name break our queries, because it turns it into (for instance): (contains "full_name" ""Toshok""). so we need to turn that into: (contains "full_name" "\"Toshok\""). (eab_name_and_email_query): escape both the name and email, and use an EBookQuery instead of passing the string to e_book_async_get_contacts. Looks like ross missed a couple of spots. (eab_nickname_query): same. * gui/component/addressbook.c (free_load_source_data): new function, free up the data and unref the source if there is one. (load_source_auth_cb): call free_load_source_data instead of just g_free'ing the struct. (load_source_cb): same. (default_book_cb): new function, we need this so we can fill in the source for the default book. get the source, then call load_source_cb to continue processing as normal. (addressbook_load_default_book): use default_book_cb instead of load_source_cb. svn path=/trunk/; revision=24383
* [ fixes bug #52955 ] handle the case properly where there are no queryChris Toshok2004-01-211-1/+1
| | | | | | | | | | | | | | | 2004-01-20 Chris Toshok <toshok@ximian.com> [ fixes bug #52955 ] * gui/merging/eab-contact-compare.c (use_common_book_cb): handle the case properly where there are no query parts (p == 0). Instead of passing "" to e_book_query_from_string, just set the query to NULL. * util/eab-book-util.c (eab_contact_list_to_string): we need to put a blank line here, so \r\n\r\n, not just \r\n. svn path=/trunk/; revision=24340
* Merge new-ui-branch to the trunk.Ettore Perazzoli2003-10-221-0/+293
svn path=/trunk/; revision=22965