Heiko Schlichting
2008-Jul-23 16:47 UTC
[Dovecot] \HasNoChildren versus \Noinferiors in ACL plugin and no CREATE permission
Hi, using ACL plugin with dovecot 1.1.1 I expected that a Maildir was listed as * LIST (\NoInferiors) "/" "Foldername" if "create" (k) permission is not set in ACLs and there doesn't exists any subfolders. But to my surprise, dovecot gives the following output: * LIST (\HasNoChildren) "/" "Foldername" Therefore the client (here: SquirrelMail) does not know about the inability to create subfolders and offers "Foldername" in the selection for the parent folder. If there are exists already subfolders of "Foldername", dovecot has to use \HasChildren and not \NoInferiors. But in other cases \NoInferiors should be the correct answer and not \HasNoChildren. Or am I totally wrong? Heiko Heiko Schlichting Freie Universit?t Berlin heiko at FU-Berlin.DE Zentraleinrichtung f?r Datenverarbeitung (ZEDAT) Telefon +49 30 838-54327 Fabeckstra?e 32 Telefax +49 30 838454327 14195 Berlin
Timo Sirainen
2008-Jul-23 16:56 UTC
[Dovecot] \HasNoChildren versus \Noinferiors in ACL plugin and no CREATE permission
On Wed, 2008-07-23 at 18:47 +0200, Heiko Schlichting wrote:> Hi, > > using ACL plugin with dovecot 1.1.1 I expected that a Maildir was listed as > > * LIST (\NoInferiors) "/" "Foldername" > > if "create" (k) permission is not set in ACLs and there doesn't exists any > subfolders. But to my surprise, dovecot gives the following output: > > * LIST (\HasNoChildren) "/" "Foldername" > > Therefore the client (here: SquirrelMail) does not know about the inability > to create subfolders and offers "Foldername" in the selection for the > parent folder. > > If there are exists already subfolders of "Foldername", dovecot has to use > \HasChildren and not \NoInferiors. But in other cases \NoInferiors should > be the correct answer and not \HasNoChildren. Or am I totally wrong?Any idea how other servers do this? I don't think \Noinferiors would be correct, because: ?> \Noinferiors > It is not possible for any child levels of hierarchy to exist > under this name; no child levels exist now and none can be > created in the future.Surely it's possible to create mailboxes and it can have child mailboxes in future. It's just that the logged in user doesn't currently have permissions to create such mailbox. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20080723/0d6d6cdd/attachment-0002.bin>