Skip to content

Commit

Permalink
lib-storage: mail_set_cache_corrupted*() now logs also the mailbox na…
Browse files Browse the repository at this point in the history
…me that was corrupted.
  • Loading branch information
sirainen committed Feb 28, 2016
1 parent dd59c7a commit 79ec3f2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib-storage/index/index-mail.c
Expand Up @@ -2166,12 +2166,12 @@ void index_mail_set_cache_corrupted_reason(struct mail *mail,
imail->data.forced_no_caching = TRUE;
if (reason[0] == '\0') {
mail_cache_set_corrupted(mail->box->cache,
"Broken %s for mail UID %u",
field_name, mail->uid);
"Broken %s for mail UID %u in mailbox %s",
field_name, mail->uid, mail->box->vname);
} else {
mail_cache_set_corrupted(mail->box->cache,
"Broken %s for mail UID %u: %s",
field_name, mail->uid, reason);
"Broken %s for mail UID %u in mailbox %s: %s",
field_name, mail->uid, mail->box->vname, reason);
}
}

Expand Down

0 comments on commit 79ec3f2

Please sign in to comment.