]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
pop3-migration: When logging the first missing POP3 mail, it logged a wrong mail
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Sun, 24 Jan 2016 14:55:13 +0000 (16:55 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Sun, 24 Jan 2016 14:55:13 +0000 (16:55 +0200)
src/plugins/pop3-migration/pop3-migration-plugin.c

index 78d8ec911f4ac491f6629dce72402ffa2068c239..3533555fe97d12a90d7e92a41928e71f7b9255c8 100644 (file)
@@ -560,7 +560,7 @@ pop3_uidl_assign_by_hdr_hash(struct mailbox *box, struct mailbox *pop3_box)
        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++;
                }
        }