doveadm-mail.c revision 66ed2ab5234e0fdb1acef4f9bee2226248ee0117
48f78a48f2e1cf299026544444666471ae16ad97Timo Sirainen/* Copyright (c) 2009-2011 Dovecot authors, see the included COPYING file */
94f9cf3436f949d6450e8cda523979fc1b11f103Timo SirainenARRAY_TYPE(doveadm_mail_cmd) doveadm_mail_cmds;
94f9cf3436f949d6450e8cda523979fc1b11f103Timo Sirainenvoid (*hook_doveadm_mail_init)(struct doveadm_mail_cmd_context *ctx);
892f02d4ab8f764f86015009aaf7437349398286Timo Sirainen i_assert(size >= sizeof(struct doveadm_mail_cmd_context));
892f02d4ab8f764f86015009aaf7437349398286Timo Sirainen pool = pool_alloconly_create("doveadm mail cmd", 1024);
892f02d4ab8f764f86015009aaf7437349398286Timo Sirainencmd_purge_run(struct doveadm_mail_cmd_context *ctx ATTR_UNUSED,
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 *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;
if (doveadm_debug)
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;
&cmd_move,
void doveadm_mail_init(void)
&mod_set);
void doveadm_mail_deinit(void)