imap_getacl

(PHP 5)

imap_getaclGets the ACL for a given mailbox

Описание

array imap_getacl ( resource $imap_stream , string $mailbox )

Gets the ACL for a given mailbox.

Список параметров

imap_stream

Поток IMAP, полученный из imap_open().

mailbox

The mailbox name, see imap_open() for more information

Возвращаемые значения

Returns an associative array of "folder" => "acl" pairs.

Примеры

Пример #1 imap_getacl() example

<?php

print_r
(imap_getacl($conn_id'user.joecool'));

?>

Результатом выполнения данного примера будет что-то подобное:

Array
(
    [asubfolder] => lrswipcda
    [anothersubfolder] => lrswipcda
)

Примечания

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

Смотрите также

Коментарии

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.
2016-03-07 16:13:15
http://php5.kiev.ua/manual/ru/function.imap-getacl.html

    Поддержать сайт на родительском проекте КГБ