7
struct fts_parser_vfuncs {
8
struct fts_parser *(*try_init)(struct mail_user *user,
9
const char *content_type,
10
const char *content_disposition);
11
void (*more)(struct fts_parser *parser, struct message_block *block);
12
void (*deinit)(struct fts_parser *parser);
16
struct fts_parser_vfuncs v;
17
buffer_t *utf8_output;
20
extern struct fts_parser_vfuncs fts_parser_html;
21
extern struct fts_parser_vfuncs fts_parser_script;
23
bool fts_parser_init(struct mail_user *user,
24
const char *content_type, const char *content_disposition,
25
struct fts_parser **parser_r);
26
struct fts_parser *fts_parser_text_init(void);
28
/* The parser is initially called with message body blocks. Once message is
29
finished, it's still called with incoming size=0 while the parser increases
31
void fts_parser_more(struct fts_parser *parser, struct message_block *block);
32
void fts_parser_deinit(struct fts_parser **parser);