]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: mailbox_create_fd() handles "no inferior mailboxes allowed" error now.
authorTimo Sirainen <tss@iki.fi>
Sun, 5 Dec 2010 22:11:01 +0000 (22:11 +0000)
committerTimo Sirainen <tss@iki.fi>
Sun, 5 Dec 2010 22:11:01 +0000 (22:11 +0000)
src/lib-storage/mail-storage.c

index a82a1e06064d3bf8d48317d65db2ebcb1d540cea..14b336168afe4b8fd38a9267173ead1c21f9100f 100644 (file)
@@ -1504,6 +1504,10 @@ int mailbox_create_fd(struct mailbox *box, const char *path, int flags,
        } else if (errno == ENOENT) {
                mailbox_set_deleted(box);
                return -1;
+       } else if (errno == ENOTDIR) {
+               mail_storage_set_error(box->storage, MAIL_ERROR_NOTPOSSIBLE,
+                       "Mailbox doesn't allow inferior mailboxes");
+               return -1;
        } else if (mail_storage_set_error_from_errno(box->storage)) {
                return -1;
        } else {