php8.5
Home/ Manual/ imap / functions/ imap_setacl

imap_setacl

PHP function Edit on GitHub ✎

(PHP 4 >= 4.0.7, PHP 5, PHP 7, PHP 8)

Sets the ACL for a given mailbox

Description

imap_setacl(IMAP\Connection $imap, string $mailbox, string $user_id, string $rights): bool

Sets the ACL for a giving mailbox.

Parameters

mailbox

The mailbox name, see imap_open() for more information

Insecure

user_id

The user to give the rights to.

rights

The rights to give to the user. Passing an empty string will delete acl.

Return Values

Success

Changelog

VersionDescription

Notes

This function is currently only available to users of the c-client2000 or greater library.

See Also

Source: reference/imap/functions/imap-setacl.xml · from the official PHP manual (php/doc-en)