imap-search.h revision c4b376dd6e0c423006d7ac83a39253bcaf8e7c47
a8433392e8a5ddfe8a125716f62b2a4dc8f1f01eStephan Bosch/* Builds search arguments based on IMAP arguments. Returns -1 if search
a8433392e8a5ddfe8a125716f62b2a4dc8f1f01eStephan Bosch arguments are invalid, 0 if we have to wait for unambiguity,
a8433392e8a5ddfe8a125716f62b2a4dc8f1f01eStephan Bosch 1 if we can continue. */
a8433392e8a5ddfe8a125716f62b2a4dc8f1f01eStephan Boschint imap_search_args_build(struct client_command_context *cmd,
a8433392e8a5ddfe8a125716f62b2a4dc8f1f01eStephan Bosch const struct imap_arg *args, const char *charset,
a8433392e8a5ddfe8a125716f62b2a4dc8f1f01eStephan Bosch/* Returns -1 if set is invalid, 0 if we have to wait for unambiguity,
a8433392e8a5ddfe8a125716f62b2a4dc8f1f01eStephan Bosch 1 if we can continue. */
a8433392e8a5ddfe8a125716f62b2a4dc8f1f01eStephan Boschint imap_search_get_seqset(struct client_command_context *cmd,