imap-commands.c revision 1ddf959a750f3860feff4ab3f0e908f32740978f
/* Copyright (c) 2002-2015 Dovecot authors, see the included COPYING file */
#include "imap-common.h"
#include "array.h"
#include "buffer.h"
#include "ioloop.h"
#include "istream.h"
#include "ostream.h"
#include "time-util.h"
#include "imap-commands.h"
struct command_hook {
};
static const struct command imap4rev1_commands[] = {
{ "CAPABILITY", cmd_capability, 0 },
{ "CREATE", cmd_create, 0 },
{ "LIST", cmd_list, 0 },
{ "LSUB", cmd_lsub, 0 },
{ "STATUS", cmd_status, 0 },
{ "SUBSCRIBE", cmd_subscribe, 0 },
};
static const struct command imap_ext_commands[] = {
/* IMAP extensions: */
{ "CANCELUPDATE", cmd_cancelupdate,0 },
{ "ENABLE", cmd_enable, 0 },
{ "ID", cmd_id, 0 },
{ "GETMETADATA", cmd_getmetadata, 0 },
{ "SETMETADATA", cmd_setmetadata, 0 },
{ "NAMESPACE", cmd_namespace, 0 },
{ "X-CANCEL", cmd_x_cancel, 0 },
{ "XLIST", cmd_list, 0 },
/* IMAP URLAUTH (RFC4467): */
{ "GENURLAUTH", cmd_genurlauth, 0 },
{ "RESETKEY", cmd_resetkey, 0 },
{ "URLFETCH", cmd_urlfetch, 0 }
};
static bool commands_unsorted;
enum command_flags flags)
{
}
void command_unregister(const char *name)
{
unsigned int i, count;
for (i = 0; i < count; i++) {
return;
}
}
}
{
}
{
while (count > 0) {
}
}
{
struct command_hook hook;
}
{
const struct command_hook *hooks;
unsigned int i, count;
for (i = 0; i < count; i++) {
return;
}
}
i_panic("command_hook_unregister(): hook not registered");
}
{
const struct command_hook *hook;
bool finished;
struct timeval cmd_start_timeval;
cmd->running_usecs +=
return finished;
}
{
}
{
}
{
if (commands_unsorted) {
}
}
void commands_init(void)
{
}
void commands_deinit(void)
{
}