From: Timo Sirainen Date: Sun, 5 Dec 2010 22:11:01 +0000 (+0000) Subject: lib-storage: mailbox_create_fd() handles "no inferior mailboxes allowed" error now. X-Git-Tag: 2.1.alpha1~463 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de213b54c3f9b271535406e5a83bc48f3020c35a;p=thirdparty%2Fdovecot%2Fcore.git lib-storage: mailbox_create_fd() handles "no inferior mailboxes allowed" error now. --- diff --git a/src/lib-storage/mail-storage.c b/src/lib-storage/mail-storage.c index a82a1e0606..14b336168a 100644 --- a/src/lib-storage/mail-storage.c +++ b/src/lib-storage/mail-storage.c @@ -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 {