imap_getacl
PHP function
Edit on GitHub ✎
(PHP 5, PHP 7, PHP 8)
Gets the ACL for a given mailbox
Description
imap_getacl(IMAP\Connection $imap, string $mailbox): array|false
Gets the ACL for a given mailbox.
Parameters
mailboxThe mailbox name, see
imap_open()for more informationInsecure
Return Values
Returns an associative array of "folder" => "acl" pairs, Falseforfailure.
Changelog
| Version | Description |
|---|
Examples
imap_getacl() example
php
<?php
print_r(imap_getacl($imap, 'user.joecool'));
?>The above example will output something similar to:
output
Array
(
[asubfolder] => lrswipcda
[anothersubfolder] => lrswipcda
)Notes
This function is currently only available to users of the c-client2000 or greater library.