# HG changeset patch # User Timo Sirainen # Date 1295821865 -7200 # Node ID 42ca32299617f5f5c2b446943ae8324b8ef30879 # Parent 4741f1b4f9b315d504fb2907dec60de53ec73dd9 dbox: mailbox_create/update() might not have updated index header correctly. diff -r 4741f1b4f9b3 -r 42ca32299617 src/lib-storage/index/dbox-common/dbox-storage.c --- a/src/lib-storage/index/dbox-common/dbox-storage.c Fri Jan 21 21:46:24 2011 +0200 +++ b/src/lib-storage/index/dbox-common/dbox-storage.c Mon Jan 24 00:31:05 2011 +0200 @@ -176,7 +176,7 @@ (box->list->props & MAILBOX_LIST_PROP_NO_NOSELECT) == 0) return 0; - if (index_storage_mailbox_open(box, FALSE) < 0) + if (mailbox_open(box) < 0) return -1; /* if alt path already exists and contains files, rebuild storage so diff -r 4741f1b4f9b3 -r 42ca32299617 src/lib-storage/index/dbox-multi/mdbox-storage.c --- a/src/lib-storage/index/dbox-multi/mdbox-storage.c Fri Jan 21 21:46:24 2011 +0200 +++ b/src/lib-storage/index/dbox-multi/mdbox-storage.c Mon Jan 24 00:31:05 2011 +0200 @@ -316,7 +316,7 @@ mdbox_mailbox_update(struct mailbox *box, const struct mailbox_update *update) { if (!box->opened) { - if (index_storage_mailbox_open(box, FALSE) < 0) + if (mailbox_open(box) < 0) return -1; } if (update->cache_fields != NULL) diff -r 4741f1b4f9b3 -r 42ca32299617 src/lib-storage/index/dbox-single/sdbox-storage.c --- a/src/lib-storage/index/dbox-single/sdbox-storage.c Fri Jan 21 21:46:24 2011 +0200 +++ b/src/lib-storage/index/dbox-single/sdbox-storage.c Mon Jan 24 00:31:05 2011 +0200 @@ -319,7 +319,7 @@ dbox_mailbox_update(struct mailbox *box, const struct mailbox_update *update) { if (!box->opened) { - if (index_storage_mailbox_open(box, FALSE) < 0) + if (mailbox_open(box) < 0) return -1; } if (update->cache_fields != NULL)