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 — 指定したメールボックスの ACL を設定する
説明
bool imap_setacl ( resource $imap_stream, string $mailbox, string $id, string $rights )
警告
この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。
パラメータ
- imap_stream
imap_open() が返す IMAP ストリーム。
- mailbox
メールボックス名。詳細は imap_open() を参照ください。
- id
- rights
返り値
成功した場合に TRUE を、失敗した場合に FALSE を返します。
注意
この関数は、現在 c-client2000 以降のユーザのみ使用可能です。
参考
| imap_getacl() |
imap_setacl
panayotis at yellownetroad dot com
07-Oct-2002 08:34
07-Oct-2002 08:34
masneyb at seul dot org
28-Jun-2002 02:11
28-Jun-2002 02: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")