This doesn't really fix anything right now, but it'll allow adding the
asserts in the following commit.
mail->lookup_abort = MAIL_LOOKUP_ABORT_NOT_IN_CACHE;
}
ret = mail_get_virtual_size(mail, &vsize);
+ mail->lookup_abort = MAIL_LOOKUP_ABORT_NEVER;
+
if (ret < 0 &&
mailbox_get_last_mail_error(update->box) == MAIL_ERROR_LOOKUP_ABORTED) {
/* abort and finish on background */
ret = -1;
break;
}
+ mail->lookup_abort = MAIL_LOOKUP_ABORT_NEVER;
+
if (mail_get_special(mail, MAIL_FETCH_UIDL_BACKEND, &uidl) < 0) {
i_error("pop3_migration: Failed to get UIDL for msg %u: %s",
mail->seq,