]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
pop3-migration: If we matched all the IMAP (but not all POP3) messages, log about it.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Sun, 24 Jan 2016 15:38:39 +0000 (17:38 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Sun, 24 Jan 2016 15:38:39 +0000 (17:38 +0200)
src/plugins/pop3-migration/pop3-migration-plugin.c

index c8a644f76a926f7438e8f2244f89a9d0a4fa4ce3..941fb6aa8bdc165f7e6997a95137dc3003a3ad09 100644 (file)
@@ -573,6 +573,10 @@ pop3_uidl_assign_by_hdr_hash(struct mailbox *box, struct mailbox *pop3_box)
                            missing_uids_count,
                            pop3_map[first_missing_idx].pop3_seq,
                            pop3_map[first_missing_idx].pop3_uidl);
+               if (imap_count + missing_uids_count == pop3_count) {
+                       str_append(str, " - all IMAP messages were found "
+                               "(POP3 contains more than IMAP INBOX - you may want to set pop3_migration_all_mailboxes=yes)");
+               }
                if (!mstorage->ignore_missing_uidls) {
                        i_error("%s - set pop3_migration_ignore_missing_uidls=yes to continue anyway",
                                str_c(str));