commands.c revision 1fccbe1347d03a17b08f70a9eabb576a4e5d3965
/* Copyright (C) 2002 Timo Sirainen */
#include "common.h"
#include "buffer.h"
#include "commands.h"
#include <stdlib.h>
const struct command imap4rev1_commands[] = {
{ "AUTHENTICATE", cmd_authenticate },
{ "CAPABILITY", cmd_capability },
{ "LOGIN", cmd_login },
{ "LOGOUT", cmd_logout },
{ "NOOP", cmd_noop },
{ "APPEND", cmd_append },
{ "EXAMINE", cmd_examine },
{ "CREATE", cmd_create },
{ "DELETE", cmd_delete },
{ "RENAME", cmd_rename },
{ "LIST", cmd_list },
{ "LSUB", cmd_lsub },
{ "SELECT", cmd_select },
{ "STATUS", cmd_status },
{ "SUBSCRIBE", cmd_subscribe },
{ "UNSUBSCRIBE", cmd_unsubscribe },
{ "CHECK", cmd_check },
{ "CLOSE", cmd_close },
{ "COPY", cmd_copy },
{ "EXPUNGE", cmd_expunge },
{ "FETCH", cmd_fetch },
{ "SEARCH", cmd_search },
{ "STORE", cmd_store },
{ "UID", cmd_uid },
{ "UID COPY", cmd_copy },
{ "UID FETCH", cmd_fetch },
{ "UID SEARCH", cmd_search },
{ "UID STORE", cmd_store }
};
#define IMAP4REV1_COMMANDS_COUNT \
(sizeof(imap4rev1_commands) / sizeof(imap4rev1_commands[0]))
const struct command imap_ext_commands[] = {
{ "IDLE", cmd_idle },
{ "SORT", cmd_sort },
{ "THREAD", cmd_thread },
{ "UID SORT", cmd_sort },
{ "UID THREAD", cmd_thread },
{ "UNSELECT", cmd_unselect }
};
#define IMAP_EXT_COMMANDS_COUNT \
(sizeof(imap_ext_commands) / sizeof(imap_ext_commands[0]))
static int cmdbuf_unsorted;
{
}
void command_unregister(const char *name)
{
for (i = 0; i < count; i++) {
return;
}
}
}
{
}
{
while (count > 0) {
}
}
{
}
{
}
{
void *base;
if (cmdbuf_unsorted) {
}
}
void commands_init(void)
{
}
void commands_deinit(void)
{
}