mail-storage-settings.c revision 4c0e20db10034bb572d278f62beff12e3deb17d9
c25356d5978632df6203437e1953bcb29e0c736fTimo Sirainen/* Copyright (c) 2005-2014 Dovecot authors, see the included COPYING file */
fadd878cd6098f5b873c21c121209a922679dae4Timo Sirainenstatic bool mail_storage_settings_check(void *_set, pool_t pool, const char **error_r);
fadd878cd6098f5b873c21c121209a922679dae4Timo Sirainenstatic bool namespace_settings_check(void *_set, pool_t pool, const char **error_r);
471e447023ab73a73f0f78da2afc0c55905330ddTimo Sirainenstatic bool mailbox_settings_check(void *_set, pool_t pool, const char **error_r);
471e447023ab73a73f0f78da2afc0c55905330ddTimo Sirainenstatic bool mail_user_settings_check(void *_set, pool_t pool, const char **error_r);
95a1a5195d56f3cf5d1e529aad668f87ad3b979bTimo Sirainen { type, #name, offsetof(struct mail_storage_settings, name), NULL }
95a1a5195d56f3cf5d1e529aad668f87ad3b979bTimo Sirainenstatic const struct setting_define mail_storage_setting_defines[] = {
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen DEF(SET_BOOL, mailbox_list_index_very_dirty_syncs),
88b8aea03a24ef7a9efc30399080487b7eb03537Timo Sirainenconst struct mail_storage_settings mail_storage_default_settings = {
4bc96ba6f1d67a90a75fa131bcd2cd508ea5a05aTimo Sirainenconst struct setting_parser_info mail_storage_setting_parser_info = {
ae8817f05005f57bba32479a610b52d083e2b6ebTimo Sirainen .struct_size = sizeof(struct mail_storage_settings),
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen { type, #name, offsetof(struct mailbox_settings, name), NULL }
902222fb0928d1701f20a384b73f327b1d9a15ddTimo Sirainenstatic const struct setting_define mailbox_setting_defines[] = {
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen { SET_ENUM, "auto", offsetof(struct mailbox_settings, autocreate), NULL } ,
b87a4156eca6dcf6b29c504eb0cb9be2fdb11b63Timo Sirainenconst struct mailbox_settings mailbox_default_settings = {
95a1a5195d56f3cf5d1e529aad668f87ad3b979bTimo Sirainenconst struct setting_parser_info mailbox_setting_parser_info = {
.last_valid_uid = 0,
.last_valid_gid = 0,
const char *driver)
const void *dset;
driver);
return dset;
const struct mail_storage_settings *
const struct dynamic_settings_parser *
unsigned int i, j, count;
return parsers;
const char **error_r)
const char *p, *error;
bool uidl_format_ok;
return FALSE;
return FALSE;
return FALSE;
return FALSE;
return FALSE;
c = var_get_key(++p);
return FALSE;
if (!uidl_format_ok) {
return FALSE;
return FALSE;
return FALSE;
return FALSE;
#ifndef CONFIG_BINARY
return FALSE;
return TRUE;
const char **error_r)
const char *name;
unsigned int i, count;
name);
return FALSE;
name);
return FALSE;
&count);
count = 0;
for (i = 0; i < count; i++) {
if (i == count) {
return FALSE;
return FALSE;
return TRUE;
return FALSE;
name++;
return TRUE;
return TRUE;
return TRUE;
return TRUE;
return TRUE;
return TRUE;
return TRUE;
return FALSE;
const char **error_r)
return FALSE;
return TRUE;
const char **error_r)
return FALSE;
return FALSE;
return TRUE;
#ifndef CONFIG_BINARY
return FALSE;
return TRUE;