mail-storage.c revision b365bd121cdc87f63e1dd47c5085a27091118e00
5f08b0309190ec818d46bfe0e497468b30714a93Timo Sirainen/* Copyright (c) 2002-2010 Dovecot authors, see the included COPYING file */
5f08b0309190ec818d46bfe0e497468b30714a93Timo Sirainenextern struct mail_search_register *mail_search_register_imap;
5f08b0309190ec818d46bfe0e497468b30714a93Timo Sirainenextern struct mail_search_register *mail_search_register_human;
5f08b0309190ec818d46bfe0e497468b30714a93Timo Sirainenstruct mail_storage_module_register mail_storage_module_register = { 0 };
5f08b0309190ec818d46bfe0e497468b30714a93Timo Sirainenstruct mail_module_register mail_module_register = { 0 };
5f08b0309190ec818d46bfe0e497468b30714a93Timo Sirainenstruct mail_storage_mail_index_module mail_storage_mail_index_module =
5f08b0309190ec818d46bfe0e497468b30714a93Timo Sirainen MODULE_CONTEXT_INIT(&mail_index_module_register);
void mail_storage_deinit(void)
unsigned int i, count;
for (i = 0; i < count; i++) {
unsigned int i, count;
for (i = 0; i < count; i++) {
return classes[i];
return NULL;
static struct mail_storage *
unsigned int i, count;
for (i = 0; i < count; i++) {
return classes[i];
return NULL;
p = *data;
while (i_isalnum(*p)) p++;
static struct mail_storage *
const char *home;
return NULL;
return NULL;
return storage_class;
return storage_class;
return NULL;
static struct mail_storage *
MAIL_STORAGE_CLASS_FLAG_UNIQUE_ROOT) == 0 ||
return storage;
return NULL;
error_r) < 0)
error_r);
T_BEGIN {
} T_END;
const char *fmt, ...)
const char *str;
const struct mail_storage_settings *
void *context)
const char *error_string;
return FALSE;
return FALSE;
return TRUE;
T_BEGIN {
} T_END;
return box;
int ret;
MAIL_STORAGE_CLASS_FLAG_OPEN_STREAMS) == 0) {
T_BEGIN {
} T_END;
} T_END;
if (ret < 0) {
bool directory)
directory) < 0) {
if (del)
return FALSE;
return FALSE;
return FALSE;
return TRUE;
int ret;
return ret;
return TRUE;
return FALSE;
return FALSE;
return TRUE;
bool rename_children)
struct mail_namespace *
return FALSE;
struct mailbox_sync_context *
T_BEGIN {
} T_END;
return ctx;
const char *errormsg;
int ret;
return ret;
struct mail_keywords *
const char *const keywords[])
i_unreached();
return kw;
struct mail_keywords *
const char **error_r)
return FALSE;
bool only_with_msgs)
struct mailbox_header_lookup_ctx *
struct mail_search_context *
int ret;
return ret;
bool tryagain;
if (!tryagain)
return FALSE;
return TRUE;
return FALSE;
return TRUE;
int ret;
if (ret < 0)
return ret;
struct mailbox_transaction_context *
return trans;
int ret;
return ret;
int ret;
T_BEGIN {
} T_END;
return ret;
struct mailbox *
return t->box;
struct mail_save_context *
return ctx;
const char *const *keywords_list;
const char *envelope)
int ret;
if (ret < 0) {
int ret;
return ret;
int ret;
return ret;
int *fd_r)
int fd;