ibox, &ibox->view_module_ctx);
ibox->box.opened = TRUE;
+
+ if (hook_mailbox_index_opened != NULL)
+ hook_mailbox_index_opened(&ibox->box);
}
void index_storage_mailbox_init(struct index_mailbox *ibox, const char *name,
extern void (*hook_mail_storage_created)(struct mail_storage *storage);
/* Called after mailbox has been opened */
extern void (*hook_mailbox_opened)(struct mailbox *box);
+/* Called after mailbox index has been opened */
+extern void (*hook_mailbox_index_opened)(struct mailbox *box);
struct mail_storage_module_register {
unsigned int id;
void (*hook_mail_storage_created)(struct mail_storage *storage);
void (*hook_mailbox_opened)(struct mailbox *box) = NULL;
+void (*hook_mailbox_index_opened)(struct mailbox *box) = NULL;
static ARRAY_DEFINE(storages, struct mail_storage *);