dbox-storage.h revision 2271d1a3dfc7191e610f039e86b9245bbc5dfb8c
#ifndef DBOX_STORAGE_H
#define DBOX_STORAGE_H
#include "mail-storage-private.h"
struct dbox_file;
struct dbox_mail;
#define DBOX_SUBSCRIPTION_FILE_NAME "subscriptions"
#define DBOX_UIDVALIDITY_FILE_NAME "dovecot-uidvalidity"
#define DBOX_INDEX_PREFIX "dovecot.index"
#define DBOX_MAILBOX_DIR_NAME "mailboxes"
#define DBOX_TRASH_DIR_NAME "trash"
#define DBOX_MAILDIR_NAME "dbox-Mails"
/* How often to scan for stale temp files (based on dir's atime) */
/* Delete temp files having ctime older than this. */
/* Flag specifies if the message should be in primary or alternative storage */
struct dbox_storage_vfuncs {
/* dbox file has zero references now. it should be either freed or
left open in case it's accessed again soon */
/* create a new file using the same permissions as file.
if parents=TRUE, create the directory if necessary */
bool parents);
const struct mailbox_update *update);
};
struct dbox_storage {
struct mail_storage storage;
struct dbox_storage_vfuncs v;
unsigned int files_corrupted:1;
};
struct mailbox_list_settings *set);
#endif