Mercurial > dovecot > original-hg > dovecot-1.2
diff src/lib-storage/mailbox-list.c @ 7113:d5dd0841b2db HEAD
Fixes to handling INBOX with non-INBOX namespaces.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 06 Jan 2008 00:48:18 +0200 |
parents | 7ed926ed7aa4 |
children | e6693a0ec8e1 |
line wrap: on
line diff
--- a/src/lib-storage/mailbox-list.c Sun Jan 06 00:19:10 2008 +0200 +++ b/src/lib-storage/mailbox-list.c Sun Jan 06 00:48:18 2008 +0200 @@ -392,7 +392,8 @@ "Invalid mailbox name"); return -1; } - if (strcmp(name, "INBOX") == 0) { + if (strcmp(name, "INBOX") == 0 && + (list->ns->flags & NAMESPACE_FLAG_INBOX) != 0) { mailbox_list_set_error(list, MAIL_ERROR_NOTPOSSIBLE, "INBOX can't be deleted."); return -1;