MODULE_CONTEXT_INIT(&mail_storage_module_register);
static int
-index_list_open_view(struct mailbox *box, bool require_refreshed,
- struct mail_index_view **view_r, uint32_t *seq_r)
+mailbox_list_index_view_open(struct mailbox *box, bool require_refreshed,
+ struct mail_index_view **view_r, uint32_t *seq_r)
{
struct mailbox_list_index *ilist = INDEX_LIST_CONTEXT_REQUIRE(box->list);
struct mailbox_list_index_node *node;
uint32_t seq;
int ret;
- if ((ret = index_list_open_view(box, FALSE, &view, &seq)) <= 0) {
+ if ((ret = mailbox_list_index_view_open(box, FALSE, &view, &seq)) <= 0) {
/* failure / not found. fallback to the real storage check
just in case to see if the mailbox was just created. */
return ibox->module_ctx.super.
return 0;
}
- if ((ret = index_list_open_view(box, TRUE, &view, &seq)) <= 0)
+ if ((ret = mailbox_list_index_view_open(box, TRUE, &view, &seq)) <= 0)
return ret;
ret = mailbox_list_index_status(box->list, view, seq, items,
return 0;
}
- if ((ret = index_list_open_view(box, FALSE, &view, &seq)) <= 0)
+ if ((ret = mailbox_list_index_view_open(box, FALSE, &view, &seq)) <= 0)
return ret;
ret = mailbox_list_index_status(box->list, view, seq, 0,
i_assert(!ilist->syncing);
- if ((ret = index_list_open_view(box, TRUE, &view, &seq)) <= 0)
+ if ((ret = mailbox_list_index_view_open(box, TRUE, &view, &seq)) <= 0)
return ret;
ret = mailbox_list_index_status(box->list, view, seq,
i_zero(first_saved_r);
- if ((ret = index_list_open_view(box, TRUE, &view, &seq)) <= 0)
+ if ((ret = mailbox_list_index_view_open(box, TRUE, &view, &seq)) <= 0)
return ret;
mail_index_lookup_ext(view, seq, ilist->first_saved_ext_id,
i_zero(&changes);
/* update the mailbox list index even if it has some other pending
changes. */
- if ((ret = index_list_open_view(box, FALSE, &list_view, &changes.seq)) <= 0)
+ if ((ret = mailbox_list_index_view_open(box, FALSE, &list_view, &changes.seq)) <= 0)
return;
guid_128_empty(mailbox_guid);