/* do all the global initialization. delay initializing plugins until
we drop privileges the first time. */
- if ((flags & MAIL_STORAGE_SERVICE_NO_LOG_INIT) == 0) {
+ if ((flags & MAIL_STORAGE_SERVICE_FLAG_NO_LOG_INIT) == 0) {
master_service_init_log(service,
t_strconcat(service->name, ": ", NULL));
}
if (*user_set->mail_plugins == '\0')
return;
- if ((ctx->flags & MAIL_STORAGE_SERVICE_NO_PLUGINS) != 0)
+ if ((ctx->flags & MAIL_STORAGE_SERVICE_FLAG_NO_PLUGINS) != 0)
return;
mail_set = mail_user_set_get_driver_settings(user_info, user_set,
return -1;
}
- if ((ctx->flags & MAIL_STORAGE_SERVICE_NO_LOG_INIT) == 0)
+ if ((ctx->flags & MAIL_STORAGE_SERVICE_FLAG_NO_LOG_INIT) == 0)
mail_storage_service_init_log(ctx->service, user);
if ((ctx->flags & MAIL_STORAGE_SERVICE_FLAG_NO_RESTRICT_ACCESS) == 0) {
/* Enable core dumps even when dropping privileges temporarily */
MAIL_STORAGE_SERVICE_FLAG_ENABLE_CORE_DUMPS = 0x40,
/* Don't initialize logging or change log prefixes */
- MAIL_STORAGE_SERVICE_NO_LOG_INIT = 0x80,
+ MAIL_STORAGE_SERVICE_FLAG_NO_LOG_INIT = 0x80,
/* Don't load plugins in _service_lookup() */
- MAIL_STORAGE_SERVICE_NO_PLUGINS = 0x100,
+ MAIL_STORAGE_SERVICE_FLAG_NO_PLUGINS = 0x100,
/* Don't close auth connections because of idling. */
MAIL_STORAGE_SERVICE_FLAG_NO_IDLE_TIMEOUT = 0x200
};
MAIL_STORAGE_SERVICE_FLAG_DISALLOW_ROOT |
MAIL_STORAGE_SERVICE_FLAG_USERDB_LOOKUP |
MAIL_STORAGE_SERVICE_FLAG_TEMP_PRIV_DROP |
- MAIL_STORAGE_SERVICE_NO_LOG_INIT |
+ MAIL_STORAGE_SERVICE_FLAG_NO_LOG_INIT |
MAIL_STORAGE_SERVICE_FLAG_NO_IDLE_TIMEOUT;
int c;
static void client_connected(const struct master_service_connection *conn)
{
- enum mail_storage_service_flags flags = MAIL_STORAGE_SERVICE_NO_PLUGINS;
+ enum mail_storage_service_flags flags =
+ MAIL_STORAGE_SERVICE_FLAG_NO_PLUGINS;
string_t *instr, *keys;
const char **args, *key, *value, *error;
struct mail_storage_service_ctx *service_ctx;