e_book_get_contacts(book, query, &contacts, &error);
for (c = contacts; c; c = c->next) {
+ if (full_name)
+ g_object_set(E_CONTACT(c->data), "full-name", full_name, NULL);
+
+ if (nickname)
+ g_object_set(E_CONTACT(c->data), "nickname", nickname, NULL);
+
if (emails != NULL) {
gchar **head = emails;
GList *el = NULL;
head++;
}
g_object_set(E_CONTACT(c->data), "email", el, NULL);
- e_book_commit_contact(book, E_CONTACT(c->data), &error);
}
+ e_book_commit_contact(book, E_CONTACT(c->data), &error);
}
}
}