Skip to content

Commit

Permalink
indexer: Don't log error when mailbox was not found
Browse files Browse the repository at this point in the history
  • Loading branch information
mrannanj authored and cmouse committed Aug 7, 2018
1 parent cc92bce commit 43d1451
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/indexer/master-connection.c
Expand Up @@ -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);
Expand Down

0 comments on commit 43d1451

Please sign in to comment.