Mercurial > dovecot > core-2.2
diff src/lib-storage/index/dbox-common/dbox-storage.c @ 22291:5a81b1690625
sdbox: Don't create index directory when trying to open nonexistent mailboxes
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Tue, 27 Jun 2017 16:55:34 +0300 |
parents | 5c323f23282f |
children | d8bb722cde68 |
line wrap: on
line diff
--- a/src/lib-storage/index/dbox-common/dbox-storage.c Fri Jun 30 13:56:54 2017 +0300 +++ b/src/lib-storage/index/dbox-common/dbox-storage.c Tue Jun 27 16:55:34 2017 +0300 @@ -190,7 +190,7 @@ return TRUE; } -int dbox_mailbox_open(struct mailbox *box) +int dbox_mailbox_check_existence(struct mailbox *box) { const char *box_path = mailbox_get_path(box); @@ -209,7 +209,11 @@ "stat(%s) failed: %m", box_path); return -1; } + return 0; +} +int dbox_mailbox_open(struct mailbox *box) +{ if (index_storage_mailbox_open(box, FALSE) < 0) return -1; mail_index_set_fsync_mode(box->index,