changeset 19644:defab5b9af2a

pop3-migration: Don't even try to match message sizes with pop3_migration_skip_size_check=yes This skipped the header check for mailboxes that had only a single mail.
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Tue, 26 Jan 2016 17:53:28 +0200
parents e7fe7db04f3a
children a1cd3f372251
files src/plugins/pop3-migration/pop3-migration-plugin.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/plugins/pop3-migration/pop3-migration-plugin.c	Tue Jan 26 15:41:16 2016 +0200
+++ b/src/plugins/pop3-migration/pop3-migration-plugin.c	Tue Jan 26 17:53:28 2016 +0200
@@ -582,6 +582,9 @@
 	struct imap_msg_map *imap_map;
 	unsigned int i, pop3_count, imap_count, count;
 
+	if (mstorage->skip_size_check)
+		return FALSE;
+
 	pop3_map = array_get_modifiable(&mstorage->pop3_uidl_map, &pop3_count);
 	imap_map = array_get_modifiable(&mbox->imap_msg_map, &imap_count);
 	count = I_MIN(pop3_count, imap_count);