IMAP_GETACL(3) 1 IMAP_GETACL(3)
imap_getacl - Gets the ACL for a given mailbox
SYNOPSIS
array imap_getacl (resource $imap_stream, string $mailbox)
DESCRIPTION
Gets the ACL for a given mailbox.
PARAMETERS
o $
imap_stream -An IMAP stream returned by imap_open(3).
o $mailbox
- The mailbox name, see imap_open(3) for more information
RETURN VALUES
Returns an associative array of "folder" => "acl" pairs.
EXAMPLES
Example #1
imap_getacl(3) example
<?php
print_r(imap_getacl($conn_id, 'user.joecool'));
?>
The above example will output something similar to:
Array
(
[asubfolder] => lrswipcda
[anothersubfolder] => lrswipcda
)
NOTES
This function is currently only available to users of the c-client2000 or greater library.
SEE ALSO
imap_setacl(3).
PHP Documentation Group IMAP_GETACL(3)