Mercurial > dovecot > original-hg > dovecot-1.2
changeset 5211:6d4c18b51495 HEAD
X-UID brokeness fixing was worse than ever.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 06 Mar 2007 15:45:23 +0200 |
parents | b77a67169fc5 |
children | 0866a2b60b2b |
files | src/lib-storage/index/mbox/mbox-sync-rewrite.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/mbox/mbox-sync-rewrite.c Tue Mar 06 15:14:09 2007 +0200 +++ b/src/lib-storage/index/mbox/mbox-sync-rewrite.c Tue Mar 06 15:45:23 2007 +0200 @@ -331,14 +331,14 @@ mail_ctx->mail.body_size = mails[idx].body_size; if (mails[idx].uid_broken || mails[idx].uid == 0) { + sync_ctx->next_uid = 1; + sync_ctx->prev_msg_uid = 0; + } else { /* If we originally thought that the UID was broken, force the brokeness now also. Otherwise try to make the UID what we wanted it originally. */ sync_ctx->next_uid = mails[idx].uid; sync_ctx->prev_msg_uid = sync_ctx->next_uid - 1; - } else { - sync_ctx->next_uid = 1; - sync_ctx->prev_msg_uid = 0; } first_mail_expunge_extra = 1 +