mirror of
https://github.com/deltachat/deltachat-core.git
synced 2025-10-06 03:50:08 +02:00
comment
This commit is contained in:
parent
5a48e06c1c
commit
03d6e76f85
2 changed files with 6 additions and 8 deletions
|
@ -837,17 +837,15 @@ cleanup:
|
|||
* To add a single contact entered by the user, you should prefer dc_create_contact(),
|
||||
* however, for adding a bunch of addresses, this function is _much_ faster.
|
||||
*
|
||||
* The function takes are of not overwriting names manually added or edited by dc_create_contact().
|
||||
*
|
||||
* @memberof dc_context_t
|
||||
* @param context the context object as created by dc_context_new().
|
||||
* @param adr_book A multi-line string in the format in the format
|
||||
* `Name one\nAddress one\nName two\Address two`. If an email address
|
||||
* already exists, the name is updated and the origin is increased to
|
||||
* "manually created".
|
||||
* @param adr_book A multi-line string in the format
|
||||
* `Name one\nAddress one\nName two\nAddress two`.
|
||||
* If an email address already exists, the name is updated
|
||||
* unless it was edited manually by dc_create_contact() before.
|
||||
* @return The number of modified or added contacts.
|
||||
*/
|
||||
int dc_add_address_book(dc_context_t* context, const char* adr_book) /* format: Name one\nAddress one\nName two\Address two */
|
||||
int dc_add_address_book(dc_context_t* context, const char* adr_book)
|
||||
{
|
||||
carray* lines = NULL;
|
||||
size_t i = 0;
|
||||
|
|
|
@ -50,7 +50,7 @@ static uintptr_t cb_dummy(dc_context_t* context, int event, uintptr_t data1, uin
|
|||
|
||||
|
||||
/**
|
||||
* The following three callback are used by dc_imap_new() to read/write configuration
|
||||
* The following three callback are given to dc_imap_new() to read/write configuration
|
||||
* and to handle received messages. As the imap-functions are typically used in
|
||||
* a separate user-thread, also these functions may be called from a different thread.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue