https://bugs.freedesktop.org/show_bug.cgi?id=64176

--- Comment #3 from Tristan Van Berkom <[email protected]> ---
Here is the .source file which would put the following fields
in the summary:
  E_CONTACT_FULL_NAME,
  E_CONTACT_FAMILY_NAME,
  E_CONTACT_NICKNAME,
  E_CONTACT_GIVEN_NAME,
  E_CONTACT_TEL

And all of them configured to have prefix search indexes,
as well as normalized phone number values for E_CONTACT_TEL:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Data Source]
DisplayName=Unnamed
Enabled=true
Parent=

[Address Book]
BackendName=local

[Backend Summary Setup]
SummaryFields=full_name:family_name:nickname:given_name:phone
IndexedFields=phone,prefix:phone,phone:full_name,prefix:family_name,prefix:nickname,prefix:given_name,prefix
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

My work-in-progress branch will eventually add the option to
set collation types for some fields, for example to set "phonebook"
collation on given_name and family_name, the configuration looks like this:

CollationFields=family_name,phonebook:given_name,phonebook

Also I'm pretty sure that if EDS has been freshly installed, you
can configure this using the ESourceBackendSummarySetup apis directly
on the default addressbook.

The code would look something like:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
source = e_source_registry_ref_default_addressbook (registry);
setup  = e_source_get_extension (source, E_SOURCE_BACKEND_SUMMARY_SETUP);

/* ... call e_source_backend_summary_setup_*() APIs ... */

e_source_registry_commit_source_sync (registry, source, NULL, NULL);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Perhaps an alternative to a downstream patch, would be to create
a small program which runs in the first boot of the target device
before the default addressbook is ever accessed for the first time.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
_______________________________________________
Syncevolution-issues mailing list
[email protected]
https://lists.syncevolution.org/mailman/listinfo/syncevolution-issues

Reply via email to