#45741 [Bgs]: IMAP ACL manage

From: Date: Thu, 07 Aug 2008 14:51:42 +0000
Subject: #45741 [Bgs]: IMAP ACL manage
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-127732@lists.php.net to get a copy of this message
ID: 45741 User updated by: pavel at icewarp dot com Reported By: pavel at icewarp dot com Status: Bogus Bug Type: IMAP related Operating System: Windows Vista PHP Version: 5.2.6 New Comment: Hi, I found what you are mentioning right in comments on this page, but 1, the command you described set none rights for user 2, if you insist on the fact that imap_setacl ($conn, $mbox, $userid, "") deletes ACL, how do I set empty rights to some user ? Thanks... Previous Comments: ------------------------------------------------------------------------ [2008-08-07 09:42:54] jani@php.net imap_setacl ($conn, $mbox, $userid, "") deletes them. ------------------------------------------------------------------------ [2008-08-07 09:37:26] pavel at icewarp dot com Description: ------------ Hi, is there any chance to write my own command to stream opened by imap_open ??? Since there is no function suitable to perform deletemailboxacl,I really need some solution I want to do something like this: <?php $stream = imap_open('127.0.0.1:143','john','doe'); fputs($stream,'a LIST "" "*"'); $response = fread($stream,4096); ?> I really do not want to do something like this: <?php //This is already done in my code $stream = imap_open('{127.0.0.1:143}','john','doe'); $folder = 'INBOX'; imap_reopen($stream,'{127.0.0.1:143}'.$folder); $opened = $folder; //Now I want to remove ACL for user 'mary@domain.com' //so I've got to following operation to remove acl and return //my application to the previus state: //Close php imap stream imap_close($stream); //Open my imap stream $stream = fsockopen('127.0.0.1','143'); //Re-login fputs($stream,'a LOGIN john doe'."\n"); $response = fread($stream,4096); //Re-select folder fputs($stream,'a SELECT '.$folder."\n"); $response = fread($stream,4096); //Remove ACL fputs($stream,'a DELETEACL '.$folder.' mary@domain.com'."\n"); $response = fread($stream,4096); //Close my imap stream connection fclose($stream); //Re-open php imap stream $stream = imap_open('{127.0.0.1:143}','john','doe'); //Re-open last folder imap_reopen($stream,$folder); //Continue with work..... ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=45741&edit=1

« previous php.bugs (#127732) next »