diff src/plugins/acl/acl-lookup-dict.c @ 9434:e374a365521d HEAD

Initial commit for making mail_storage:mailbox_list to be from 1:1 to n:n. This will allow namespaces to share the same storage and a single namespace to have multiple storages (multiple mailbox formats). Neither works currently, and this commit probably breaks some things.
author Timo Sirainen <tss@iki.fi>
date Tue, 02 Jun 2009 22:30:28 -0400
parents e4429faabf59
children 0059b2381024
line wrap: on
line diff
--- a/src/plugins/acl/acl-lookup-dict.c	Tue Jun 02 17:42:40 2009 -0400
+++ b/src/plugins/acl/acl-lookup-dict.c	Tue Jun 02 22:30:28 2009 -0400
@@ -104,10 +104,10 @@
 		return 0;
 
 	id = t_str_new(128);
-	backend = acl_storage_get_backend(ns->storage);
+	backend = acl_mailbox_list_get_backend(ns->list);
 	ctx = acl_backend_nonowner_lookups_iter_init(backend);
 	while ((ret = acl_backend_nonowner_lookups_iter_next(ctx, &name)) > 0) {
-		aclobj = acl_object_init_from_name(backend, ns->storage, name);
+		aclobj = acl_object_init_from_name(backend, name);
 
 		iter = acl_object_list_init(aclobj);
 		while ((ret = acl_object_list_next(iter, &rights)) > 0) {