[Dovecot] patch: list shared namespace

Timo Sirainen tss at iki.fi
Tue Nov 4 20:46:53 EET 2008


On Nov 4, 2008, at 8:38 PM, Bernhard Herzog wrote:

> On 31.10.2008, Timo Sirainen wrote:
>> On Tue, 2008-10-28 at 21:07 +0100, Bernhard Herzog wrote:
>>> I'm not sure the new hook is really needed.  The patch could perhaps
>>> just as well extend the acl_next_hook_mail_storage_created and
>>> acl_next_hook_mailbox_list_created functions to do the namespace
>>> creation when they're called for a shared storage or mailbox list.
>>
>> Perhaps hook_mail_namespaces_created?
>
> Or perhaps hook_mailbox_list_created?  It would be nice to make sure  
> that if a
> user makes a mailbox available to another user, that it shows up as  
> soon as
> the other user issues the next LIST command.

How would hook_mailbox_list_created help with that?

> What's the best way to determine whether the mailbox list or  
> namespace that
> was created is actually a shared namespace (or list for a shared  
> namespace)?
> Should I just check whether ns->storage->name equals "shared"?

ns->type == NAMESPACE_SHARED?

-------------- 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/20081104/ccdc768b/attachment.bin 


More information about the dovecot mailing list