mail-search-build.h revision 7327394e30c1020b9a2a49c72a7e3d0f7803e680
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. */
c4b376dd6e0c423006d7ac83a39253bcaf8e7c47Timo Sirainenint mail_search_build_from_imap_args(const struct imap_arg *imap_args,
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. */