main.c revision e60c3e17c656c53da60f0ac51aa15e9ef2742d77
/* Copyright (c) 2005-2017 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "restrict-access.h"
#include "process-title.h"
#include "master-service.h"
#include "master-service-settings.h"
#include "settings-parser.h"
#include "dict.h"
#include "client-connection.h"
#include "client-connection-private.h"
#include "doveadm-settings.h"
#include "doveadm-dump.h"
#include "doveadm-mail.h"
#include "doveadm-print-private.h"
#include "doveadm-server.h"
#include "ostream.h"
const struct doveadm_print_vfuncs *doveadm_print_vfuncs_all[] = {
};
struct client_connection *doveadm_client;
int doveadm_exit_code = 0;
static pool_t doveadm_settings_pool;
static void doveadm_die(void)
{
/* do nothing. doveadm connections should be over soon. */
}
{
if (doveadm_client != NULL) {
i_error("doveadm server can handle only a single client");
return;
}
} else {
}
}
{
i_fatal("Client sent invalid command. Usage: %s %s",
}
{
i_fatal("Client sent invalid command. Usage: %s %s",
}
static void main_preinit(void)
{
}
static void main_init(void)
{
process_title_set("[idling]");
}
static void main_deinit(void)
{
if (doveadm_client != NULL)
}
{
const struct setting_parser_info *set_roots[] = {
};
struct master_service_settings_input input;
struct master_service_settings_output output;
const char *error;
int c;
while ((c = master_getopt(master_service)) > 0) {
switch (c) {
case 'D':
break;
default:
return FATAL_DEFAULT;
}
}
&error) < 0)
main_preinit();
main_init();
main_deinit();
return 0;
}