[Dovecot] New global ACL mailbox pattern feature in HG

Timo Sirainen tss at iki.fi
Fri Feb 7 20:37:44 UTC 2014


On 30.1.2014, at 5.23, Thomas Leuxner <tlx at leuxner.net> wrote:

> * Thomas Leuxner <tlx at leuxner.net> 2014.01.28 08:29:
> 
>> $ cat global-acl 
>> INBOX owner lrwstiekxap
>> Public* group=PublicMailboxAdmins lrwsik
> 
> Following up on this, there seems to be an issue with separators. Mailbox creation crashes, while it used to work fine with the same configuration w/o the 'global-acl' file. Interestingly enough same syntax works for the public namespace (e.g. "mailbox create -u tlx at leuxner.net Public/Test" ):
> 
> $ doveadm acl get -u tlx at leuxner.net INBOX
> ID    Global Rights
> owner        admin create delete expunge insert lookup post read write write-deleted write-seen
> 
> $ doveadm mailbox create -u tlx at leuxner.net "Shops/Test"
> doveadm(tlx at leuxner.net): Panic: file acl-global-file.c: line 163 (acl_global_file_find_rights): assertion failed: (file->last_refresh_time != 0)

Fixed: http://hg.dovecot.org/dovecot-2.2/rev/c69ca1f5bc34

Also I was thinking that maybe it could support a syntax like:

Public,Public/* owner lrw

Or with more weirder mailbox names use quoting:

"foo,bar baz",another owner lrw



More information about the dovecot mailing list