[Dovecot] format of file dict

Timo Sirainen tss at iki.fi
Fri Jan 22 22:48:18 EET 2010


On Fri, 2010-01-22 at 15:38 -0500, Frank Cusack wrote:
> For shared (between users) mailboxes, I am using a file dict.
> 
> plugin {
>   acl_shared_dict = file:/etc/dovecot/acl_shared_dict/shared.db
> }
> 
> What is the format of this file?  I would like to manage it directly
> rather than have SETACL update it.

Will you also allow users to use SETACL command? If so, you should do
locking the same way as Dovecot.

> I see lines which describe a
> sharing entry (the format of those looks obvious) but also lines
> with just a '1'.
> 
> Do I just need to separate entries by lines with just '1' in them?

The format is:

key
value
key
value
..

For acl_shared_dict the key is the important part, value is always 1.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20100122/d43ff3a0/attachment.bin 


More information about the dovecot mailing list