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.

LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot