changeset 19617:7b0a093df334

pop3-migration: When logging the first missing POP3 mail, it logged a wrong mail
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Sun, 24 Jan 2016 16:55:13 +0200
parents af9448bcbfd9
children 591fa1448786
files src/plugins/pop3-migration/pop3-migration-plugin.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/plugins/pop3-migration/pop3-migration-plugin.c	Sun Jan 24 16:28:29 2016 +0200
+++ b/src/plugins/pop3-migration/pop3-migration-plugin.c	Sun Jan 24 16:55:13 2016 +0200
@@ -560,7 +560,7 @@
 	for (pop3_idx = 0; pop3_idx < pop3_count; pop3_idx++) {
 		if (pop3_map[pop3_idx].imap_uid == 0) {
 			if (first_missing_idx == (uint32_t)-1)
-				first_missing_idx = pop3_map[pop3_idx].pop3_seq;
+				first_missing_idx = pop3_idx;
 			missing_uids_count++;
 		}
 	}