]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
pop3-migration: Don't even try to match message sizes with pop3_migration_skip_size_c...
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 26 Jan 2016 15:53:28 +0000 (17:53 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 26 Jan 2016 15:53:28 +0000 (17:53 +0200)
This skipped the header check for mailboxes that had only a single mail.

src/plugins/pop3-migration/pop3-migration-plugin.c

index b1c542e488e1b89b8ec4fa168a1a7d8ec40773f8..d327ba4250ba0247a00346fc09bd0d0c3d6d6d32 100644 (file)
@@ -582,6 +582,9 @@ static bool pop3_uidl_assign_by_size(struct mailbox *box)
        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);