Delta Chat Core C-API
|
This document describes how to handle the Delta Chat core library.For general information about Delta Chat itself, see https://delta.chat and https://github.com/deltachat.
Let's start.
First of all, you have to define a function that is called by the library on specific events (eg. when the configuration is done or when fresh messages arrive). Your function should look like the following:
After that, you can create and configure a mrmailbox_t object easily as follows:
If this works, you'll receive the event MR_EVENT_CONFIGURE_ENDED
with data1
set to 1
- and you can start sending your first message:
Now, go to the testing address (bob) and you should have received a normal email. Answer this email in any email program with "Got it!" and you will get the message from delta as follows:
This will output the following two lines:
I think, you got the idea. For further reading, please dive into the mrmailbox_t class. See you.