mbox-storage.h revision 40b714bd96a1a1ff4c435f44ae61f73f8e16df7c
#ifndef __MBOX_STORAGE_H
#define __MBOX_STORAGE_H
/* Extra space to leave in X-Keywords header when rewriting mbox */
#define MBOX_HEADER_EXTRA_SPACE 50
#define SUBSCRIPTION_FILE_NAME ".subscriptions"
#define MBOX_INDEX_PREFIX "dovecot.index"
#include "index-storage.h"
struct mbox_transaction_context {
struct index_transaction_context ictx;
struct mbox_save_context *save_ctx;
unsigned int mbox_lock_id;
unsigned int mbox_modified:1;
};
extern const char *mbox_hide_headers[];
extern size_t mbox_hide_headers_count;
struct mailbox_list_context *
enum mailbox_list_flags flags);
struct mailbox_transaction_context *
int mbox_transaction_commit(struct mailbox_transaction_context *t);
void mbox_transaction_rollback(struct mailbox_transaction_context *t);
int mbox_save(struct mailbox_transaction_context *t,
const struct mail_full_flags *flags,
const char *name, int remove_namespace);
int mbox_is_valid_mask(const char *mask);
#endif