mdbox-storage.h revision 04c3ac276103b56185119bcff9a66de7a8bb0e68
#ifndef MDBOX_STORAGE_H
#define MDBOX_STORAGE_H
#include "index-storage.h"
#include "mailbox-list-private.h"
#include "dbox-storage.h"
#include "mdbox-settings.h"
#define MDBOX_STORAGE_NAME "mdbox"
#define MDBOX_GLOBAL_INDEX_PREFIX "dovecot.map.index"
#define MDBOX_GLOBAL_DIR_NAME "storage"
#define MDBOX_MAIL_FILE_PREFIX "m."
#define MDBOX_MAX_OPEN_UNUSED_FILES 2
#define MDBOX_CLOSE_UNUSED_FILES_TIMEOUT_SECS 30
#define MDBOX_INDEX_HEADER_MIN_SIZE (sizeof(uint32_t))
struct mdbox_index_header {
};
struct mdbox_storage {
struct dbox_storage storage;
const struct mdbox_settings *set;
/* paths for storage directories */
const char *storage_dir, *alt_storage_dir;
struct timeout *to_close_unused_files;
};
struct mdbox_mail_index_record {
mailbox */
};
struct mdbox_mailbox {
struct mdbox_storage *storage;
unsigned int creating:1;
};
extern struct mail_vfuncs mdbox_mail_vfuncs;
struct mailbox *
/* Get map_uid for wanted message. */
struct mdbox_index_header *hdr);
struct mail_index_transaction *trans,
const struct mailbox_update *update);
struct mail_save_context *
struct dbox_file *
struct mail_index_transaction_commit_result *result);
#endif