/* Copyright (c) 2013-2018 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "imap-util.h"
#include "mail-storage.h"
#include "doveadm-mailbox-list-iter.h"
#include "doveadm-mail-iter.h"
#include "doveadm-mail.h"
#include <stdio.h>
struct flags_cmd_context {
const char *const *keywords;
};
static int
const struct mailbox_info *info)
{
return -1;
i_error("Invalid keywords: %s",
(void)doveadm_mail_iter_deinit(&iter);
return -1;
}
}
}
return doveadm_mail_iter_deinit_sync(&iter);
}
static int
{
int ret = 0;
ret = -1;
} T_END;
if (doveadm_mailbox_list_iter_deinit(&iter) < 0)
ret = -1;
return ret;
}
const char *const args[])
{
const char *const *tmp;
switch (ctx->modify_type) {
case MODIFY_ADD:
doveadm_mail_help_name("flags add");
case MODIFY_REMOVE:
doveadm_mail_help_name("flags remove");
case MODIFY_REPLACE:
doveadm_mail_help_name("flags replace");
}
i_unreached();
}
if (str[0] == '\\') {
if (flag == 0)
} else {
}
}
}
}
static struct doveadm_mail_cmd_context *
{
}
{
return cmd_flag_alloc(MODIFY_ADD);
}
{
return cmd_flag_alloc(MODIFY_REMOVE);
}
{
return cmd_flag_alloc(MODIFY_REPLACE);
}
.name = "flags add",
DOVEADM_CMD_PARAM('\0', "flagstr", CMD_PARAM_STR, CMD_PARAM_FLAG_POSITIONAL|CMD_PARAM_FLAG_DO_NOT_EXPOSE)
};
.name = "flags remove",
DOVEADM_CMD_PARAM('\0', "flagstr", CMD_PARAM_STR, CMD_PARAM_FLAG_POSITIONAL|CMD_PARAM_FLAG_DO_NOT_EXPOSE)
};
.name = "flags replace",
DOVEADM_CMD_PARAM('\0', "flagstr", CMD_PARAM_STR, CMD_PARAM_FLAG_POSITIONAL|CMD_PARAM_FLAG_DO_NOT_EXPOSE)
};