imap-notify.c revision 0081ed0d90d302027ed4a53cb617c0179c246868
7ef3553585e556f35d5919589cfdc1de3329e4bbTimo Sirainen/* Copyright (c) 2013-2017 Dovecot authors, see the included COPYING file */
2753f93e5d9cd5fbd773540de3772d182fcced5eStephan Boschstatic int imap_notify_list(struct imap_notify_namespace *notify_ns,
2753f93e5d9cd5fbd773540de3772d182fcced5eStephan Bosch char ns_sep = mail_namespace_get_sep(notify_ns->ns);
27a33f6aaa3d02d88c020315ae613e0c4910e950Timo Sirainen return client_send_line_next(notify_ns->ctx->client, str_c(str));
9983cbb4cef92d68ffde87dcc91913cc2fed3da5Martti Rannanjärvistatic int imap_notify_status(struct imap_notify_namespace *notify_ns,
c3c07d6527ad28c8546cbbf84c257d178e23c184Timo Sirainen struct client *client = notify_ns->ctx->client;
MAILBOX_LIST_NOTIFY_EXPUNGES)) != 0)
return ret;
int ret;
&mailbox_flags) < 0)
mailbox_flags = 0;
return ret;
return ret;
&mailbox_flags) < 0)
mailbox_flags = 0;
return ret;
&mailbox_flags) < 0)
mailbox_flags = 0;
return ret;
&mailbox_flags) < 0)
mailbox_flags = 0;
return ret;
MAILBOX_LIST_NOTIFY_MODSEQ_CHANGES)) != 0) {
return ret;
MAILBOX_LIST_NOTIFY_RENAME)) != 0)
return TRUE;
MAILBOX_LIST_NOTIFY_UNSUBSCRIBE)) != 0)
return TRUE;
return FALSE;
IMAP_NOTIFY_EVENT_FLAG_CHANGE)) != 0) {
return TRUE;
return TRUE;
return TRUE;
return TRUE;
return FALSE;
const char *vname)
const char *const *namep;
char ns_sep;
bool ret;
return ret;
case IMAP_NOTIFY_TYPE_SUBTREE:
if (name_len == 0) {
return TRUE;
return TRUE;
case IMAP_NOTIFY_TYPE_MAILBOX:
return TRUE;
return FALSE;
return TRUE;
return FALSE;
} T_END;
if (ret2 <= 0)
if (ret < 0) {
return ret2;
int ret;
return ret;
if (ret == 0)
if (ret < 0) {
return ret;
static enum mailbox_list_notify_event
return ret;
i_unreached();
client);
notify_events = 0;
ret = 0;
return ret;