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.
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"?
Bernhard
-- Bernhard Herzog | ++49-541-335 08 30 | http://www.intevation.de/ Intevation GmbH, Neuer Graben 17, 49074 Osnabrück | AG Osnabrück, HR B 18998 Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner