mail-search-build.h revision 0a1ec0f2a38370e8a073a60023b4365491947f6f
551aa6c36797ed720487f5974dcadabf19e6ff9fStephen Gallagher /* error is either here or in parser */
551aa6c36797ed720487f5974dcadabf19e6ff9fStephen Gallagher/* Start building a new search query. Use mail_search_args_unref() to
551aa6c36797ed720487f5974dcadabf19e6ff9fStephen Gallagherstruct mail_search_args *mail_search_build_init(void);
d921c1eba437662437847279f251a0a5d8f70127Maxim/* Convert IMAP SEARCH command compatible parameters to mail_search_args.
551aa6c36797ed720487f5974dcadabf19e6ff9fStephen Gallagher If charset is unknown, it's changed to NULL. */
551aa6c36797ed720487f5974dcadabf19e6ff9fStephen Gallagherint mail_search_build(struct mail_search_register *reg,
551aa6c36797ed720487f5974dcadabf19e6ff9fStephen Gallagher struct mail_search_parser *parser, const char **charset,
551aa6c36797ed720487f5974dcadabf19e6ff9fStephen Gallagher struct mail_search_args **args_r, const char **error_r);
551aa6c36797ed720487f5974dcadabf19e6ff9fStephen Gallagher/* Add new search arg with given type. */
551aa6c36797ed720487f5974dcadabf19e6ff9fStephen Gallaghermail_search_build_add(struct mail_search_args *args,
4dd615c01357b8715711aad6820ba9595d3ad377Stephen Gallagher/* Add SEARCH_ALL to search args. */
551aa6c36797ed720487f5974dcadabf19e6ff9fStephen Gallaghervoid mail_search_build_add_all(struct mail_search_args *args);
551aa6c36797ed720487f5974dcadabf19e6ff9fStephen Gallagher/* Add a sequence set to search args. */
551aa6c36797ed720487f5974dcadabf19e6ff9fStephen Gallaghervoid mail_search_build_add_seqset(struct mail_search_args *args,
551aa6c36797ed720487f5974dcadabf19e6ff9fStephen Gallagher/* Convert input string into UTF-8 decomposed titlecase, suitable for
551aa6c36797ed720487f5974dcadabf19e6ff9fStephen Gallagher message_search_init() */
551aa6c36797ed720487f5974dcadabf19e6ff9fStephen Gallagherint mail_search_build_get_utf8_dtc(struct mail_search_build_context *ctx,
551aa6c36797ed720487f5974dcadabf19e6ff9fStephen Gallagher const char *input, const char **output_r);
4dd615c01357b8715711aad6820ba9595d3ad377Stephen Gallaghermail_search_build_new(struct mail_search_build_context *ctx,
551aa6c36797ed720487f5974dcadabf19e6ff9fStephen Gallaghermail_search_build_str(struct mail_search_build_context *ctx,
551aa6c36797ed720487f5974dcadabf19e6ff9fStephen Gallagher/* Returns 0 if arg is returned, -1 if error. */