imapc-search.h revision a9ba935a40c04a86ff20973c52af9ff43831b871
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny#ifndef IMAPC_SEARCH_H
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny#define IMAPC_SEARCH_H
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zelenystruct mail_search_context *
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zelenyimapc_search_init(struct mailbox_transaction_context *t,
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny struct mail_search_args *args,
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny const enum mail_sort_type *sort_program,
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny enum mail_fetch_field wanted_fields,
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny struct mailbox_header_lookup_ctx *wanted_headers);
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zelenybool imapc_search_next_update_seq(struct mail_search_context *ctx);
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zelenyint imapc_search_deinit(struct mail_search_context *ctx);
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zelenyvoid imapc_search_reply_search(const struct imap_arg *args,
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny struct imapc_mailbox *mbox);
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zelenyvoid imapc_search_reply_esearch(const struct imap_arg *args,
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny struct imapc_mailbox *mbox);
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny#endif
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny