that our IMAP connection hasn't seen yet */
break;
}
- mail_index_expunge(mbox->delayed_sync_trans, lseq);
+ imapc_mailbox_index_expunge(mbox, uid);
}
mbox->sync_next_lseq = 0;
/* we're doing the initial full sync of mails. expunge any
mails that no longer exist. */
while (mbox->sync_next_lseq < lseq) {
- mail_index_expunge(mbox->delayed_sync_trans,
- mbox->sync_next_lseq);
+ mail_index_lookup_uid(mbox->delayed_sync_view,
+ mbox->sync_next_lseq, &uid);
+ imapc_mailbox_index_expunge(mbox, uid);
mbox->sync_next_lseq++;
}
i_assert(lseq == mbox->sync_next_lseq);