dovecot-2.2: layout=index: If MAILBOX_LIST_FLAG_NO_MAIL_FILES is...

dovecot at dovecot.org dovecot at dovecot.org
Sat Dec 8 09:37:29 EET 2012


details:   http://hg.dovecot.org/dovecot-2.2/rev/0851ffee594b
changeset: 15458:0851ffee594b
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Dec 08 09:37:21 2012 +0200
description:
layout=index: If MAILBOX_LIST_FLAG_NO_MAIL_FILES is set, don't try to delete any mail files.

diffstat:

 src/lib-storage/list/mailbox-list-index-backend.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (14 lines):

diff -r 3c7cef3ffff9 -r 0851ffee594b src/lib-storage/list/mailbox-list-index-backend.c
--- a/src/lib-storage/list/mailbox-list-index-backend.c	Sat Dec 08 09:36:54 2012 +0200
+++ b/src/lib-storage/list/mailbox-list-index-backend.c	Sat Dec 08 09:37:21 2012 +0200
@@ -424,7 +424,9 @@
 	if (ret <= 0)
 		return ret;
 
-	if ((_list->flags & MAILBOX_LIST_FLAG_MAILBOX_FILES) != 0) {
+	if ((_list->flags & MAILBOX_LIST_FLAG_NO_MAIL_FILES) != 0) {
+		ret = 0;
+	} else if ((_list->flags & MAILBOX_LIST_FLAG_MAILBOX_FILES) != 0) {
 		ret = mailbox_list_delete_mailbox_file(_list, name, path);
 	} else {
 		ret = mailbox_list_delete_mailbox_nonrecursive(_list, name,


More information about the dovecot-cvs mailing list