commands.h revision 66a872b4569c048e804f0731680d89c6042d8890
#ifndef __COMMANDS_H
#define __COMMANDS_H
struct client_command_context;
#include "mail-storage.h"
#include "imap-parser.h"
#include "imap-sync.h"
#include "commands-util.h"
enum command_flags {
/* Command uses sequences as its input parameters */
COMMAND_FLAG_USES_SEQS = 0x01,
/* Command may reply with EXPUNGE, causing sequences to break */
COMMAND_FLAG_BREAKS_SEQS = 0x02,
/* Command changes the mailbox */
};
struct command {
const char *name;
enum command_flags flags;
};
/* Register command. Given name parameter must be permanently stored until
command is unregistered. */
enum command_flags flags);
void command_unregister(const char *name);
/* Register array of commands. */
void commands_init(void);
void commands_deinit(void);
/* IMAP4rev1 commands: */
/* Non-Authenticated State */
/* Authenticated State */
/* Selected state */
/* IMAP extensions: */
/* private: */
#endif