Hi there, i try to create an php-script to control acl's for public folders without file-manipulation. For this i use imap_setacl() like this example: imap_setacl($mbox,"INBOX/test", "email at domain.tld", "lrwstipekxa"); The acl-file looks so: ~:> cat dovecot-acl user=email at domain.tld akxeilprwts But i have a problem with the follow function: imap_setacl($mbox,"INBOX/test", "email at domain.tld", ""); This command only delete the rights from the email, not the whole entry in my dovecot-acl file. Now my acl-file looks like this: ~:> cat dovecot-acl user=email at domain.tld Did this affect dovecot by any way? Thanks, Jan
On Thu, 2011-06-09 at 16:41 +0200, Jan Phillip Greimann wrote:> i try to create an php-script to control acl's for public folders > without file-manipulation.I don't know about PHP, but> But i have a problem with the follow function: > imap_setacl($mbox,"INBOX/test", "email at domain.tld", ""); > > This command only delete the rights from the email, not the whole entry > in my dovecot-acl file. > > Now my acl-file looks like this: > ~:> cat dovecot-acl > user=email at domain.tld > > Did this affect dovecot by any way?This is intentional. You remove user's all access that way. To delete ACLs you'd need to use DELETEACL command. Maybe there's an imap_deleteacl() function in PHP?