| Server IP : 176.32.38.42 / Your IP : 216.73.216.244 Web Server : LiteSpeed System : Linux ha006.mymail.zone 4.18.0-553.51.1.lve.1.el8.x86_64 #1 SMP Wed May 14 14:34:57 UTC 2025 x86_64 User : s1225329 ( 1835) PHP Version : 7.4.33 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/2206090/root/usr/include/dovecot/ |
Upload File : |
#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); /* Convert search args returned by imap_search_get_anyset() to SEARCH_UIDSET. */ void imap_search_anyset_to_uidset(struct client_command_context *cmd, struct mail_search_args *args); void imap_search_add_changed_since(struct mail_search_args *search_args, uint64_t modseq); /* Iterate search_args in batches of messages. The search_args itself is modified each time imap_search_seqset_iter_next() is called. Note that search_args is expected to come from imap_search_get_anyset(), so it should have a single parameter containing SEARCH_ALL, SEARCH_SEQSET or SEARCH_UIDSET. */ struct imap_search_seqset_iter * imap_search_seqset_iter_init(struct mail_search_args *search_args, uint32_t messages_count, unsigned int batch_size); /* Iterate the next batch. Returns TRUE if the batch was updated, FALSE if all the batches have been iterated. */ bool imap_search_seqset_iter_next(struct imap_search_seqset_iter *iter); void imap_search_seqset_iter_deinit(struct imap_search_seqset_iter **iter); #endif