# HG changeset patch # User Timo Sirainen # Date 1198286266 -7200 # Node ID 78a75a5a53502917caf0599837bff83ea77f800d # Parent ae06eb5e2638d9dc8691d1752bf34523b1c0c2b9 Refresh index when we want to know the next_uid, otherwise we might have used too low value. diff -r ae06eb5e2638 -r 78a75a5a5350 src/lib-storage/index/mbox/mbox-save.c --- a/src/lib-storage/index/mbox/mbox-save.c Sat Dec 22 03:05:29 2007 +0200 +++ b/src/lib-storage/index/mbox/mbox-save.c Sat Dec 22 03:17:46 2007 +0200 @@ -195,6 +195,7 @@ /* 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);