From: Martti Rannanjärvi Date: Wed, 27 Jun 2018 21:34:14 +0000 (+0300) Subject: indexer: Don't log error when getting path to nonexistent mailbox fails X-Git-Tag: 2.3.9~1656 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8c09e2720a3b3520f4ae92d609e94552ae8ee8b8;p=thirdparty%2Fdovecot%2Fcore.git indexer: Don't log error when getting path to nonexistent mailbox fails --- diff --git a/src/indexer/master-connection.c b/src/indexer/master-connection.c index 5b4c7ab63c..a08ce0897b 100644 --- a/src/indexer/master-connection.c +++ b/src/indexer/master-connection.c @@ -155,8 +155,10 @@ index_mailbox(struct master_connection *conn, struct mail_user *user, mailbox_set_reason(box, "indexing"); ret = mailbox_get_path_to(box, MAILBOX_LIST_PATH_TYPE_INDEX, &path); if (ret < 0) { - i_error("Getting path to mailbox %s failed: %s", - mailbox, mailbox_get_last_internal_error(box, NULL)); + errstr = mailbox_get_last_internal_error(box, &error); + if (error != MAIL_ERROR_NOTFOUND) + i_error("Getting path to mailbox %s failed: %s", + mailbox, errstr); mailbox_free(&box); return -1; }