[Dovecot] patch: list shared namespace

Timo Sirainen tss at iki.fi
Fri Oct 31 22:08:40 EET 2008


On Oct 31, 2008, at 10:03 PM, Bernhard Herzog wrote:

> On 31.10.2008, Timo Sirainen wrote:
>> Right, it could (would) cause mailboxes to be listed that aren't
>> supposed to be listed. I think you'll also have a problem if e.g.  
>> "foo"
>> exists but doesn't have 'l' right and "foo/bar" exists and has 'l'
>> right. I think % will currently not list "foo". If it behaved  
>> correctly
>> it should list it as non-existing mailbox.
>
> That case seems to work correctly with my patch.

Oh. Wonder why..

>  In my tests so far, it
> basically behaves exactly like you explain:
>
>> LIST % -> List "foo" as non-existing
>> LIST foo -> List "foo" as non-existing
>> LIST * -> List "foo/bar" only
>
> Maybe there are circumstances that I didn't encounter yet, where it  
> does
> indeed fail.

Well, the main failure is that if the child mailboxes aren't listable,  
the parent mailbox shouldn't be listed either. Like if I share a  
secret/dovecot corp/contracts/google/october mailbox to someone then  
other people really shouldn't be seeing secret/dovecot corp/contracts/ 
google :)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20081031/75d37c4b/attachment.bin 


More information about the dovecot mailing list