/usr/include/dovecot/imap-search-args.h is in dovecot-dev 1:2.2.9-1ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | #ifndef IMAP_SEARCH_ARGS_H
#define IMAP_SEARCH_ARGS_H
#include "mail-search.h"
struct imap_arg;
struct mailbox;
struct client_command_context;
/* Builds search arguments based on IMAP arguments. Returns -1 if search
arguments are invalid, 0 if we have to wait for unambiguity,
1 if we can continue. */
int imap_search_args_build(struct client_command_context *cmd,
const struct imap_arg *args, const char *charset,
struct mail_search_args **search_args_r);
/* Returns -1 if set is invalid, 0 if we have to wait for unambiguity,
1 if we were successful. search_args_r is set to contain either a seqset
or uidset. */
int imap_search_get_anyset(struct client_command_context *cmd,
const char *set, bool uid,
struct mail_search_args **search_args_r);
/* Like imap_search_get_anyset(), but always returns a seqset. */
int imap_search_get_seqset(struct client_command_context *cmd,
const char *set, bool uid,
struct mail_search_args **search_args_r);
void imap_search_add_changed_since(struct mail_search_args *search_args,
uint64_t modseq);
#endif
|