]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Path was missing from Maildir sync-errors.
authorTimo Sirainen <tss@iki.fi>
Wed, 26 May 2004 02:56:34 +0000 (05:56 +0300)
committerTimo Sirainen <tss@iki.fi>
Wed, 26 May 2004 02:56:34 +0000 (05:56 +0300)
--HG--
branch : HEAD

src/lib-storage/index/maildir/maildir-sync.c

index 0bdf53bfc38048e540eb45ebecca8955f8c64b2f..66db21a9c06a5e70905d54a320aa23677c6366c2 100644 (file)
@@ -613,8 +613,8 @@ static int maildir_sync_index(struct maildir_sync_context *ctx)
                /* uidvalidity changed and mailbox isn't being initialized,
                   index must be rebuilt */
                mail_storage_set_critical(ibox->box.storage,
-                       "Maildir sync: UIDVALIDITY changed (%u -> %u)",
-                       hdr->uid_validity, uid_validity);
+                       "Maildir %s sync: UIDVALIDITY changed (%u -> %u)",
+                       ibox->path, hdr->uid_validity, uid_validity);
                mail_index_mark_corrupted(ibox->index);
                (void)mail_index_sync_end(sync_ctx.sync_ctx);
                return -1;
@@ -657,9 +657,11 @@ static int maildir_sync_index(struct maildir_sync_context *ctx)
                                     MAILDIR_UIDLIST_REC_FLAG_RACING) != 0) {
                                        mail_storage_set_critical(
                                                ibox->box.storage,
-                                               "Maildir sync: UID < next_uid "
+                                               "Maildir %s sync: "
+                                               "UID < next_uid "
                                                "(%u < %u, file = %s)",
-                                               uid, hdr->next_uid, filename);
+                                               ibox->path, uid, hdr->next_uid,
+                                               filename);
                                        mail_index_mark_corrupted(ibox->index);
                                        ret = -1;
                                        break;
@@ -698,10 +700,10 @@ static int maildir_sync_index(struct maildir_sync_context *ctx)
                           in next sync. */
                        if ((uflags & MAILDIR_UIDLIST_REC_FLAG_RACING) != 0) {
                                mail_storage_set_critical(ibox->box.storage,
-                                       "Maildir sync: UID inserted in the "
+                                       "Maildir %s sync: UID inserted in the "
                                        "middle of mailbox "
                                        "(%u > %u, file = %s)",
-                                       rec->uid, uid, filename);
+                                       ibox->path, rec->uid, uid, filename);
                                mail_index_mark_corrupted(ibox->index);
                                ret = -1;
                                break;