9 #define DC_IMAP_THREAD 100
10 #define DC_SMTP_THREAD 5000
14 #define DC_JOB_HOUSEKEEPING 105 // low priority ...
15 #define DC_JOB_EMPTY_SERVER 107
16 #define DC_JOB_DELETE_MSG_ON_IMAP 110
17 #define DC_JOB_MARKSEEN_MDN_ON_IMAP 120
18 #define DC_JOB_MARKSEEN_MSG_ON_IMAP 130
19 #define DC_JOB_MOVE_MSG 200
20 #define DC_JOB_CONFIGURE_IMAP 900
21 #define DC_JOB_IMEX_IMAP 910 // ... high priority
25 #define DC_JOB_MAYBE_SEND_LOCATIONS 5005 // low priority ...
26 #define DC_JOB_MAYBE_SEND_LOC_ENDED 5007
27 #define DC_JOB_SEND_MDN_OLD 5010
28 #define DC_JOB_SEND_MDN 5011
29 #define DC_JOB_SEND_MSG_TO_SMTP_OLD 5900
30 #define DC_JOB_SEND_MSG_TO_SMTP 5901 // ... high priority
36 #define DC_IMAP_TIMEOUT_SEC 10
37 #define DC_SMTP_TIMEOUT_SEC 10
40 typedef struct _dc_job dc_job_t;
52 time_t desired_timestamp;
53 time_t added_timestamp;
62 void dc_job_add (
dc_context_t*,
int action,
int foreign_id,
const char* param,
int delay);
68 #define DC_DONT_TRY_AGAIN 0
70 #define DC_INCREATION_POLL 2 // this value does not increase the number of tries
71 #define DC_STANDARD_DELAY 3
72 void dc_job_try_again_later (dc_job_t*,
int try_again,
const char* error);
76 void dc_job_do_DC_JOB_CONFIGURE_IMAP (
dc_context_t*, dc_job_t*);
77 void dc_job_do_DC_JOB_IMEX_IMAP (
dc_context_t*, dc_job_t*);