Sync index changes while iterating through uidlist entries. This avoids unnecessary (and broken) flag updates.
Sync index changes while iterating through uidlist entries. This avoids
unnecessary (and broken) flag updates.

--HG--
branch : HEAD

jkerihuel/dovecot,jwm/dovecot-notmuch,jwm/dovecot-notmuch,jwm/dovecot-notmuch,jkerihuel/dovecot,jwm/dovecot-notmuch,jkerihuel/dovecot,jkerihuel/dovecot,jkerihuel/dovecot,jwm/dovecot-notmuch