doveadm-mail.c revision 0779e926687b319fe1bcc0f1010ba7f88023e789
24daenzerorama/* Copyright (c) 2009-2010 Dovecot authors, see the included COPYING file */
24daenzerorama#include "lib.h"
24daenzerorama#include "array.h"
24daenzerorama#include "lib-signals.h"
24daenzerorama#include "ioloop.h"
24daenzerorama#include "str.h"
24daenzerorama#include "module-dir.h"
24daenzerorama#include "wildcard-match.h"
24daenzerorama#include "master-service.h"
24daenzerorama#include "imap-utf7.h"
24daenzerorama#include "mail-user.h"
24daenzerorama#include "mail-namespace.h"
24daenzerorama#include "mail-storage.h"
30daenzerorama#include "mail-storage-settings.h"
30daenzerorama#include "mail-storage-service.h"
30daenzerorama#include "mail-search-build.h"
24daenzerorama#include "mail-search-parser.h"
24daenzerorama#include "doveadm.h"
24daenzerorama#include "doveadm-settings.h"
24daenzerorama#include "doveadm-print.h"
24daenzerorama#include "doveadm-mail.h"
24daenzerorama#include <stdio.h>
24daenzerorama#include <stdlib.h>
30daenzeroramastatic int killed_signo = 0;
return ctx;
return ctx;
NULL));
NULL));
struct mail_search_args *
const char *error;
return sargs;
struct force_resync_cmd_context {
const char *mailbox;
const char *const args[])
const char **error_r)
const char *error;
int ret;
if (ret <= 0) {
if (ret < 0) {
error);
return ret;
if (ret < 0) {
return ret;
const char *username,
const char *error;
int ret;
if (ret < 0)
else if (ret == 0)
const char *wildcard_user,
int ret;
user_idx = 0;
T_BEGIN {
if (ret < 0)
else if (ret == 0)
} T_END;
if (doveadm_verbose) {
if (killed_signo != 0) {
if (doveadm_verbose)
if (ret < 0)
const char **username_r)
struct doveadm_mail_cmd_context *
return ctx;
bool iter_single_user;
if (doveadm_debug)
if (iter_single_user) {
unsigned int len;
return FALSE;
return FALSE;
return FALSE;
return TRUE;
unsigned int cmd_name_len;
return TRUE;
return TRUE;
return FALSE;
return cmd;
return NULL;
return TRUE;
return FALSE;
void doveadm_mail_init(void)
&mod_set);
void doveadm_mail_deinit(void)