Lines Matching defs:ilist

52 	mail_index_update_ext(ctx->trans, seq, ctx->ilist->ext_id, &irec, NULL);
65 node = p_new(ctx->ilist->mailbox_pool,
71 node->name = dup_name = p_strdup(ctx->ilist->mailbox_pool, name);
72 node->name_id = ++ctx->ilist->highest_name_id;
80 node->next = ctx->ilist->mailbox_tree;
81 ctx->ilist->mailbox_tree = node;
83 hash_table_insert(ctx->ilist->mailbox_hash,
85 hash_table_insert(ctx->ilist->mailbox_names,
105 node = ctx->ilist->mailbox_tree; parent = NULL;
150 struct mailbox_list_index *ilist = ctx->ilist;
161 get_existing_name_ids(&existing_name_ids, ilist->mailbox_tree);
171 name = hash_table_lookup(ilist->mailbox_names,
181 mail_index_get_header_ext(ctx->view, ilist->ext_id,
184 mail_index_ext_resize(ctx->trans, ilist->ext_id,
189 mail_index_update_header_ext(ctx->trans, ilist->ext_id,
219 mailbox_list_index_node_unlink(sync_ctx->ilist, node);
228 struct mailbox_list_index *ilist = INDEX_LIST_CONTEXT_REQUIRE(list);
236 i_assert(!ilist->syncing);
242 if (mail_index_sync_begin(ilist->index, &index_sync_ctx, &view, &trans,
247 mailbox_list_index_reset(ilist);
254 if (ilist->call_corruption_callback && !fix_attempted) {
265 sync_ctx->ilist = ilist;
267 sync_ctx->orig_highest_name_id = ilist->highest_name_id;
283 ilist->sync_ctx = sync_ctx;
284 ilist->syncing = TRUE;
302 mailbox_list_index_node_clear_exists(sync_ctx->ilist->mailbox_tree);
308 iter = sync_ctx->ilist->module_ctx.super.
314 while ((info = sync_ctx->ilist->module_ctx.super.iter_next(iter)) != NULL) T_BEGIN {
340 if (sync_ctx->ilist->module_ctx.super.iter_deinit(iter) < 0)
344 sync_expunge_nonexistent(sync_ctx, sync_ctx->ilist->mailbox_tree);
351 if (sync_ctx->orig_highest_name_id != sync_ctx->ilist->highest_name_id ||
352 sync_ctx->ilist->corrupted_names_or_parents) {
357 sync_ctx->ilist->corrupted_names_or_parents = FALSE;
358 } else if (mailbox_list_index_need_refresh(sync_ctx->ilist,
364 mail_index_update_header_ext(sync_ctx->trans, sync_ctx->ilist->ext_id,
384 sync_ctx->ilist->ext_id,
392 sync_ctx->ilist->ext_id, &irec, NULL);
419 if (!sync_ctx->ilist->corrupted_names_or_parents)
423 sync_ctx->ilist->mailbox_tree);
449 sync_ctx->ilist->syncing = FALSE;
450 sync_ctx->ilist->sync_ctx = NULL;
463 if (!sync_ctx->ilist->has_backing_store) {
466 sync_ctx->ilist->call_corruption_callback ||
467 sync_ctx->ilist->corrupted_names_or_parents ||
468 sync_ctx->ilist->highest_name_id == 0 ||
500 sync_ctx->ilist->ext_id,
507 sync_ctx->ilist->ext_id, &rec, NULL);
517 mailbox_list_index_node_unlink(sync_ctx->ilist, node);