return MAPISTORE_SUCCESS;
}
+
+static enum MAPISTORE_ERROR mstoredb_op_create_message(void *private_data,
+ uint64_t fid,
+ uint64_t mid)
+{
+ DEBUG(0, ("[%s:%d][%s] not yet implemented\n", __FILE__, __LINE__, __FUNCTION__));
+
+ /* TODO: sanity checks */
+
+ /* TODO: temporary object */
+
+ return MAPISTORE_SUCCESS;
+}
+
+
+static enum MAPISTORE_ERROR mstoredb_op_release_record(void *private_data, uint64_t fmid, uint8_t type)
+{
+ DEBUG(0, ("[%s:%d][%s] not yet implemented\n", __FILE__, __LINE__, __FUNCTION__));
+
+ /* TODO: sanity checks */
+
+ /* TODO: temporary object */
+
+ return MAPISTORE_SUCCESS;
+}
+
+
+static enum MAPISTORE_ERROR mstoredb_op_savechangesmessage(void *private_data,
+ uint64_t mid,
+ uint8_t flags)
+{
+ DEBUG(0, ("[%s:%d][%s] not yet implemented\n", __FILE__, __LINE__, __FUNCTION__));
+
+ /* TODO: sanity checks */
+
+ /* TODO: construct LDIF */
+
+ /* TODO: write to store */
+
+ return MAPISTORE_SUCCESS;
+}
+
+
+static enum MAPISTORE_ERROR mstoredb_op_deletemessage(void *private_data,
+ uint64_t mid,
+ uint8_t flags)
+{
+ DEBUG(0, ("[%s:%d][%s] not yet implemented\n", __FILE__, __LINE__, __FUNCTION__));
+
+ /* TODO: sanity checks */
+
+ /* TODO: construct LDIF */
+
+ /* TODO: commit to store */
+
+ return MAPISTORE_SUCCESS;
+}
+
+
+static enum MAPISTORE_ERROR mstoredb_op_open_message(void *private_data,
+ uint64_t fid,
+ uint64_t mid,
+ struct mapistore_message *msg)
+{
+ /* TODO: sanity checks */
+
+ /* TODO: construct query */
+
+ /* TODO: retrieve data */
+
+ /* TODO: construct real result */
+ msg->recipients = NULL;
+ msg->properties = NULL;
+
+ return MAPISTORE_ERR_NOT_FOUND;
+}
+
+
/**
\details Entry point for mapistore MSTOREDB backend
backend.delete_context = mstoredb_delete_context;
backend.op_root_mkdir = mstoredb_op_root_mkdir;
backend.create_uri = mstoredb_create_uri;
- backend.release_record = NULL;
+ backend.release_record = mstoredb_op_release_record;
backend.get_path = NULL;
backend.op_mkdir = mstoredb_op_mkdir;
backend.op_rmdir = mstoredb_op_rmdir;
backend.op_closedir = NULL;
backend.op_readdir_count = mstoredb_op_readdir_count;
backend.op_get_table_property = mstoredb_op_get_table_property;
- backend.op_openmessage = NULL;
- backend.op_createmessage = NULL;
- backend.op_savechangesmessage = NULL;
+ backend.op_openmessage = mstoredb_op_open_message;
+ backend.op_createmessage = mstoredb_op_create_message;
+ backend.op_savechangesmessage = mstoredb_op_savechangesmessage;
backend.op_submitmessage = NULL;
backend.op_getprops = mstoredb_op_getprops;
backend.op_get_fid_by_name = mstoredb_op_get_fid_by_name;
backend.op_setprops = mstoredb_op_setprops;
- backend.op_deletemessage = NULL;
+ backend.op_deletemessage = mstoredb_op_deletemessage;
backend.op_get_table = mstoredb_op_get_table;
backend.op_add_table_row = mstoredb_op_add_table_row;