Skip to content

Commit

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

0 comments on commit 9fbab16

Please sign in to comment.