Mercurial > dovecot > core-2.2
changeset 22422:b92e6fa512df
lib-index: Fix modseq tracking with multiple flag updates
The earlier code was checking only the first flag record update. If the
first one had only internal flag changes but (some of) the rest didn't,
the modseq wasn't counted correctly. This was probably pretty rare.
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Sat, 05 Aug 2017 14:11:17 +0900 |
parents | feb7448f94cd |
children | 59468efbfc43 |
files | src/lib-index/mail-transaction-log-file.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/mail-transaction-log-file.c Sat Aug 05 14:07:58 2017 +0900 +++ b/src/lib-index/mail-transaction-log-file.c Sat Aug 05 14:11:17 2017 +0900 @@ -1020,7 +1020,7 @@ return TRUE; for (unsigned int i = 0; i < count; i++) { - if (!MAIL_TRANSACTION_FLAG_UPDATE_IS_INTERNAL(u)) + if (!MAIL_TRANSACTION_FLAG_UPDATE_IS_INTERNAL(&u[i])) return TRUE; } return FALSE;