|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45741 IMAP ACL manage
Submitted: 2008-08-07 09:37 UTC Modified: 2008-08-07 14:51 UTC
Avg. Score:4.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: pavel at icewarp dot com Assigned:
Status: Not a bug Package: IMAP related
PHP Version: 5.2.6 OS: Windows Vista
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: pavel at icewarp dot com
New email:
PHP Version: OS:


 [2008-08-07 09:37 UTC] pavel at icewarp dot com

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:


$stream = imap_open('','john','doe');
fputs($stream,'a LIST "" "*"');

$response = fread($stream,4096);


I really do not want to do something like this:


//This is already done in my code
$stream = imap_open('{}','john','doe');

$folder = 'INBOX';
$opened = $folder;

//Now I want to remove ACL for user ''
//so I've got to following operation to remove acl and return //my application to the previus state:

//Close php imap stream

//Open my imap stream
$stream = fsockopen('','143');

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.''."\n");
$response = fread($stream,4096);

//Close my imap stream connection

//Re-open php imap stream
$stream = imap_open('{}','john','doe');
//Re-open last folder

//Continue with work.....



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-08-07 09:42 UTC]
imap_setacl ($conn, $mbox, $userid, "") deletes them. 
 [2008-08-07 14:51 UTC] pavel at icewarp dot com

  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 ?

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Tue Jan 31 18:03:43 2023 UTC