Mercurial > dovecot > core-2.2
changeset 22453:6eb5a6930614
pop3-migration: Fail if all IMAP mails were matched by size, but POP3 had extra mails
This makes the handling same as what happens when the same situation happens
and the last mails were matched by headers. That's an error, unless
pop3_migration_ignore_*_uidls=yes.
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Mon, 04 Sep 2017 19:37:12 +0300 |
parents | 566bd6b3b348 |
children | 725057ef25e4 |
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 Mon Sep 04 18:32:15 2017 +0300 +++ b/src/plugins/pop3-migration/pop3-migration-plugin.c Mon Sep 04 19:37:12 2017 +0300 @@ -695,7 +695,7 @@ i_debug("pop3_migration: cached uidls=%u, size matches=%u, total=%u", uidl_match, size_match, count); } - return i == count; + return i == count && imap_count == pop3_count; } static int