Re: [Dovecot] Question about Dovecot-ACLs

2011-06-13 Thread Timo Sirainen
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", "em...@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=em...@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?




[Dovecot] Question about Dovecot-ACLs

2011-06-09 Thread Jan Phillip Greimann

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", "em...@domain.tld", "lrwstipekxa");

The acl-file looks so:
  ~:> cat dovecot-acl
  user=em...@domain.tld akxeilprwts

But i have a problem with the follow function:
  imap_setacl($mbox,"INBOX/test", "em...@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=em...@domain.tld

Did this affect dovecot by any way?

Thanks,
Jan