]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
maildir uidlist: Include old and new UID in "Duplicate file entry" warning.
authorTimo Sirainen <tss@iki.fi>
Fri, 16 May 2008 23:25:40 +0000 (02:25 +0300)
committerTimo Sirainen <tss@iki.fi>
Fri, 16 May 2008 23:25:40 +0000 (02:25 +0300)
--HG--
branch : HEAD

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

index 3a8b0d3bff0006b954fe47d6837e36030a85ec4a..64667b5030dea7fbd0e0483dbc1a1ee1bc0c0819 100644 (file)
@@ -434,8 +434,10 @@ static int maildir_uidlist_next(struct maildir_uidlist *uidlist,
        if (old_rec != NULL) {
                /* This can happen if expunged file is moved back and the file
                   was appended to uidlist. */
-               i_warning("%s: Duplicate file entry at line %u: %s",
-                         uidlist->path, uidlist->read_line_count, line);
+               i_warning("%s: Duplicate file entry at line %u: "
+                         "%s (uid %u -> %u)",
+                         uidlist->path, uidlist->read_line_count, line,
+                         old_rec->uid, uid);
                /* Delete the old UID */
                maildir_uidlist_records_array_delete(uidlist, old_rec);
                /* Replace the old record with this new one */