extern struct mailbox raw_mailbox;
struct mail_user *
-raw_storage_create_from_set(const struct setting_parser_context *unexpanded_set_parser)
+raw_storage_create_from_set(struct setting_parser_context *unexpanded_set_parser)
{
struct mail_user *user;
struct mail_namespace *ns;
extern struct mail_vfuncs raw_mail_vfuncs;
struct mail_user *
-raw_storage_create_from_set(const struct setting_parser_context *unexpanded_set_parser);
+raw_storage_create_from_set(struct setting_parser_context *unexpanded_set_parser);
int raw_mailbox_alloc_stream(struct mail_user *user, struct istream *input,
time_t received_time, const char *envelope_sender,
int mail_storage_service_read_settings(struct mail_storage_service_ctx *ctx,
const struct mail_storage_service_input *input,
- const struct setting_parser_context **parser_r,
+ struct setting_parser_context **parser_r,
const char **error_r)
{
struct master_service_settings_input set_input;
if (null_strcmp(set_input.module, ctx->set_cache_module) == 0 &&
null_strcmp(set_input.service, ctx->set_cache_service) == 0 &&
ctx->set_cache != NULL) {
- struct setting_parser_context *parser;
if (master_service_settings_cache_read(ctx->set_cache,
&set_input,
- &parser, error_r) < 0) {
+ parser_r, error_r) < 0) {
*error_r = t_strdup_printf(
"Error reading configuration: %s", *error_r);
return -1;
}
- *parser_r = parser;
} else {
if (master_service_settings_read(ctx->service, &set_input,
&set_output, error_r) < 0) {
const struct mail_user_settings *user_set;
const char *const *userdb_fields, *error;
struct auth_user_reply reply;
- const struct setting_parser_context *set_parser;
+ struct setting_parser_context *set_parser;
pool_t user_pool, temp_pool;
int ret = 1;
const struct mail_storage_service_input *input)
{
const struct mail_user_settings *user_set;
- const struct setting_parser_context *set_parser;
+ struct setting_parser_context *set_parser;
const char *error;
if (ctx->conn != NULL)
struct auth_master_connection *conn);
int mail_storage_service_read_settings(struct mail_storage_service_ctx *ctx,
const struct mail_storage_service_input *input,
- const struct setting_parser_context **parser_r,
+ struct setting_parser_context **parser_r,
const char **error_r) ATTR_NULL(2);
/* Read settings and initialize context to use them. Do nothing if service is
already initialized. This is mainly necessary when calling _get_auth_conn()
static struct mail_user *
mail_user_alloc_int(struct event *parent_event,
const char *username,
- const struct setting_parser_context *unexpanded_set_parser,
+ struct setting_parser_context *unexpanded_set_parser,
pool_t pool)
{
struct mail_user *user;
struct mail_user *
mail_user_alloc_nodup_set(struct event *parent_event,
const char *username,
- const struct setting_parser_context *unexpanded_set_parser)
+ struct setting_parser_context *unexpanded_set_parser)
{
pool_t pool;
struct mail_user *mail_user_alloc(struct event *parent_event,
const char *username,
- const struct setting_parser_context *unexpanded_set_parser)
+ struct setting_parser_context *unexpanded_set_parser)
{
pool_t pool;
This could be set by plugins that need to fail the initialization. */
const char *error;
- const struct setting_parser_context *unexpanded_set_parser;
- const struct setting_parser_context *set_parser;
+ struct setting_parser_context *unexpanded_set_parser;
+ struct setting_parser_context *set_parser;
const struct mail_user_settings *unexpanded_set;
struct mail_user_settings *set;
struct mail_namespace *namespaces;
struct mail_user *mail_user_alloc(struct event *parent_event,
const char *username,
- const struct setting_parser_context *unexpanded_set_parser);
+ struct setting_parser_context *unexpanded_set_parser);
struct mail_user *
mail_user_alloc_nodup_set(struct event *parent_event,
const char *username,
- const struct setting_parser_context *set_parser);
+ struct setting_parser_context *set_parser);
/* Returns -1 if settings were invalid. */
int mail_user_init(struct mail_user *user, const char **error_r);
static void client_read_settings(struct client *client, bool ssl)
{
struct mail_storage_service_input input;
- const struct setting_parser_context *set_parser;
+ struct setting_parser_context *set_parser;
struct lmtp_settings *lmtp_set;
struct lda_settings *lda_set;
const char *error;
NULL
};
struct mail_storage_service_input input;
- const struct setting_parser_context *set_parser;
+ struct setting_parser_context *set_parser;
const struct mail_user_settings *user_set;
const char *value, *error;