]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: fail_mailbox_exists() - Return not found as a success instead of an...
authorMarco Bettini <marco.bettini@open-xchange.com>
Tue, 23 Nov 2021 15:03:07 +0000 (16:03 +0100)
committermarco.bettini <marco.bettini@open-xchange.com>
Wed, 24 Nov 2021 08:58:34 +0000 (08:58 +0000)
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.

src/lib-storage/fail-mailbox.c

index 7925c9369279da52e36551ff467ef6873c460011..07ace29231b00760a0cdd68b77dd3b58825874a2 100644 (file)
@@ -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)