doveadm.c revision d1fff80640050631b06bfab904a34b2ad24601e8
/* Copyright (c) 2009 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "env-util.h"
#include "master-service.h"
#include "mail-user.h"
#include "mail-namespace.h"
#include "mail-storage.h"
#include "mail-storage-settings.h"
#include "mail-storage-service.h"
#include <stdlib.h>
static void ATTR_NORETURN
usage(void)
{
"usage: doveadm \n"
" purge <user>\n"
" force-resync <user> <mailbox>\n"
);
}
{
struct mail_namespace *ns;
continue;
}
}
}
static struct mailbox *
{
struct mail_namespace *ns;
struct mail_storage *storage;
const char *orig_mailbox = mailbox;
}
return box;
}
{
struct mail_storage *storage;
usage();
MAILBOX_SYNC_FLAG_FIX_INCONSISTENT, 0, NULL) < 0) {
}
mailbox_close(&box);
}
{
enum mail_storage_service_flags service_flags = 0;
struct master_service *service;
struct mail_storage_service_input input;
const char *getopt_str;
int c;
switch (c) {
case 'u':
break;
case 'v':
break;
default:
usage();
}
}
usage();
i_fatal("USER environment is missing and -u option not used");
else
usage();
return 0;
}