mail-search-build.h revision 4fc52b7b25c3d3f42348903e0154840f8761f306
7327394e30c1020b9a2a49c72a7e3d0f7803e680Timo Sirainen/* Start building a new search query. Use mail_search_args_unref() to
c4b376dd6e0c423006d7ac83a39253bcaf8e7c47Timo Sirainenstruct mail_search_args *mail_search_build_init(void);
7327394e30c1020b9a2a49c72a7e3d0f7803e680Timo Sirainen/* Convert IMAP SEARCH command compatible parameters to mail_search_args. */
4fc52b7b25c3d3f42348903e0154840f8761f306Timo Sirainenint mail_search_build_from_imap_args(struct mail_search_register *reg,
c4b376dd6e0c423006d7ac83a39253bcaf8e7c47Timo Sirainen const char **error_r);
7327394e30c1020b9a2a49c72a7e3d0f7803e680Timo Sirainen/* Add SEARCH_ALL to search args. */
c4b376dd6e0c423006d7ac83a39253bcaf8e7c47Timo Sirainenvoid mail_search_build_add_all(struct mail_search_args *args);
7327394e30c1020b9a2a49c72a7e3d0f7803e680Timo Sirainen/* Add a sequence set to search args. */
c4b376dd6e0c423006d7ac83a39253bcaf8e7c47Timo Sirainenvoid mail_search_build_add_seqset(struct mail_search_args *args,
4fc52b7b25c3d3f42348903e0154840f8761f306Timo Sirainenint mail_search_build_next_astring(struct mail_search_build_context *ctx,
4fc52b7b25c3d3f42348903e0154840f8761f306Timo Sirainen const char **value_r);
4fc52b7b25c3d3f42348903e0154840f8761f306Timo Sirainenmail_search_build_new(struct mail_search_build_context *ctx,
4fc52b7b25c3d3f42348903e0154840f8761f306Timo Sirainenmail_search_build_str(struct mail_search_build_context *ctx,
20b2d47ed762ca2c009aa37e360af6f223ac71bdTimo Sirainenmail_search_build_next(struct mail_search_build_context *ctx,