mail-storage-private.h revision 420040a5930a2b497e79ff0b5f59ba4b764a5b39
2ronwalf#ifndef MAIL_STORAGE_PRIVATE_H
2ronwalf#define MAIL_STORAGE_PRIVATE_H
2ronwalf#include "module-context.h"
2ronwalf#include "file-lock.h"
2ronwalf#include "mail-storage.h"
2ronwalf#include "mail-storage-hooks.h"
2ronwalf#include "mail-storage-settings.h"
38daenzerorama#include "mail-index-private.h"
2ronwalfstruct mail_module_register {
2ronwalfstruct mail_storage_vfuncs {
2ronwalfstruct mail_storage {
2ronwalf struct mail_storage_vfuncs v;
2ronwalf int obj_refcount;
2ronwalf const char *unique_root_dir;
2ronwalf char *error_string;
2ronwalf const char *temp_path_prefix;
2ronwalf void *callback_context;
2ronwalfstruct mailbox_vfuncs {
2ronwalf bool rename_children);
2ronwalf struct mailbox_sync_context *
2ronwalf struct mailbox_transaction_context *
2ronwalf bool skip_invalid);
2ronwalf struct mail_keywords *
38daenzerorama const char *backend_mailbox,
bool only_with_msgs);
struct mail *
struct mailbox_header_lookup_ctx *
const char *const headers[]);
struct mail_search_context *
struct mail_save_context *
union mailbox_module_context {
struct mailbox {
const char *name;
struct mailbox_vfuncs v;
const char *path;
const char *vname;
unsigned int transaction_count;
const char *file_create_gid_origin;
unsigned int notify_min_interval;
void *notify_context;
struct mail_vfuncs {
const char **value_r);
union mail_module_context {
struct mail_private {
struct mail_vfuncs v;
unsigned long stats_open_lookup_count;
unsigned long stats_stat_lookup_count;
unsigned long stats_fstat_lookup_count;
unsigned long stats_files_read_count;
unsigned long long stats_files_read_bytes;
unsigned long stats_cache_hit_count;
struct mailbox_list_context {
bool failed;
struct mailbox_transaction_context {
union mailbox_transaction_module_context *);
union mail_search_module_context {
struct mail_search_context {
struct mail_save_context {
int received_tz_offset;
struct mailbox_sync_context {
struct mailbox_header_lookup_ctx {
const char *const *headers;
int refcount;
int *fd_r);