{
}
-static void fail_mailbox_free(struct mailbox *box ATTR_UNUSED)
+static void fail_mailbox_free(struct mailbox *box)
{
+ event_unref(&box->event);
}
static int
box->pool = pool;
box->flags = flags;
+ box->event = event_create(box->storage->event);
+ event_add_category(box->event, &event_category_mailbox);
+ event_add_str(box->event, "name", box->vname);
+ event_set_append_log_prefix(box->event,
+ t_strdup_printf("Mailbox %s: ", box->vname));
+
p_array_init(&box->search_results, pool, 16);
p_array_init(&box->module_contexts, pool, 5);
return box;