From: Timo Sirainen Date: Thu, 29 Apr 2010 17:44:13 +0000 (+0300) Subject: maildir: If we detect MH as the cause of unexpunging, log it in the error message. X-Git-Tag: 2.0.beta5~47 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ec3700496737960704b9aed87b5a8da3fe4ed61c;p=thirdparty%2Fdovecot%2Fcore.git maildir: If we detect MH as the cause of unexpunging, log it in the error message. --HG-- branch : HEAD --- diff --git a/src/lib-storage/index/maildir/maildir-sync-index.c b/src/lib-storage/index/maildir/maildir-sync-index.c index a28295f077..5424a4ef95 100644 --- a/src/lib-storage/index/maildir/maildir-sync-index.c +++ b/src/lib-storage/index/maildir/maildir-sync-index.c @@ -205,8 +205,9 @@ static int maildir_handle_uid_insertion(struct maildir_index_sync_context *ctx, maildir_uidlist_sync_finish(ctx->uidlist_sync_ctx); i_warning("Maildir %s: Expunged message reappeared, giving a new UID " - "(old uid=%u, file=%s)", ctx->mbox->box.path, - uid, filename); + "(old uid=%u, file=%s)%s", ctx->mbox->box.path, + uid, filename, strncmp(filename, "msg.", 4) != 0 ? "" : + " (Your MDA is saving MH files into Maildir?)"); return 0; }