Initial integration with libdeltachat

This implements configuration, connection, sending and receiving IMs in the
simplest possible way. Lots and lots of cases are not handled.
This commit is contained in:
2018-05-02 02:09:59 +01:00
parent 2049e30dc5
commit de213f2b7a
7 changed files with 285 additions and 39 deletions

View File

@@ -3,19 +3,21 @@
#define PLUGIN_ID "prpl-delta"
#define PLUGIN_CHAT_INFO_CHAT_ID "chat_id"
#define DELTA_PROTOCOL_OPTS \
OPT_PROTO_UNIQUE_CHATNAME | \
OPT_PROTO_CHAT_TOPIC | \
OPT_PROTO_IM_IMAGE
#define DEFAULT_SMTP_PORT 25
#define DEFAULT_IMAP_PORT 143
#define DEFAULT_SMTP_PORT 0
#define DEFAULT_IMAP_PORT 0
// These two will instead be the pidgin "username" and "password" options that
// I can't seem to get rid of.
//#define PLUGIN_ACCOUNT_OPT_ADDR "addr"
//#define PLUGIN_ACCOUNT_OPT_IMAP_PASS "mail_pw"
#define PLUGIN_ACCOUNT_OPT_ADDR "addr"
#define PLUGIN_ACCOUNT_OPT_IMAP_PASS "mail_pw"
// Share the remaining keys between purple and delta
#define PLUGIN_ACCOUNT_OPT_DISPLAY_NAME "displayname"