[dovecot/core] 2c0485: lib-index: Fix next_uid lookup in open transaction...
GitHub
noreply at github.com
Wed Jul 19 14:30:10 EEST 2017
Branch: refs/heads/master
Home: https://github.com/dovecot/core
Commit: 2c0485aaee658e3a2369a8ab0b51310147ef53cf
https://github.com/dovecot/core/commit/2c0485aaee658e3a2369a8ab0b51310147ef53cf
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2017-07-19 (Wed, 19 Jul 2017)
Changed paths:
M src/lib-index/mail-index-transaction-update.c
Log Message:
-----------
lib-index: Fix next_uid lookup in open transaction that has appended mails
The appended mails were used for returning an updated
mail_index_header.next_uid, but only if the mails were assigned UIDs in
mail_index_append(). It should have updated the next_uid also after
mail_index_append_finish_uids() was used to assign the UIDs.
This fixes setting first_recent_uid correctly for virtual mailboxes when the
sync finds new mails. Avoids multiple sessions from getting \Recent flags
for the same mails.
More information about the dovecot-cvs
mailing list