HEX
Server: Apache/2
System: Linux nexus-01 4.18.0-553.120.1.el8_10.x86_64 #1 SMP Mon Apr 20 18:04:27 EDT 2026 x86_64
User: aglcoke (1118)
PHP: 8.2.31
Disabled: mail,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
Upload Files
File: //usr/include/dovecot/fts-indexer.h
#ifndef FTS_BUILD_H
#define FTS_BUILD_H

struct fts_backend;
struct fts_indexer_context;

/* Initialize indexing the given mailbox via indexer service. Returns 1 if
   indexing started, 0 if there was no need to index or -1 if error. */
int fts_indexer_init(struct fts_backend *backend, struct mailbox *box,
		     struct fts_indexer_context **ctx_r);
/* Returns 0 if ok, -1 if error. */
int fts_indexer_deinit(struct fts_indexer_context **ctx);

/* Build more. Returns 1 if finished, 0 if this function needs to be called
   again, -1 if error. */
int fts_indexer_more(struct fts_indexer_context *ctx);

/* Returns fd, which you can either read from or close. */
int fts_indexer_cmd(struct mail_user *user, const char *cmd,
		    struct event *event, const char **path_r);

#endif