dovecot-1.1: quota plugin broke other plugins' namespace_created...

dovecot at dovecot.org dovecot at dovecot.org
Thu Dec 10 20:28:25 EET 2009


details:   http://hg.dovecot.org/dovecot-1.1/rev/576020ceda60
changeset: 8366:576020ceda60
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Dec 10 13:28:02 2009 -0500
description:
quota plugin broke other plugins' namespace_created hooks.

diffstat:

2 files changed, 4 insertions(+)
src/plugins/quota/quota-plugin.h  |    1 +
src/plugins/quota/quota-storage.c |    3 +++

diffs (24 lines):

diff -r af6526158608 -r 576020ceda60 src/plugins/quota/quota-plugin.h
--- a/src/plugins/quota/quota-plugin.h	Mon Nov 09 21:38:55 2009 -0500
+++ b/src/plugins/quota/quota-plugin.h	Thu Dec 10 13:28:02 2009 -0500
@@ -6,6 +6,7 @@ extern void (*quota_next_hook_mail_stora
 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);
 
 /* "quota" symbol already exists in OSX, so we'll use this slightly uglier
    name. */
diff -r af6526158608 -r 576020ceda60 src/plugins/quota/quota-storage.c
--- a/src/plugins/quota/quota-storage.c	Mon Nov 09 21:38:55 2009 -0500
+++ b/src/plugins/quota/quota-storage.c	Thu Dec 10 13:28:02 2009 -0500
@@ -334,6 +334,9 @@ static void quota_mailbox_sync_notify(st
 		quota_recalculate(qbox->expunge_qt);
 		qbox->recalculate = TRUE;
 	}
+
+	if (quota_next_hook_mail_namespaces_created != NULL)
+		quota_next_hook_mail_namespaces_created(namespaces);
 }
 
 static int quota_mailbox_sync_deinit(struct mailbox_sync_context *ctx,


More information about the dovecot-cvs mailing list