dbox-storage.h revision 61b0637759146621cbb7edcbd0b03a71cfd66dfe
45726939a48e605b0166521f94300ae04981a3a7Sumit Bose#define DBOX_SUBSCRIPTION_FILE_NAME "subscriptions"
45726939a48e605b0166521f94300ae04981a3a7Sumit Bose#define DBOX_UIDVALIDITY_FILE_NAME "dovecot-uidvalidity"
45726939a48e605b0166521f94300ae04981a3a7Sumit Bose/* How often to scan for stale temp files (based on dir's atime) */
45726939a48e605b0166521f94300ae04981a3a7Sumit Bose/* Delete temp files having ctime older than this. */
45726939a48e605b0166521f94300ae04981a3a7Sumit Bose /* dbox file has zero references now. it should be either freed or
45726939a48e605b0166521f94300ae04981a3a7Sumit Bose left open in case it's accessed again soon */
45726939a48e605b0166521f94300ae04981a3a7Sumit Bose /* create a new file using the same permissions as file.
45726939a48e605b0166521f94300ae04981a3a7Sumit Bose if parents=TRUE, create the directory if necessary */
45726939a48e605b0166521f94300ae04981a3a7Sumit Bose int (*file_create_fd)(struct dbox_file *file, const char *path,
45726939a48e605b0166521f94300ae04981a3a7Sumit Bose /* open the mail and return its file/offset */
45726939a48e605b0166521f94300ae04981a3a7Sumit Bose int (*mail_open)(struct dbox_mail *mail, uoff_t *offset_r,
45726939a48e605b0166521f94300ae04981a3a7Sumit Bose /* create/update mailbox indexes */
45726939a48e605b0166521f94300ae04981a3a7Sumit Bose int (*mailbox_create_indexes)(struct mailbox *box,
45726939a48e605b0166521f94300ae04981a3a7Sumit Bosevoid dbox_storage_get_list_settings(const struct mail_namespace *ns,
45726939a48e605b0166521f94300ae04981a3a7Sumit Boseuint32_t dbox_get_uidvalidity_next(struct mailbox_list *list);
45726939a48e605b0166521f94300ae04981a3a7Sumit Bose const struct mailbox_update *update, bool directory);
45726939a48e605b0166521f94300ae04981a3a7Sumit Boseint dbox_list_iter_is_mailbox(struct mailbox_list_iterate_context *ctx,
45726939a48e605b0166521f94300ae04981a3a7Sumit Boseint dbox_list_rename_mailbox_pre(struct mailbox_list *oldlist,
45726939a48e605b0166521f94300ae04981a3a7Sumit Bose const char *newname);
45726939a48e605b0166521f94300ae04981a3a7Sumit Boseint dbox_list_rename_mailbox(struct mailbox_list *oldlist, const char *oldname,
45726939a48e605b0166521f94300ae04981a3a7Sumit Bose struct mailbox_list *newlist, const char *newname,