Mercurial > dovecot > core-2.2
changeset 3354:683ca23b94f7 HEAD
If data inside headers was moved within the first mail, we might have gotten
"uid-last unexpectedly lost" error.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 29 Apr 2005 15:46:59 +0300 |
parents | 286cc0cd888a |
children | ab3b9ed3a1a5 |
files | src/lib-storage/index/mbox/mbox-sync-update.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/mbox/mbox-sync-update.c Fri Apr 29 15:02:33 2005 +0300 +++ b/src/lib-storage/index/mbox/mbox-sync-update.c Fri Apr 29 15:46:59 2005 +0300 @@ -42,6 +42,8 @@ ctx->hdr_pos[i] != (size_t)-1) ctx->hdr_pos[i] += diff; } + if (ctx->sync_ctx->dest_first_mail) + ctx->sync_ctx->base_uid_last_offset += diff; if (diff < 0) str_delete(ctx->header, pos, -diff);