Lines Matching refs:box
11 static bool fail_mailbox_is_readonly(struct mailbox *box ATTR_UNUSED)
16 static int fail_mailbox_enable(struct mailbox *box,
19 box->enabled_features = features;
23 static int fail_mailbox_exists(struct mailbox *box ATTR_UNUSED,
31 static int fail_mailbox_open(struct mailbox *box)
33 mail_storage_set_error(box->storage, MAIL_ERROR_NOTFOUND,
34 T_MAIL_ERR_MAILBOX_NOT_FOUND(box->vname));
38 static void fail_mailbox_close(struct mailbox *box ATTR_UNUSED)
42 static void fail_mailbox_free(struct mailbox *box ATTR_UNUSED)
47 fail_mailbox_create(struct mailbox *box,
51 mail_storage_set_error(box->storage, MAIL_ERROR_NOTPOSSIBLE,
57 fail_mailbox_update(struct mailbox *box,
60 mail_storage_set_error(box->storage, MAIL_ERROR_NOTPOSSIBLE,
65 static int fail_mailbox_delete(struct mailbox *box)
67 mail_storage_set_error(box->storage, MAIL_ERROR_NOTPOSSIBLE,
80 static int fail_mailbox_get_status(struct mailbox *box ATTR_UNUSED,
86 mail_storage_set_error(box->storage, MAIL_ERROR_NOTFOUND,
87 T_MAIL_ERR_MAILBOX_NOT_FOUND(box->vname));
92 fail_mailbox_get_metadata(struct mailbox *box,
96 mail_storage_set_error(box->storage, MAIL_ERROR_NOTFOUND,
97 T_MAIL_ERR_MAILBOX_NOT_FOUND(box->vname));
101 static int fail_mailbox_set_subscribed(struct mailbox *box,
104 mail_storage_set_error(box->storage, MAIL_ERROR_NOTPOSSIBLE,
110 fail_mailbox_sync_init(struct mailbox *box,
116 ctx->box = box;
131 mail_storage_set_error(ctx->box->storage, MAIL_ERROR_NOTFOUND,
132 T_MAIL_ERR_MAILBOX_NOT_FOUND(ctx->box->vname));
137 static void fail_mailbox_notify_changes(struct mailbox *box ATTR_UNUSED)
142 fail_mailbox_transaction_begin(struct mailbox *box,
149 ctx->box = box;
253 static bool fail_mailbox_is_inconsistent(struct mailbox *box ATTR_UNUSED)
311 struct mailbox *box;
315 box = p_new(pool, struct mailbox, 1);
316 *box = fail_mailbox;
317 box->vname = p_strdup(pool, vname);
318 box->name = p_strdup(pool, mailbox_list_get_storage_name(list, vname));
319 box->storage = storage;
320 box->list = list;
322 box->pool = pool;
323 box->flags = flags;
325 p_array_init(&box->search_results, pool, 16);
326 p_array_init(&box->module_contexts, pool, 5);
327 return box;