]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-index: Fix detecting whether caller synced everything in mailbox.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 17 Nov 2016 23:23:13 +0000 (01:23 +0200)
committerGitLab <gitlab@git.dovecot.net>
Fri, 18 Nov 2016 11:42:01 +0000 (13:42 +0200)
commitb9da8540e665138b3cad0b637c08c0ab7d7a7eeb
treeb8a4b9ffd65c9138c3fcbbcbd64ff52428624c32
parent30b849c26358317b4e25b19ced4b7deb55f59c0a
lib-index: Fix detecting whether caller synced everything in mailbox.

When mailbox_index_sync_begin() was followed by _commit(), without _next()s
in the middle actually syncing the mailbox, the tail_offset was updated to
indicate that the mailbox was fully synced. Existing code didn't rely on
this, so it probably didn't break anything.

This code hasn't worked for a long time, because log_view is always read
fully to the end in _sync_begin().
src/lib-index/mail-index-sync.c