# HG changeset patch # User Timo Sirainen # Date 1454004991 -7200 # Node ID e7849490acd9bda27fb4771b55abfe19f2ccce66 # Parent 3b516415a5fafa59227ef07e65beb2c84f605e18 pop3-migration: Fix to 5407a86 - don't sync POP3 UIDLs when we don't need to diff -r 3b516415a5fa -r e7849490acd9 src/plugins/pop3-migration/pop3-migration-plugin.c --- a/src/plugins/pop3-migration/pop3-migration-plugin.c Thu Jan 28 19:56:38 2016 +0200 +++ b/src/plugins/pop3-migration/pop3-migration-plugin.c Thu Jan 28 20:16:31 2016 +0200 @@ -830,9 +830,12 @@ struct mailbox_header_lookup_ctx *wanted_headers) { struct pop3_migration_mailbox *mbox = POP3_MIGRATION_CONTEXT(t->box); + struct pop3_migration_mail_storage *mstorage = + POP3_MIGRATION_CONTEXT(t->box->storage); if ((wanted_fields & (MAIL_FETCH_UIDL_BACKEND | - MAIL_FETCH_POP3_ORDER)) != 0) { + MAIL_FETCH_POP3_ORDER)) != 0 && + (mstorage->all_mailboxes || t->box->inbox_user)) { /* Start POP3 UIDL syncing before the search, so we'll do it before we start sending any FETCH BODY[]s to IMAP. It shouldn't matter much, except this works around a bug in