]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
indexer: Don't log error when mailbox was not found
authorMartti Rannanjärvi <martti.rannanjarvi@dovecot.fi>
Wed, 27 Jun 2018 20:58:11 +0000 (23:58 +0300)
committerAki Tuomi <aki.tuomi@dovecot.fi>
Tue, 7 Aug 2018 11:10:08 +0000 (14:10 +0300)
src/indexer/master-connection.c

index a4990faf50ec31ac07f4517a5100cfbc886cf4f1..18e448171c1adb10ff7f0b1802e479ace4d4995d 100644 (file)
@@ -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);