changeset 7529:6ab2ccae0868 HEAD

maildir uidlist: Include old and new UID in "Duplicate file entry" warning.
author Timo Sirainen <tss@iki.fi>
date Sat, 17 May 2008 02:25:40 +0300
parents 4a0e2927a232
children e29dafc501cc
files src/lib-storage/index/maildir/maildir-uidlist.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-storage/index/maildir/maildir-uidlist.c	Sat May 17 01:20:19 2008 +0300
+++ b/src/lib-storage/index/maildir/maildir-uidlist.c	Sat May 17 02:25:40 2008 +0300
@@ -434,8 +434,10 @@
 	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 */