bf57767df6be53431994f813a8b240b5be180972 |
|
27-Sep-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Update mailbox.recent_flags_count correctly.
The counter was increased even if the UID was already in recent_flags.
This is the only place where I found that recent_flags and
recent_flags_count could become desynced (which they definitely were in
a core dump), so hopefully this fixes assert-crashes like:
Panic: file index-status.c: line 130 (index_storage_get_open_status): assertion failed: (status_r->recent <= status_r->messages) |