doveadm-mail.h revision ecbbdf594f9329fc15a182bd6c7c4a7fb144ed74
#ifndef DOVEADM_MAIL_H
#define DOVEADM_MAIL_H
#include "doveadm.h"
struct mail_user;
struct doveadm_mail_cmd_context;
struct doveadm_mail_cmd_context {
const char *getopt_args;
const char *const args[]);
};
struct doveadm_mail_cmd {
struct doveadm_mail_cmd_context *(*alloc)(void);
const char *name;
const char *usage_args;
};
void doveadm_mail_usage(void);
void doveadm_mail_try_help_name(const char *cmd_name);
void doveadm_mail_init(void);
void doveadm_mail_deinit(void);
struct mailbox *
struct mail_search_args *
doveadm_mail_build_search_args(const char *const args[]);
struct doveadm_mail_cmd_context *
#define doveadm_mail_cmd_alloc(type) \
struct doveadm_mail_cmd cmd_expunge;
struct doveadm_mail_cmd cmd_search;
struct doveadm_mail_cmd cmd_fetch;
struct doveadm_mail_cmd cmd_altmove;
struct doveadm_mail_cmd cmd_mailbox_list;
struct doveadm_mail_cmd cmd_mailbox_create;
struct doveadm_mail_cmd cmd_mailbox_delete;
struct doveadm_mail_cmd cmd_mailbox_rename;
#endif