From: Timo Sirainen Date: Sun, 23 Jan 2011 22:31:05 +0000 (+0200) Subject: dbox: mailbox_create/update() might not have updated index header correctly. X-Git-Tag: 2.1.alpha1~408 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=84e49ad7d7a840d600a961daeca60802e3d69cd0;p=thirdparty%2Fdovecot%2Fcore.git dbox: mailbox_create/update() might not have updated index header correctly. --- diff --git a/src/lib-storage/index/dbox-common/dbox-storage.c b/src/lib-storage/index/dbox-common/dbox-storage.c index d097c7d8d5..798641f6f8 100644 --- a/src/lib-storage/index/dbox-common/dbox-storage.c +++ b/src/lib-storage/index/dbox-common/dbox-storage.c @@ -186,7 +186,7 @@ int dbox_mailbox_create(struct mailbox *box, (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 --git a/src/lib-storage/index/dbox-multi/mdbox-storage.c b/src/lib-storage/index/dbox-multi/mdbox-storage.c index 7a755ac65d..0519926870 100644 --- a/src/lib-storage/index/dbox-multi/mdbox-storage.c +++ b/src/lib-storage/index/dbox-multi/mdbox-storage.c @@ -337,7 +337,7 @@ static int 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 --git a/src/lib-storage/index/dbox-single/sdbox-storage.c b/src/lib-storage/index/dbox-single/sdbox-storage.c index 5ae2829a61..18f90e9647 100644 --- a/src/lib-storage/index/dbox-single/sdbox-storage.c +++ b/src/lib-storage/index/dbox-single/sdbox-storage.c @@ -321,7 +321,7 @@ static int 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)