From: Marco Bettini Date: Fri, 8 Sep 2023 10:28:43 +0000 (+0000) Subject: doveadm: cmd_index_box_precache() - Return error when mailbox_get_metadata() fails X-Git-Tag: 2.4.0~2545 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64337f6e79c464695545531b3976e8e9153834f9;p=thirdparty%2Fdovecot%2Fcore.git doveadm: cmd_index_box_precache() - Return error when mailbox_get_metadata() fails --- diff --git a/src/doveadm/doveadm-mail-index.c b/src/doveadm/doveadm-mail-index.c index 853e65ed65..f518a5883a 100644 --- a/src/doveadm/doveadm-mail-index.c +++ b/src/doveadm/doveadm-mail-index.c @@ -47,6 +47,7 @@ static int cmd_index_box_precache(struct doveadm_mail_cmd_context *dctx, e_error(event, "Mailbox %s: Precache-fields lookup failed: %s", mailbox_get_vname(box), mailbox_get_last_internal_error(box, NULL)); + return -1; } if (mailbox_get_status(box, STATUS_MESSAGES | STATUS_LAST_CACHED_SEQ, &status) < 0) {