doveadm.c revision 381daab1e3b56a0bc94d2191cf62beba0df51af9
/* Copyright (c) 2009-2010 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "array.h"
#include "module-dir.h"
#include "master-service.h"
#include "master-service-settings.h"
#include "doveadm-mail.h"
#include "doveadm-settings.h"
#include "doveadm.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <time.h>
{
}
void usage(void)
{
const struct doveadm_cmd *cmd;
}
exit(1);
}
{
exit(0);
}
{
static char buf[64];
return buf;
}
{
const struct doveadm_cmd *cmd;
usage();
}
usage();
}
static struct doveadm_cmd doveadm_cmd_help = {
};
{
const struct doveadm_cmd *cmd;
return TRUE;
}
}
return FALSE;
}
static void doveadm_load_modules(void)
{
struct module_dir_load_settings mod_set;
/* some doveadm plugins have dependencies to mail plugins. we can load
only those whose dependencies have been loaded earlier, the rest are
ignored. */
}
{
const struct setting_parser_info *set_roots[] = {
};
int c;
/* "+" is GNU extension to stop at the first non-option.
others just accept -+ option. */
while ((c = master_getopt(master_service)) > 0) {
switch (c) {
case 'D':
break;
case 'v':
break;
default:
return FATAL_DEFAULT;
}
}
&error) < 0)
usage();
optind = 1;
if (!doveadm_debug) {
/* disable debugging unless -D is given */
i_set_debug_file("/dev/null");
}
usage();
return 0;
}