/usr/include/dovecot/fts-parser.h is in dovecot-dev 1:2.2.22-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 32 33 34 35 36 37 38 | #ifndef FTS_PARSER_H
#define FTS_PARSER_H
struct message_block;
struct mail_user;
struct fts_parser_vfuncs {
struct fts_parser *(*try_init)(struct mail_user *user,
const char *content_type,
const char *content_disposition);
void (*more)(struct fts_parser *parser, struct message_block *block);
int (*deinit)(struct fts_parser *parser);
void (*unload)(void);
};
struct fts_parser {
struct fts_parser_vfuncs v;
buffer_t *utf8_output;
};
extern struct fts_parser_vfuncs fts_parser_html;
extern struct fts_parser_vfuncs fts_parser_script;
extern struct fts_parser_vfuncs fts_parser_tika;
bool fts_parser_init(struct mail_user *user,
const char *content_type, const char *content_disposition,
struct fts_parser **parser_r);
struct fts_parser *fts_parser_text_init(void);
/* The parser is initially called with message body blocks. Once message is
finished, it's still called with incoming size=0 while the parser increases
it to non-zero. */
void fts_parser_more(struct fts_parser *parser, struct message_block *block);
int fts_parser_deinit(struct fts_parser **parser);
void fts_parsers_unload(void);
#endif
|