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

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


details:   http://hg.dovecot.org/dovecot-1.2/rev/5e2206e3c750
changeset: 9505:5e2206e3c750
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, 5 insertions(+), 1 deletion(-)
src/plugins/quota/quota-plugin.h  |    1 +
src/plugins/quota/quota-storage.c |    5 ++++-

diffs (23 lines):

diff -r fe1f31b4e21e -r 5e2206e3c750 src/plugins/quota/quota-plugin.h
--- 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_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);
 
 extern struct quota_settings *quota_set;
 
diff -r fe1f31b4e21e -r 5e2206e3c750 src/plugins/quota/quota-storage.c
--- 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 @@ void quota_mail_namespaces_created(struc
 				roots[i]->ns_prefix);
 		}
 	}
-}
+
+	if (quota_next_hook_mail_namespaces_created != NULL)
+		quota_next_hook_mail_namespaces_created(namespaces);
+}


More information about the dovecot-cvs mailing list