From: Martti Rannanjärvi Date: Wed, 27 Jun 2018 20:58:11 +0000 (+0300) Subject: indexer: Don't log error when mailbox was not found X-Git-Tag: 2.3.3.rc1~153 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=43d1451edaa8a81cc141f6945f21226af95abdc8;p=thirdparty%2Fdovecot%2Fcore.git indexer: Don't log error when mailbox was not found --- diff --git a/src/indexer/master-connection.c b/src/indexer/master-connection.c index a4990faf50..18e448171c 100644 --- a/src/indexer/master-connection.c +++ b/src/indexer/master-connection.c @@ -170,8 +170,10 @@ index_mailbox(struct master_connection *conn, struct mail_user *user, don't bother syncing the mailbox, that alone can take a while with large maildirs. */ if (mailbox_open(box) < 0) { - i_error("Opening 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("Opening mailbox %s failed: %s", + mailbox, errstr); ret = -1; } else { mailbox_get_open_status(box, STATUS_RECENT, &status);