[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-sync-parse.c, 1.49.2.8, 1.49.2.9 mbox-sync.c, 1.181.2.17, 1.181.2.18
tss at dovecot.org
tss at dovecot.org
Fri Mar 23 04:46:18 EET 2007
Update of /var/lib/cvs/dovecot/src/lib-storage/index/mbox
In directory talvi:/tmp/cvs-serv29493
Modified Files:
Tag: branch_1_0
mbox-sync-parse.c mbox-sync.c
Log Message:
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.
Index: mbox-sync-parse.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-sync-parse.c,v
retrieving revision 1.49.2.8
retrieving revision 1.49.2.9
diff -u -d -r1.49.2.8 -r1.49.2.9
--- mbox-sync-parse.c 10 Mar 2007 16:05:45 -0000 1.49.2.8
+++ mbox-sync-parse.c 23 Mar 2007 02:46:16 -0000 1.49.2.9
@@ -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. */
Index: mbox-sync.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-sync.c,v
retrieving revision 1.181.2.17
retrieving revision 1.181.2.18
diff -u -d -r1.181.2.17 -r1.181.2.18
--- mbox-sync.c 21 Mar 2007 21:57:13 -0000 1.181.2.17
+++ mbox-sync.c 23 Mar 2007 02:46:16 -0000 1.181.2.18
@@ -1194,8 +1194,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;
More information about the dovecot-cvs
mailing list