doveadm.c revision 706c55b9e97b7e4b9018f70b672895572a584a35
/* Copyright (c) 2009-2010 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "array.h"
#include "str.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 char *doveadm_plugin_getenv(const char *name)
{
const char *const *envs;
unsigned int i, count;
return NULL;
for (i = 0; i < count; i += 2) {
return envs[i+1];
}
return NULL;
}
{
const struct doveadm_cmd *cmd;
int i;
usage();
for (i = 1; i < argc; i++) {
}
}
usage();
}
static struct doveadm_cmd doveadm_cmd_help = {
};
static bool
{
unsigned int len;
if (argc < 2)
return FALSE;
return FALSE;
/* more args */
}
return FALSE;
/* match */
return TRUE;
}
{
const struct doveadm_cmd *cmd;
unsigned int cmd_name_len;
return TRUE;
}
/* see if it matches a multi-word command */
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. */
}
static struct doveadm_cmd *doveadm_commands[] = {
};
{
static const struct setting_parser_info *set_roots[] = {
};
struct master_service_settings_input input;
struct master_service_settings_output output;
unsigned int i;
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;
}
}
for (i = 0; i < N_ELEMENTS(doveadm_commands); i++)
usage();
optind = 1;
if (!doveadm_debug) {
/* disable debugging unless -D is given */
i_set_debug_file("/dev/null");
}
usage();
return 0;
}