Mercurial > dovecot > original-hg > dovecot-1.2
changeset 9505:5e2206e3c750 HEAD
quota plugin broke other plugins' namespace_created hooks.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 10 Dec 2009 13:28:02 -0500 |
parents | fe1f31b4e21e |
children | 09bed694c6ca |
files | src/plugins/quota/quota-plugin.h src/plugins/quota/quota-storage.c |
diffstat | 2 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugins/quota/quota-plugin.h Wed Dec 09 20:06:20 2009 -0500 +++ b/src/plugins/quota/quota-plugin.h Thu Dec 10 13:28:02 2009 -0500 @@ -7,6 +7,7 @@ extern void (*quota_next_hook_mail_storage_created) (struct mail_storage *storage); extern void (*quota_next_hook_mailbox_list_created)(struct mailbox_list *list); +extern void (*quota_next_hook_mail_namespaces_created)(struct mail_namespace *namespaces); extern struct quota_settings *quota_set;
--- a/src/plugins/quota/quota-storage.c Wed Dec 09 20:06:20 2009 -0500 +++ b/src/plugins/quota/quota-storage.c Thu Dec 10 13:28:02 2009 -0500 @@ -601,4 +601,7 @@ roots[i]->ns_prefix); } } + + if (quota_next_hook_mail_namespaces_created != NULL) + quota_next_hook_mail_namespaces_created(namespaces); }