note 118955 added to function.imap-getacl
| From: | hartmut dot woehrle at hwds dot ch | Date: | Mon, 07 Mar 2016 14:13:17 +0000 |
| Subject: | note 118955 added to function.imap-getacl | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-205108@lists.php.net to get a copy of this message | ||
Maybe the functionality changed over the years but the examples are wrong.
It does NOT return [subfolder] => ACL
At the moment (PHP5) the usage and answer of imap_getacl is the following:
You ask for the folder and get the ACLs for exactly this folder (no Wildcards)
Example:
When you have the folder Business in your mailbox
print_r(imap_getacl($connection , "user/john.doe/Business"));
returns the following:
Array
(
[john.doe@example.com] => lrswipkxtecda
[cyrus@example.com] => lrswipkxtecd
[secretary@example.com] => lrsp
[department@example.com] => lrs
)
Which means you have to loop over your directories (imap_list) and list the ACL for ever folder
seperately.
----
Server IP: 72.52.91.14
Probable Submitter: 212.243.178.130
----
Manual Page -- http://php.net/manual/en/function.imap-getacl.php
Edit -- https://master.php.net/note/edit/118955
Del: integrated -- https://master.php.net/note/delete/118955/integrated
Del: useless -- https://master.php.net/note/delete/118955/useless
Del: bad code -- https://master.php.net/note/delete/118955/bad+code
Del: spam -- https://master.php.net/note/delete/118955/spam
Del: non-english -- https://master.php.net/note/delete/118955/non-english
Del: in docs -- https://master.php.net/note/delete/118955/in+docs
Del: other reasons-- https://master.php.net/note/delete/118955
Reject -- https://master.php.net/note/reject/118955
Search -- https://master.php.net/manage/user-notes.php