box->opened = TRUE;
- index_thread_mailbox_index_opened(ibox);
- if (hook_mailbox_index_opened != NULL)
- hook_mailbox_index_opened(box);
+ index_thread_mailbox_opened(ibox);
+ if (hook_mailbox_opened != NULL)
+ hook_mailbox_opened(box);
return 0;
}
enum mail_thread_type thread_type,
bool return_seqs);
-void index_thread_mailbox_index_opened(struct index_mailbox *ibox);
+void index_thread_mailbox_opened(struct index_mailbox *ibox);
#endif
i_free(tbox);
}
-void index_thread_mailbox_index_opened(struct index_mailbox *ibox)
+void index_thread_mailbox_opened(struct index_mailbox *ibox)
{
struct mailbox *box = &ibox->box;
struct mail_thread_mailbox *tbox;
}
}
-void hook_mailbox_index_opened(struct mailbox *box)
+void hook_mailbox_opened(struct mailbox *box)
{
const struct mail_storage_hooks *const *hooks;
array_foreach(&box->storage->user->hooks, hooks) {
- if ((*hooks)->mailbox_index_opened != NULL)
- (*hooks)->mailbox_index_opened(box);
+ if ((*hooks)->mailbox_opened != NULL)
+ (*hooks)->mailbox_opened(box);
}
}
void (*mail_storage_created)(struct mail_storage *storage);
void (*mailbox_list_created)(struct mailbox_list *list);
void (*mailbox_allocated)(struct mailbox *box);
- void (*mailbox_index_opened)(struct mailbox *box);
+ void (*mailbox_opened)(struct mailbox *box);
};
void mail_storage_hooks_init(void);
void hook_mail_storage_created(struct mail_storage *storage);
void hook_mailbox_list_created(struct mailbox_list *list);
void hook_mailbox_allocated(struct mailbox *box);
-void hook_mailbox_index_opened(struct mailbox *box);
+void hook_mailbox_opened(struct mailbox *box);
#endif