Mercurial > dovecot > core-2.2
changeset 5387:783670f8a118 HEAD
If a broken X-UID header was found with a value larger than last seen X-UID
(eg. empty mbox) but less than the expected UID value, we gave "UID inserted
in the middle of mailbox" error.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 23 Mar 2007 04:46:20 +0200 |
parents | bf4a85a47901 |
children | ce1bfc98df29 |
files | src/lib-storage/index/mbox/mbox-sync-parse.c src/lib-storage/index/mbox/mbox-sync.c |
diffstat | 2 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/mbox/mbox-sync-parse.c Fri Mar 23 02:07:24 2007 +0200 +++ b/src/lib-storage/index/mbox/mbox-sync-parse.c Fri Mar 23 04:46:20 2007 +0200 @@ -385,7 +385,6 @@ return FALSE; } - ctx->sync_ctx->prev_msg_uid = value; ctx->mail.uid = value; /* if we had multiple X-UID headers, we could have uid_broken=TRUE here. */
--- a/src/lib-storage/index/mbox/mbox-sync.c Fri Mar 23 02:07:24 2007 +0200 +++ b/src/lib-storage/index/mbox/mbox-sync.c Fri Mar 23 04:46:20 2007 +0200 @@ -1190,8 +1190,8 @@ mail_ctx->need_rewrite = TRUE; mail_ctx->mail.uid = sync_ctx->next_uid++; - sync_ctx->prev_msg_uid = mail_ctx->mail.uid; } + sync_ctx->prev_msg_uid = mail_ctx->mail.uid; if (!mail_ctx->mail.pseudo) mail_ctx->mail.idx_seq = sync_ctx->idx_seq;