mail-search-build.c revision 20b2d47ed762ca2c009aa37e360af6f223ac71bd
/* Copyright (c) 2002-2010 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "imap-arg.h"
#include "mail-storage-private.h"
#include "mail-search-register.h"
#include "mail-search-build.h"
#include <stdlib.h>
struct mail_search_arg *
{
const char *key;
const struct mail_search_register_arg *reg_arg;
if (IMAP_ARG_IS_EOL(*imap_args)) {
return NULL;
}
/* NIL not allowed */
return NULL;
}
if (IMAP_ARG_IS_EOL(listargs)) {
return NULL;
}
while (!IMAP_ARG_IS_EOL(listargs)) {
return NULL;
}
*imap_args += 1;
return sarg;
}
/* string argument - get the name and jump to next */
*imap_args += 1;
else {
}
return sarg;
}
const char *charset,
struct mail_search_args **args_r,
const char **error_r)
{
struct mail_search_build_context ctx;
struct mail_search_args *args;
struct mail_search_arg **sargs;
while (!IMAP_ARG_IS_EOL(imap_args)) {
return -1;
}
}
return 0;
}
struct mail_search_args *mail_search_build_init(void)
{
struct mail_search_args *args;
return args;
}
{
struct mail_search_arg *arg;
}
{
struct mail_search_arg *arg;
}