array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'function.imap-setacl.php', 1 => 'imap_setacl', 2 => 'Sets the ACL for a given mailbox', ), 'up' => array ( 0 => 'ref.imap.php', 1 => 'IMAP Функції', ), 'prev' => array ( 0 => 'function.imap-set-quota.php', 1 => 'imap_set_quota', ), 'next' => array ( 0 => 'function.imap-setflag-full.php', 1 => 'imap_setflag_full', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/imap/functions/imap-setacl.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

imap_setacl

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

imap_setaclSets the ACL for a given mailbox

Опис

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

Sets the ACL for a giving mailbox.

Параметри

imap

Примірник IMAP\Connection.

mailbox

The mailbox name, see imap_open() for more information

Увага

Передавати у цей параметр неперевірені дані небезпечно, якщо увімкнено imap.enable_insecure_rsh.

user_id

The user to give the rights to.

rights

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

Значення, що повертаються

Повертає true у разі успіху або false в разі помилки.

Журнал змін

Версія Опис
8.1.0 Тепер параметр imap має бути примірником IMAP\Connection; раніше очікувався дійсний resource imap.

Примітки

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

Прогляньте також