1
/* Copyright (c) 2002-2012 Dovecot authors, see the included COPYING file */
3
#include "imap-common.h"
4
#include "imap-commands.h"
6
bool cmd_uid(struct client_command_context *cmd)
8
struct command *command;
11
/* UID <command> <args> */
12
cmd_name = imap_parser_read_word(cmd->parser);
16
command = command_find(t_strconcat("UID ", cmd_name, NULL));
17
if (command == NULL) {
18
client_send_tagline(cmd, t_strconcat(
19
"BAD Unknown UID command ", cmd_name, NULL));
23
cmd->name = p_strconcat(cmd->pool, "UID ", cmd_name, NULL);
24
cmd->cmd_flags = command->flags;
25
cmd->func = command->func;
27
return command_exec(cmd);