I noticed that using:
imap_setacl ($conn, $mbox, $userid, "")
will act like:
"deleteaclmailbox $mbox $userid" (remove the ACL on mailbox for userid).
imap_setacl
(PHP 4 >= 4.0.7, PHP 5)
imap_setacl — Setzen der ACL für ein Postfach
Beschreibung
bool imap_setacl
( resource
$imap_stream
, string $mailbox
, string $id
, string $rights
)Setzt die Zugriffsrechte für ein Postfach.
Parameter-Liste
-
imap_stream -
Eine von imap_open() zurückgegebene IMAP-Verbindung.
-
mailbox -
Der Name des Postfachs, siehe imap_open() für nähere Informationen.
-
id -
Der Benutzer dessen Rechte geändert werden sollen.
-
rights -
Die zu setzenden Rechte oder ein leerer String um alle Rechte zu entziehen.
Rückgabewerte
Gibt bei Erfolg TRUE zurück. Im Fehlerfall wird FALSE zurückgegeben.
Anmerkungen
This function is currently only available to users of the c-client2000 or greater library.
imap_setacl
panayotis at yellownetroad dot com
07-Oct-2002 01:34
07-Oct-2002 01:34
masneyb at seul dot org
27-Jun-2002 07:11
27-Jun-2002 07:11
stream_id is the stream returned from imap_open
id is the user to give the rights to
rights is the rights to give to that user
So if I want to give user admin full access to my entire mailbox, I could run
imap_setacl ($conn, "user.masneyb", "admin", "lrswipcda")