Lines Matching refs:abox
29 struct acl_mailbox *abox = ACL_CONTEXT_REQUIRE(box);
31 return abox->aclobj;
36 struct acl_mailbox *abox = ACL_CONTEXT_REQUIRE(box);
39 if (abox->skip_acl_checks)
44 ret = acl_object_have_right(abox->aclobj,
60 struct acl_mailbox *abox = ACL_CONTEXT_REQUIRE(box);
63 if (abox->module_ctx.super.is_readonly(box))
85 struct acl_mailbox *abox = ACL_CONTEXT_REQUIRE(box);
87 acl_object_deinit(&abox->aclobj);
88 abox->module_ctx.super.free(box);
93 struct acl_mailbox *abox = ACL_CONTEXT_REQUIRE(box);
109 (void)acl_object_update(abox->aclobj, &update);
120 struct acl_mailbox *abox = ACL_CONTEXT_REQUIRE(box);
148 abox->skip_acl_checks = TRUE;
149 ret = abox->module_ctx.super.create_box(box, update, directory);
150 abox->skip_acl_checks = FALSE;
159 struct acl_mailbox *abox = ACL_CONTEXT_REQUIRE(box);
165 return abox->module_ctx.super.update_box(box, update);
185 struct acl_mailbox *abox = ACL_CONTEXT_REQUIRE(box);
195 return abox->module_ctx.super.delete_box(box);
201 struct acl_mailbox *abox = ACL_CONTEXT_REQUIRE(src);
231 return abox->module_ctx.super.rename_box(src, dest);
343 struct acl_mailbox *abox = ACL_CONTEXT(_mail->box);
348 if (abox == NULL || !abox->acl_enabled)
391 struct acl_mailbox *abox = ACL_CONTEXT_REQUIRE(box);
402 return abox->module_ctx.super.save_begin(ctx, input);
431 struct acl_mailbox *abox = ACL_CONTEXT_REQUIRE(t->box);
438 return abox->module_ctx.super.copy(ctx, mail);
445 struct acl_mailbox *abox = ACL_CONTEXT_REQUIRE(ctx->box);
450 abox->module_ctx.super.transaction_rollback(ctx);
454 ret = abox->module_ctx.super.transaction_commit(ctx, changes_r);
455 if (abox->no_read_right) {
465 struct acl_mailbox *abox = ACL_CONTEXT_REQUIRE(box);
469 if (acl_object_get_my_rights(abox->aclobj, pool_datastack_create(),
482 return abox->module_ctx.super.exists(box, auto_boxes,
491 struct acl_mailbox *abox = ACL_CONTEXT_REQUIRE(box);
500 abox->skip_acl_checks)
512 ret = acl_object_have_right(abox->aclobj, idx_arr[open_right]);
521 ret = acl_object_have_right(abox->aclobj,
526 abox->no_read_right = TRUE;
533 struct acl_mailbox *abox = ACL_CONTEXT_REQUIRE(box);
538 return abox->module_ctx.super.open(box);
545 struct acl_mailbox *abox = ACL_CONTEXT_REQUIRE(box);
547 if (abox->module_ctx.super.get_status(box, items, status_r) < 0)
568 struct acl_mailbox *abox;
582 abox = p_new(box->pool, struct acl_mailbox, 1);
583 abox->module_ctx.super = *v;
584 box->vlast = &abox->module_ctx.super;
587 abox->aclobj = acl_object_init_from_name(alist->rights.backend,
592 abox->acl_enabled = TRUE;
610 MODULE_CONTEXT_SET(box, acl_storage_module, abox);