dovecot-2.0-sslstream: mdbox: mailbox_update() was updating uidv...
dovecot at dovecot.org
dovecot at dovecot.org
Sat Feb 13 02:56:30 EET 2010
details: http://hg.dovecot.org/dovecot-2.0-sslstream/rev/d1d810348e65
changeset: 10351:d1d810348e65
user: Timo Sirainen <tss at iki.fi>
date: Tue Nov 17 19:35:21 2009 -0500
description:
mdbox: mailbox_update() was updating uidvalidity to random values.
diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
src/lib-storage/index/dbox-multi/mdbox-storage.c | 3 ++-
diffs (15 lines):
diff -r 9670b1268a9a -r d1d810348e65 src/lib-storage/index/dbox-multi/mdbox-storage.c
--- a/src/lib-storage/index/dbox-multi/mdbox-storage.c Tue Nov 17 19:25:28 2009 -0500
+++ b/src/lib-storage/index/dbox-multi/mdbox-storage.c Tue Nov 17 19:35:21 2009 -0500
@@ -207,9 +207,10 @@ static int mdbox_write_index_header(stru
trans = mail_index_transaction_begin(mbox->ibox.view, 0);
mdbox_update_header(mbox, trans, update);
+ uid_validity = hdr->uid_validity;
if (update != NULL && update->uid_validity != 0)
uid_validity = update->uid_validity;
- else if (hdr->uid_validity == 0) {
+ else if (uid_validity == 0) {
/* set uidvalidity */
uid_validity = dbox_get_uidvalidity_next(box->list);
}
More information about the dovecot-cvs
mailing list