changeset 12907:84354efc93bd

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.
author Timo Sirainen <tss@iki.fi>
date Thu, 24 Mar 2011 00:10:59 +0200
parents 65f4791d0eb4
children 4242a7bf8918
files src/lib-storage/mail-storage.c
diffstat 1 files changed, 0 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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) {