Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib-index: Fix setting highest_modseq correctly in mail_index_modseq_…
…header The internally counted ctx->highest_modseq wasn't correct if all of the records weren't synced. This could have happened for various reasons. Since the view's current log seq/offset is used for the header, we can also use the current highest_modseq from the view as well and it's guaranteed to be correct. This fixes various potential problems with using QRESYNC and CONDSTORE extensions. It also fixes potential errors with unhibernating imap clients, including: Error: .../dovecot.index.log: Transaction log changed unexpectedly, can't get modseq
- Loading branch information