doveconf.c revision f5ff1c14f929f177c3039de898d060a7305e126f
/* Copyright (C) 2005-2009 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "array.h"
#include "env-util.h"
#include "ostream.h"
#include "settings-parser.h"
#include "master-service.h"
#include "all-settings.h"
#include "sysinfo-get.h"
#include "config-connection.h"
#include "config-parser.h"
#include "config-request.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
struct config_request_get_string_ctx {
};
static void
{
}
{
unsigned int i = 0;
return 0;
i++;
}
if (s1[i] == '=')
return -1;
if (s2[i] == '=')
return 1;
}
{
const unsigned int *indexes;
return idx;
}
const struct config_filter *filter,
const char *module,
enum config_dump_scope scope)
{
static const char *ident_str = " ";
struct config_request_get_string_ctx ctx;
config_request_get_strings, &ctx) < 0)
return;
*args);
}
} T_END;
value++;
j = 0;
while (prefix_idx != -1U) {
indent--;
/* keep the prefix */
j = prefix_count;
break;
} else {
/* subprefix */
break;
}
}
for (; j < prefix_count; j++) {
indent++;
prefix_idx = j;
break;
}
}
} T_END;
while (prefix_idx != -1U) {
indent--;
}
}
const char *module,
enum config_dump_scope scope)
{
}
bool list ATTR_UNUSED,
void *context ATTR_UNUSED)
{
T_BEGIN {
} T_END;
}
static const char *get_mail_location(void)
{
struct config_module_parser *l;
const struct setting_define *def;
const char *const *value;
const void *set;
continue;
return *value;
}
}
}
return "";
}
{
&filter->local_bits) < 0)
i_fatal("lip: Invalid network mask");
&filter->remote_bits) < 0)
i_fatal("rip: Invalid network mask");
} else {
}
}
{
struct config_filter filter;
const char *error;
int c, ret;
i_set_failure_prefix("doveconf: ");
if (c == 'e')
break;
switch (c) {
case 'a':
break;
case 'f':
break;
case 'm':
break;
case 'n':
break;
case 'N':
break;
default:
c, optarg))
}
}
if (c != 'e')
} else {
/* print the config file path before parsing it, so in case
of errors it's still shown */
}
if (ret <= 0)
const char *info;
if (*info != '\0')
} else {
env_put("DOVECONF_ENV=1");
config_request_putenv, NULL) < 0)
i_fatal("Invalid configuration");
}
return 0;
}