# HG changeset patch # User Timo Sirainen # Date 1300918259 -7200 # Node ID 84354efc93bdc7d704461ebf44ba785ee1d3c189 # Parent 65f4791d0eb4b544f14a76bab41f92e4b7bdba1f 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 -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) {