Skip to content

Commit

Permalink
pop3-migration: Don't even try to match message sizes with pop3_migra…
Browse files Browse the repository at this point in the history
…tion_skip_size_check=yes

This skipped the header check for mailboxes that had only a single mail.
  • Loading branch information
sirainen committed Jan 26, 2016
1 parent afc77c5 commit 414d4ee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/plugins/pop3-migration/pop3-migration-plugin.c
Expand Up @@ -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);
Expand Down

0 comments on commit 414d4ee

Please sign in to comment.