]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Removed extra "don't allow INBOX to be deleted" check.
authorTimo Sirainen <tss@iki.fi>
Wed, 23 Mar 2011 22:10:59 +0000 (00:10 +0200)
committerTimo Sirainen <tss@iki.fi>
Wed, 23 Mar 2011 22:10:59 +0000 (00:10 +0200)
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.

src/lib-storage/mail-storage.c

index b8770ffdcd05ee89498a44e8d3f9ed50d956d411..b6a460972b2fa762cfbf95ea781657313667eba3 100644 (file)
@@ -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) {