return FALSE;
}
-int dbox_mailbox_check_existence(struct mailbox *box, time_t *path_ctime_r)
+int dbox_mailbox_check_existence(struct mailbox *box)
{
const char *index_path, *box_path = mailbox_get_path(box);
struct stat st;
int ret = -1;
- *path_ctime_r = (time_t)-1;
-
if (box->list->set.iter_from_index_dir) {
/* Just because the index directory exists, it doesn't mean
that the mailbox is selectable. Check that by seeing if
}
if (ret < 0) {
ret = stat(box_path, &st);
- if (ret == 0)
- *path_ctime_r = st.st_ctime;
}
if (ret == 0) {
}
}
-int dbox_mailbox_open(struct mailbox *box, time_t path_ctime ATTR_UNUSED)
+int dbox_mailbox_open(struct mailbox *box)
{
if (index_storage_mailbox_open(box, FALSE) < 0)
return -1;
void dbox_storage_destroy(struct mail_storage *storage);
uint32_t dbox_get_uidvalidity_next(struct mailbox_list *list);
void dbox_notify_changes(struct mailbox *box);
-int dbox_mailbox_check_existence(struct mailbox *box, time_t *path_ctime_r);
-int dbox_mailbox_open(struct mailbox *box, time_t path_ctime);
+int dbox_mailbox_check_existence(struct mailbox *box);
+int dbox_mailbox_open(struct mailbox *box);
void dbox_mailbox_close(struct mailbox *box);
int dbox_mailbox_create(struct mailbox *box,
const struct mailbox_update *update, bool directory);
int mdbox_mailbox_open(struct mailbox *box)
{
struct mdbox_mailbox *mbox = MDBOX_MAILBOX(box);
- time_t path_ctime;
- if (dbox_mailbox_check_existence(box, &path_ctime) < 0)
+ if (dbox_mailbox_check_existence(box) < 0)
return -1;
- if (dbox_mailbox_open(box, path_ctime) < 0)
+ if (dbox_mailbox_open(box) < 0)
return -1;
mbox->ext_id =
struct sdbox_mailbox *mbox = SDBOX_MAILBOX(box);
struct sdbox_index_header hdr;
bool need_resize;
- time_t path_ctime;
- if (dbox_mailbox_check_existence(box, &path_ctime) < 0)
+ if (dbox_mailbox_check_existence(box) < 0)
return -1;
if (sdbox_mailbox_alloc_index(mbox) < 0)
return -1;
- if (dbox_mailbox_open(box, path_ctime) < 0)
+ if (dbox_mailbox_open(box) < 0)
return -1;
if (box->creating) {