imap-notify.h revision 0dffa25d211be541ee3c953b23566a1a990789df
#ifndef IMAP_NOTIFY_H
#define IMAP_NOTIFY_H
enum imap_notify_type {
};
enum imap_notify_event {
IMAP_NOTIFY_EVENT_MESSAGE_NEW = 0x01,
IMAP_NOTIFY_EVENT_FLAG_CHANGE = 0x04,
IMAP_NOTIFY_EVENT_MAILBOX_NAME = 0x10,
};
#define UNSUPPORTED_EVENTS \
struct imap_notify_mailboxes {
enum imap_notify_event events;
enum imap_notify_type type;
};
struct imap_notify_namespace {
struct imap_notify_context *ctx;
struct mail_namespace *ns;
struct mailbox_list_notify *notify;
};
struct imap_notify_context {
const char *error;
unsigned int global_max_mailbox_names;
struct imap_fetch_context *fetch_ctx;
bool have_subscriptions:1;
bool selected_set:1;
bool selected_immediate_expunges:1;
bool send_immediate_status:1;
bool watching_mailbox:1;
bool notifying:1;
};
const struct imap_notify_mailboxes *notify_boxes,
const char *vname);
#endif