4
enum acl_storage_rights {
5
ACL_STORAGE_RIGHT_LOOKUP,
6
ACL_STORAGE_RIGHT_READ,
7
ACL_STORAGE_RIGHT_WRITE,
8
ACL_STORAGE_RIGHT_WRITE_SEEN,
9
ACL_STORAGE_RIGHT_WRITE_DELETED,
10
ACL_STORAGE_RIGHT_INSERT,
11
ACL_STORAGE_RIGHT_POST,
12
ACL_STORAGE_RIGHT_EXPUNGE,
13
ACL_STORAGE_RIGHT_CREATE,
14
ACL_STORAGE_RIGHT_DELETE,
15
ACL_STORAGE_RIGHT_ADMIN,
17
ACL_STORAGE_RIGHT_COUNT
20
/* Returns acl_backend for the given mail storage. */
21
struct acl_backend *acl_storage_get_backend(struct mail_storage *storage);
22
/* Returns default acl_object for the given mail storage. */
23
struct acl_object *acl_storage_get_default_aclobj(struct mail_storage *storage);
24
/* Returns acl_object for the given mailbox. */
25
struct acl_object *acl_mailbox_get_aclobj(struct mailbox *box);
26
/* Returns 1 if we have the requested right. If not, returns 0 and sets storage
27
error to MAIL_ERROR_PERM. Returns -1 if internal error occurred and also
28
sets storage error. */
29
int acl_mailbox_right_lookup(struct mailbox *box, unsigned int right_idx);