From: pavel at icewarp dot com Operating system: Windows Vista PHP version: 5.2.6 PHP Bug Type: IMAP related Bug description: IMAP ACL manage
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 '[EMAIL PROTECTED]' //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.' [EMAIL PROTECTED]'."\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 bug report at http://bugs.php.net/?id=45741&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45741&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45741&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45741&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45741&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45741&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45741&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=45741&r=needscript Try newer version: http://bugs.php.net/fix.php?id=45741&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45741&r=support Expected behavior: http://bugs.php.net/fix.php?id=45741&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45741&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45741&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45741&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45741&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45741&r=dst IIS Stability: http://bugs.php.net/fix.php?id=45741&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45741&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45741&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45741&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=45741&r=mysqlcfg