dovecot-2.0: lib-storage: Removed extra "don't allow INBOX to be...

dovecot at dovecot.org dovecot at dovecot.org
Thu Mar 24 00:11:01 EET 2011


details:   http://hg.dovecot.org/dovecot-2.0/rev/84354efc93bd
changeset: 12700:84354efc93bd
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Mar 24 00:10:59 2011 +0200
description:
lib-storage: Removed extra "don't allow INBOX to be deleted" check.
It's already checked in places where it could cause actual harm
(accidentally deleting other mailboxes) and where it's not allowed (IMAP).
This allows dsync backup to delete unwanted INBOX if the mail location
settings allow it.

diffstat:

 src/lib-storage/mail-storage.c |  5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diffs (15 lines):

diff -r 65f4791d0eb4 -r 84354efc93bd src/lib-storage/mail-storage.c
--- a/src/lib-storage/mail-storage.c	Thu Mar 24 00:01:16 2011 +0200
+++ b/src/lib-storage/mail-storage.c	Thu Mar 24 00:10:59 2011 +0200
@@ -769,11 +769,6 @@
 				       "Storage root can't be deleted");
 		return -1;
 	}
-	if (box->inbox_any) {
-		mail_storage_set_error(box->storage, MAIL_ERROR_NOTPOSSIBLE,
-				       "INBOX can't be deleted.");
-		return -1;
-	}
 
 	box->deleting = TRUE;
 	if (mailbox_open(box) < 0) {


More information about the dovecot-cvs mailing list