Mercurial > dovecot > core-2.2
changeset 2489:4a2c1f6e1a22 HEAD
Don't crash if flag update record gets completely overlapped by expunges.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 24 Aug 2004 08:19:22 +0300 |
parents | b2993fe1337b |
children | 0284ec4e6ed7 |
files | src/lib-index/mail-index-sync.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/mail-index-sync.c Mon Aug 23 22:27:43 2004 +0300 +++ b/src/lib-index/mail-index-sync.c Tue Aug 24 08:19:22 2004 +0300 @@ -374,6 +374,11 @@ if (sync_rec->uid1 < ctx->next_uid) { /* overlapping with previous expunge */ + if (ctx->next_uid > sync_rec->uid2) { + /* hide this update completely */ + ctx->update_idx++; + return mail_index_sync_next(ctx, sync_rec); + } sync_rec->uid1 = ctx->next_uid; }