dovecot-1.0: Refresh index when we want to know the next_uid, ot...

dovecot at dovecot.org dovecot at dovecot.org
Sat Dec 22 03:17:51 EET 2007


details:   http://hg.dovecot.org/dovecot-1.0/rev/6555158a78c7
changeset: 5496:6555158a78c7
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Dec 22 03:17:47 2007 +0200
description:
Refresh index when we want to know the next_uid, otherwise we might have
used too low value.

diffstat:

1 file changed, 1 insertion(+)
src/lib-storage/index/mbox/mbox-save.c |    1 +

diffs (11 lines):

diff -r 3b73d3e68865 -r 6555158a78c7 src/lib-storage/index/mbox/mbox-save.c
--- a/src/lib-storage/index/mbox/mbox-save.c	Fri Dec 21 23:04:17 2007 +0200
+++ b/src/lib-storage/index/mbox/mbox-save.c	Sat Dec 22 03:17:47 2007 +0200
@@ -193,6 +193,7 @@ static void mbox_save_init_sync(struct m
 
 	/* open a new view to get the header. this is required if we just
 	   synced the mailbox so we can get updated next_uid. */
+	(void)mail_index_refresh(mbox->ibox.index);
 	view = mail_index_view_open(mbox->ibox.index);
 	hdr = mail_index_get_header(view);
 


More information about the dovecot-cvs mailing list