From: Marco Bettini Date: Tue, 23 Nov 2021 15:03:07 +0000 (+0100) Subject: lib-storage: fail_mailbox_exists() - Return not found as a success instead of an... X-Git-Tag: 2.3.18~114 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a672d831521a35e5d68594961573a7196ae1ae03;p=thirdparty%2Fdovecot%2Fcore.git lib-storage: fail_mailbox_exists() - Return not found as a success instead of an error GETMETADATA sometimes responds with “NO [SERVERBUG] BUG: Unknown internal error returned”, instead of “NO Mailbox doesn't exist”, depending on the actual configuration. This can happen with the shared namespace. --- diff --git a/src/lib-storage/fail-mailbox.c b/src/lib-storage/fail-mailbox.c index 7925c93692..07ace29231 100644 --- a/src/lib-storage/fail-mailbox.c +++ b/src/lib-storage/fail-mailbox.c @@ -26,7 +26,7 @@ static int fail_mailbox_exists(struct mailbox *box ATTR_UNUSED, enum mailbox_existence *existence_r) { *existence_r = MAILBOX_EXISTENCE_NONE; - return -1; + return 0; } static int fail_mailbox_open(struct mailbox *box)