From cab6f1cae0e4a41130ad4b045423ae179521f27c Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 31 Oct 2022 22:39:25 +0200 Subject: [PATCH] dsync: ns_mailbox_try_alloc() - Don't set errstr_r when mailbox wasn't found It's unnecessary and confusing, since the callers can't really use it anyway. --- src/doveadm/dsync/dsync-brain-mailbox.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/doveadm/dsync/dsync-brain-mailbox.c b/src/doveadm/dsync/dsync-brain-mailbox.c index a9fd3827d3..965fb514f6 100644 --- a/src/doveadm/dsync/dsync-brain-mailbox.c +++ b/src/doveadm/dsync/dsync-brain-mailbox.c @@ -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; -- 2.47.3