Instead of calling sync_notify vfunc directly everywhere.
mail_storage_settings_to_index_flags(const struct mail_storage_settings *set);
void mailbox_save_context_deinit(struct mail_save_context *ctx);
+/* Notify that a sync should be done. */
+void mailbox_sync_notify(struct mailbox *box, uint32_t uid,
+ enum mailbox_sync_type sync_type);
+
/* for unit testing */
int mailbox_verify_name(struct mailbox *box);
return mail_storage_lock_create(lock_path, &set,
box->storage->set, lock_r, error_r);
}
+
+void mailbox_sync_notify(struct mailbox *box, uint32_t uid,
+ enum mailbox_sync_type sync_type)
+{
+ if (box->v.sync_notify != NULL)
+ box->v.sync_notify(box, uid, sync_type);
+}