dovecot-2.2: doveadm: Don't use MAILBOX_LIST_ITER_RAW_LIST when ...

dovecot at dovecot.org dovecot at dovecot.org
Thu Apr 11 17:35:43 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/81a111f1c420
changeset: 16280:81a111f1c420
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Apr 11 17:35:31 2013 +0300
description:
doveadm: Don't use MAILBOX_LIST_ITER_RAW_LIST when listing mailboxes.
That skips ACLs and mailbox list. There's really no good reason to use that
by default.

diffstat:

 src/doveadm/doveadm-mail-altmove.c        |  1 -
 src/doveadm/doveadm-mail-copymove.c       |  1 -
 src/doveadm/doveadm-mail-expunge.c        |  1 -
 src/doveadm/doveadm-mail-import.c         |  1 -
 src/doveadm/doveadm-mail-index.c          |  1 -
 src/doveadm/doveadm-mail-mailbox-status.c |  1 -
 src/doveadm/doveadm-mail-mailbox.c        |  1 -
 src/doveadm/doveadm-mail-search.c         |  1 -
 src/doveadm/doveadm-mail.c                |  1 -
 9 files changed, 0 insertions(+), 9 deletions(-)

diffs (99 lines):

diff -r 309abf35676e -r 81a111f1c420 src/doveadm/doveadm-mail-altmove.c
--- a/src/doveadm/doveadm-mail-altmove.c	Thu Apr 11 16:54:53 2013 +0300
+++ b/src/doveadm/doveadm-mail-altmove.c	Thu Apr 11 17:35:31 2013 +0300
@@ -57,7 +57,6 @@
 {
 	struct altmove_cmd_context *ctx = (struct altmove_cmd_context *)_ctx;
 	const enum mailbox_list_iter_flags iter_flags =
-		MAILBOX_LIST_ITER_RAW_LIST |
 		MAILBOX_LIST_ITER_NO_AUTO_BOXES |
 		MAILBOX_LIST_ITER_RETURN_NO_FLAGS;
 	struct doveadm_mailbox_list_iter *iter;
diff -r 309abf35676e -r 81a111f1c420 src/doveadm/doveadm-mail-copymove.c
--- a/src/doveadm/doveadm-mail-copymove.c	Thu Apr 11 16:54:53 2013 +0300
+++ b/src/doveadm/doveadm-mail-copymove.c	Thu Apr 11 17:35:31 2013 +0300
@@ -92,7 +92,6 @@
 {
 	struct copy_cmd_context *ctx = (struct copy_cmd_context *)_ctx;
 	const enum mailbox_list_iter_flags iter_flags =
-		MAILBOX_LIST_ITER_RAW_LIST |
 		MAILBOX_LIST_ITER_NO_AUTO_BOXES |
 		MAILBOX_LIST_ITER_RETURN_NO_FLAGS;
 	struct doveadm_mailbox_list_iter *iter;
diff -r 309abf35676e -r 81a111f1c420 src/doveadm/doveadm-mail-expunge.c
--- a/src/doveadm/doveadm-mail-expunge.c	Thu Apr 11 16:54:53 2013 +0300
+++ b/src/doveadm/doveadm-mail-expunge.c	Thu Apr 11 17:35:31 2013 +0300
@@ -197,7 +197,6 @@
 cmd_expunge_run(struct doveadm_mail_cmd_context *ctx, struct mail_user *user)
 {
 	const enum mailbox_list_iter_flags iter_flags =
-		MAILBOX_LIST_ITER_RAW_LIST |
 		MAILBOX_LIST_ITER_NO_AUTO_BOXES |
 		MAILBOX_LIST_ITER_RETURN_NO_FLAGS;
 	struct doveadm_mailbox_list_iter *iter;
diff -r 309abf35676e -r 81a111f1c420 src/doveadm/doveadm-mail-import.c
--- a/src/doveadm/doveadm-mail-import.c	Thu Apr 11 16:54:53 2013 +0300
+++ b/src/doveadm/doveadm-mail-import.c	Thu Apr 11 17:35:31 2013 +0300
@@ -135,7 +135,6 @@
 {
 	struct import_cmd_context *ctx = (struct import_cmd_context *)_ctx;
 	const enum mailbox_list_iter_flags iter_flags =
-		MAILBOX_LIST_ITER_RAW_LIST |
 		MAILBOX_LIST_ITER_NO_AUTO_BOXES |
 		MAILBOX_LIST_ITER_RETURN_NO_FLAGS;
 	struct doveadm_mailbox_list_iter *iter;
diff -r 309abf35676e -r 81a111f1c420 src/doveadm/doveadm-mail-index.c
--- a/src/doveadm/doveadm-mail-index.c	Thu Apr 11 16:54:53 2013 +0300
+++ b/src/doveadm/doveadm-mail-index.c	Thu Apr 11 17:35:31 2013 +0300
@@ -162,7 +162,6 @@
 {
 	struct index_cmd_context *ctx = (struct index_cmd_context *)_ctx;
 	const enum mailbox_list_iter_flags iter_flags =
-		MAILBOX_LIST_ITER_RAW_LIST |
 		MAILBOX_LIST_ITER_NO_AUTO_BOXES |
 		MAILBOX_LIST_ITER_RETURN_NO_FLAGS |
 		MAILBOX_LIST_ITER_STAR_WITHIN_NS;
diff -r 309abf35676e -r 81a111f1c420 src/doveadm/doveadm-mail-mailbox-status.c
--- a/src/doveadm/doveadm-mail-mailbox-status.c	Thu Apr 11 16:54:53 2013 +0300
+++ b/src/doveadm/doveadm-mail-mailbox-status.c	Thu Apr 11 17:35:31 2013 +0300
@@ -146,7 +146,6 @@
 {
 	struct status_cmd_context *ctx = (struct status_cmd_context *)_ctx;
 	enum mailbox_list_iter_flags iter_flags =
-		MAILBOX_LIST_ITER_RAW_LIST |
 		MAILBOX_LIST_ITER_NO_AUTO_BOXES |
 		MAILBOX_LIST_ITER_RETURN_NO_FLAGS;
 	struct doveadm_mailbox_list_iter *iter;
diff -r 309abf35676e -r 81a111f1c420 src/doveadm/doveadm-mail-mailbox.c
--- a/src/doveadm/doveadm-mail-mailbox.c	Thu Apr 11 16:54:53 2013 +0300
+++ b/src/doveadm/doveadm-mail-mailbox.c	Thu Apr 11 17:35:31 2013 +0300
@@ -108,7 +108,6 @@
 {
 	struct list_cmd_context *ctx = (struct list_cmd_context *)_ctx;
 	enum mailbox_list_iter_flags iter_flags =
-		MAILBOX_LIST_ITER_RAW_LIST |
 		MAILBOX_LIST_ITER_RETURN_NO_FLAGS;
 	struct doveadm_mailbox_list_iter *iter;
 	const struct mailbox_info *info;
diff -r 309abf35676e -r 81a111f1c420 src/doveadm/doveadm-mail-search.c
--- a/src/doveadm/doveadm-mail-search.c	Thu Apr 11 16:54:53 2013 +0300
+++ b/src/doveadm/doveadm-mail-search.c	Thu Apr 11 17:35:31 2013 +0300
@@ -47,7 +47,6 @@
 cmd_search_run(struct doveadm_mail_cmd_context *ctx, struct mail_user *user)
 {
 	const enum mailbox_list_iter_flags iter_flags =
-		MAILBOX_LIST_ITER_RAW_LIST |
 		MAILBOX_LIST_ITER_NO_AUTO_BOXES |
 		MAILBOX_LIST_ITER_RETURN_NO_FLAGS;
 	struct doveadm_mailbox_list_iter *iter;
diff -r 309abf35676e -r 81a111f1c420 src/doveadm/doveadm-mail.c
--- a/src/doveadm/doveadm-mail.c	Thu Apr 11 16:54:53 2013 +0300
+++ b/src/doveadm/doveadm-mail.c	Thu Apr 11 17:35:31 2013 +0300
@@ -222,7 +222,6 @@
 				struct mail_user *user)
 {
 	const enum mailbox_list_iter_flags iter_flags =
-		MAILBOX_LIST_ITER_RAW_LIST |
 		MAILBOX_LIST_ITER_RETURN_NO_FLAGS |
 		MAILBOX_LIST_ITER_STAR_WITHIN_NS;
 	const enum mail_namespace_type ns_mask = MAIL_NAMESPACE_TYPE_MASK_ALL;


More information about the dovecot-cvs mailing list