imap-search.h revision 115cf0320f679e4e63db25e7f44f47977b8338de
#ifndef IMAP_SEARCH_H
#define IMAP_SEARCH_H
enum search_return_options {
SEARCH_RETURN_ESEARCH = 0x0001,
SEARCH_RETURN_MIN = 0x0002,
SEARCH_RETURN_MAX = 0x0004,
SEARCH_RETURN_ALL = 0x0008,
SEARCH_RETURN_COUNT = 0x0010,
SEARCH_RETURN_MODSEQ = 0x0020,
SEARCH_RETURN_SAVE = 0x0040,
SEARCH_RETURN_UPDATE = 0x0080,
SEARCH_RETURN_PARTIAL = 0x0100,
SEARCH_RETURN_RELEVANCY = 0x0200
#define SEARCH_RETURN_NORESULTS \
};
struct imap_search_context {
struct client_command_context *cmd;
struct mailbox_transaction_context *trans;
struct mail_search_context *search_ctx;
struct imap_fetch_context *fetch_ctx;
struct mail_search_args *sargs;
unsigned int result_count;
ARRAY(float) relevancy_scores;
float min_relevancy, max_relevancy;
unsigned int have_seqsets:1;
unsigned int have_modseqs:1;
unsigned int sorting:1;
};
struct mail_search_args *sargs,
#endif