diff src/plugins/acl/acl-plugin.c @ 4808:93bc9770f938 HEAD

Initial code for separation of mailbox accessing and directory layout handling. It's not yet possible to change the default layouts though.
author Timo Sirainen <tss@iki.fi>
date Thu, 16 Nov 2006 02:16:31 +0200
parents 73573b9ecb00
children 3ed0749731d2
line wrap: on
line diff
--- a/src/plugins/acl/acl-plugin.c	Wed Nov 15 21:14:08 2006 +0200
+++ b/src/plugins/acl/acl-plugin.c	Thu Nov 16 02:16:31 2006 +0200
@@ -2,6 +2,7 @@
 
 #include "lib.h"
 #include "mail-storage.h"
+#include "mailbox-list-private.h"
 #include "acl-api.h"
 #include "acl-plugin.h"
 
@@ -11,6 +12,7 @@
 extern void (*hook_mail_storage_created)(struct mail_storage *storage);
 
 void (*acl_next_hook_mail_storage_created)(struct mail_storage *storage);
+void (*acl_next_hook_mailbox_list_created)(struct mailbox_list *list);
 
 void acl_plugin_init(void)
 {
@@ -18,6 +20,9 @@
 		acl_next_hook_mail_storage_created =
 			hook_mail_storage_created;
 		hook_mail_storage_created = acl_mail_storage_created;
+
+		acl_next_hook_mailbox_list_created = hook_mailbox_list_created;
+		hook_mailbox_list_created = acl_mailbox_list_created;
 	}
 }
 
@@ -26,5 +31,7 @@
 	if (acl_next_hook_mail_storage_created != NULL) {
 		hook_mail_storage_created =
 			acl_next_hook_mail_storage_created;
+		hook_mailbox_list_created =
+			acl_next_hook_mailbox_list_created;
 	}
 }