/* Copyright (c) 2010-2018 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "imap-arg.h"
#include "mail-search-parser-private.h"
struct imap_arg_stack {
};
struct imap_mail_search_parser {
};
const char **key_r)
{
(struct imap_mail_search_parser *)_parser;
case IMAP_ARG_NIL:
case IMAP_ARG_ATOM:
break;
case IMAP_ARG_STRING:
case IMAP_ARG_LITERAL:
"Unexpected string as search key: ",
return -1;
case IMAP_ARG_LIST:
return 1;
case IMAP_ARG_EOL:
return 0;
case IMAP_ARG_LITERAL_SIZE:
i_unreached();
}
return 1;
}
const char **value_r)
{
(struct imap_mail_search_parser *)_parser;
case IMAP_ARG_NIL:
case IMAP_ARG_ATOM:
case IMAP_ARG_STRING:
case IMAP_ARG_LITERAL:
break;
case IMAP_ARG_LIST:
return -1;
case IMAP_ARG_EOL:
return -1;
case IMAP_ARG_LITERAL_SIZE:
i_unreached();
}
return 1;
}
static bool
{
(struct imap_mail_search_parser *)_parser;
const char *arg;
return FALSE;
return FALSE;
return TRUE;
}
};
struct mail_search_parser *
{
}