Lines Matching defs:bboxes
116 struct virtual_backend_box *const *bboxes;
119 bboxes = array_get(&mbox->backend_boxes, &count);
121 if (strcmp(bboxes[i]->name, name) == 0)
122 return bboxes[i];
130 struct virtual_backend_box *const *bboxes;
136 bboxes = array_get(&mbox->backend_boxes, &count);
138 if (bboxes[i]->mailbox_id == mailbox_id)
139 return bboxes[i];
231 struct virtual_backend_box *const *bboxes;
235 bboxes = array_get(&mbox->backend_boxes, &count);
237 ret = virtual_backend_box_alloc(mbox, bboxes[i], flags);
242 bboxes = array_get(&mbox->backend_boxes, &count);
252 mailbox_free(&bboxes[i-1]->box);
253 array_free(&bboxes[i-1]->uids);
455 struct virtual_backend_box **bboxes;
458 bboxes = array_get_modifiable(&mbox->backend_boxes, &count);
460 if (bboxes[i]->box == NULL)
462 if (bboxes[i]->notify != NULL)
463 mailbox_list_notify_deinit(&bboxes[i]->notify);
464 if (bboxes[i]->box->opened)
465 virtual_backend_box_close(mbox, bboxes[i]);
466 mailbox_free(&bboxes[i]->box);
467 if (array_is_created(&bboxes[i]->sync_outside_expunges))
468 array_free(&bboxes[i]->sync_outside_expunges);
469 array_free(&bboxes[i]->sync_pending_removes);
470 array_free(&bboxes[i]->uids);
581 struct virtual_backend_box *const *bboxes;
593 bboxes = array_get(&mbox->backend_boxes, &count);
595 if (mailbox_get_status(bboxes[i]->box, 0, &status) < 0) {
599 errstr = mailbox_get_last_error(bboxes[i]->box, &error);
610 mailbox_get_vname(bboxes[i]->box), errstr);
824 struct virtual_backend_box *const *bboxes;
827 bboxes = array_get(&mbox->backend_boxes, &count);
829 if (!only_with_msgs || array_count(&bboxes[i]->uids) > 0)
830 array_append(mailboxes, &bboxes[i]->box, 1);