From: Timo Sirainen Date: Wed, 23 Mar 2011 22:10:59 +0000 (+0200) Subject: lib-storage: Removed extra "don't allow INBOX to be deleted" check. X-Git-Tag: 2.0.12~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab670459e21722e9e565cd84ffc982a6592a0bbf;p=thirdparty%2Fdovecot%2Fcore.git 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. --- diff --git a/src/lib-storage/mail-storage.c b/src/lib-storage/mail-storage.c index b8770ffdcd..b6a460972b 100644 --- a/src/lib-storage/mail-storage.c +++ b/src/lib-storage/mail-storage.c @@ -769,11 +769,6 @@ int mailbox_delete(struct mailbox *box) "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) {