/* doesn't exist / not synced */
return 1;
}
+ if (box->storage->set->mailbox_list_index_very_dirty_syncs)
+ return 0;
ret = mailbox_get_path_to(box, MAILBOX_LIST_PATH_TYPE_INDEX, &dir);
if (ret < 0)
int ret;
ret = index_storage_list_index_has_changed(box, list_view, seq);
- if (ret != 0)
+ if (ret != 0 || box->storage->set->mailbox_list_index_very_dirty_syncs)
return ret;
- if (mbox->storage->set->maildir_very_dirty_syncs)
- return 0;
ext_id = maildir_list_get_ext_id(mbox, list_view);
mail_index_lookup_ext(list_view, seq, ext_id, &data, &expunged);
int ret;
ret = index_storage_list_index_has_changed(box, list_view, seq);
- if (ret != 0)
+ if (ret != 0 || box->storage->set->mailbox_list_index_very_dirty_syncs)
return ret;
ext_id = mbox_list_get_ext_id(mbox, list_view);
DEF(SET_BOOL, mail_nfs_storage),
DEF(SET_BOOL, mail_nfs_index),
DEF(SET_BOOL, mailbox_list_index),
+ DEF(SET_BOOL, mailbox_list_index_very_dirty_syncs),
DEF(SET_BOOL, mail_debug),
DEF(SET_BOOL, mail_full_filesystem_access),
DEF(SET_BOOL, maildir_stat_dirs),
.mail_nfs_storage = FALSE,
.mail_nfs_index = FALSE,
.mailbox_list_index = FALSE,
+ .mailbox_list_index_very_dirty_syncs = FALSE,
.mail_debug = FALSE,
.mail_full_filesystem_access = FALSE,
.maildir_stat_dirs = FALSE,