[dovecot-cvs] dovecot/src/lib-storage/list mailbox-list-fs-iter.c, 1.3, 1.4 mailbox-list-maildir-iter.c, 1.3, 1.4

tss at dovecot.org tss at dovecot.org
Fri Mar 30 22:45:56 EEST 2007


Update of /var/lib/cvs/dovecot/src/lib-storage/list
In directory talvi:/tmp/cvs-serv31935/list

Modified Files:
	mailbox-list-fs-iter.c mailbox-list-maildir-iter.c 
Log Message:
cleanup



Index: mailbox-list-fs-iter.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/list/mailbox-list-fs-iter.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- mailbox-list-fs-iter.c	29 Mar 2007 07:59:24 -0000	1.3
+++ mailbox-list-fs-iter.c	30 Mar 2007 19:45:54 -0000	1.4
@@ -80,14 +80,10 @@
 fs_list_iter_init(struct mailbox_list *_list, const char *mask,
 		  enum mailbox_list_iter_flags flags)
 {
-	struct fs_mailbox_list *list =
-		(struct fs_mailbox_list *)_list;
 	struct fs_list_iterate_context *ctx;
 	const char *path, *virtual_path;
 	DIR *dirp;
 
-	mailbox_list_clear_error(&list->list);
-
 	ctx = i_new(struct fs_list_iterate_context, 1);
 	ctx->ctx.list = _list;
 	ctx->ctx.flags = flags;

Index: mailbox-list-maildir-iter.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/list/mailbox-list-maildir-iter.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- mailbox-list-maildir-iter.c	29 Mar 2007 07:59:24 -0000	1.3
+++ mailbox-list-maildir-iter.c	30 Mar 2007 19:45:54 -0000	1.4
@@ -238,15 +238,11 @@
 maildir_list_iter_init(struct mailbox_list *_list, const char *mask,
 		       enum mailbox_list_iter_flags flags)
 {
-	struct maildir_mailbox_list *list =
-		(struct maildir_mailbox_list *)_list;
 	struct maildir_list_iterate_context *ctx;
         struct imap_match_glob *glob;
 	const char *dir, *p;
 	pool_t pool;
 
-	mailbox_list_clear_error(&list->list);
-
 	pool = pool_alloconly_create("maildir_list", 1024);
 	ctx = p_new(pool, struct maildir_list_iterate_context, 1);
 	ctx->ctx.list = _list;
@@ -264,7 +260,7 @@
 			ctx->ctx.failed = TRUE;
 			return &ctx->ctx;
 		}
-	} else if ((list->list.flags & MAILBOX_LIST_FLAG_FULL_FS_ACCESS) != 0 &&
+	} else if ((_list->flags & MAILBOX_LIST_FLAG_FULL_FS_ACCESS) != 0 &&
 		   (p = strrchr(mask, '/')) != NULL) {
 		dir = t_strdup_until(mask, p);
 		ctx->prefix = p_strdup_until(pool, mask, p+1);



More information about the dovecot-cvs mailing list