]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dsync: ns_mailbox_try_alloc() - Don't set errstr_r when mailbox wasn't found
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 31 Oct 2022 20:39:25 +0000 (22:39 +0200)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 31 Oct 2022 20:39:58 +0000 (22:39 +0200)
It's unnecessary and confusing, since the callers can't really use it
anyway.

src/doveadm/dsync/dsync-brain-mailbox.c

index a9fd3827d3b9c068570c175b5968c5228017b93a..965fb514f68add3992af5e5babc4a7a25c81790b 100644 (file)
@@ -37,9 +37,6 @@ ns_mailbox_try_alloc(struct dsync_brain *brain, struct mail_namespace *ns,
        }
        if (existence != MAILBOX_EXISTENCE_SELECT) {
                mailbox_free(&box);
-               *errstr_r = existence == MAILBOX_EXISTENCE_NONE ?
-                       "Mailbox was already deleted" :
-                       "Mailbox is no longer selectable";
                return 0;
        }
        *box_r = box;