static void clear_capability(void);
static int have_capability(void);
static int send_imap_command(netsec_context *, int noflush, char **errstr,
static void clear_capability(void);
static int have_capability(void);
static int send_imap_command(netsec_context *, int noflush, char **errstr,
static int get_imap_response(netsec_context *, const char *token,
char **tokenresp, char **status, int failerr,
char **errstr);
static void ts_report(const char *str, struct timeval *tv);
static int get_imap_response(netsec_context *, const char *token,
char **tokenresp, char **status, int failerr,
char **errstr);
static void ts_report(const char *str, struct timeval *tv);
-static void add_msg(int queue, const char *fmt, ...);
+static void add_msg(int queue, const char *fmt, ...) CHECK_PRINTF(2, 3);
if (initialtls || tls) {
if (netsec_set_tls(nsc, 1, 0, &errstr) != OK)
if (initialtls || tls) {
if (netsec_set_tls(nsc, 1, 0, &errstr) != OK)
}
if (sasl) {
if (netsec_set_sasl_params(nsc, "imap", saslmech, imap_sasl_callback,
nsc, &errstr) != OK)
}
if (sasl) {
if (netsec_set_sasl_params(nsc, "imap", saslmech, imap_sasl_callback,
nsc, &errstr) != OK)
if (get_imap_response(nsc, NULL, NULL, &line, 1, errstr) != OK)
return NOTOK;
/*
if (get_imap_response(nsc, NULL, NULL, &line, 1, errstr) != OK)
return NOTOK;
/*