bcb4e51a409d94ae670de96afb8483a4f7855294Stephan Bosch/* Copyright (c) 2011-2018 Dovecot authors, see the included COPYING file */
772120713c176bde8c932b3fb4c413d223741fcdTimo Sirainenstatic struct fts_parser *
43f4e550efe7afa72aab3a7ded7ad7ce606526fbSergey Kitovfts_parser_html_try_init(struct fts_parser_context *parser_context)
43f4e550efe7afa72aab3a7ded7ad7ce606526fbSergey Kitov if (!mail_html2text_content_type_match(parser_context->content_type))
772120713c176bde8c932b3fb4c413d223741fcdTimo Sirainen parser->output = buffer_create_dynamic(default_pool, 4096);
772120713c176bde8c932b3fb4c413d223741fcdTimo Sirainenstatic void fts_parser_html_more(struct fts_parser *_parser,
772120713c176bde8c932b3fb4c413d223741fcdTimo Sirainen struct html_fts_parser *parser = (struct html_fts_parser *)_parser;
9456cdbebac7bdf7ee4fb2a2e41a9f439b7744ceTimo Sirainen /* finished */
ed9f9fe03e60d37be0a58e3ee281d1b6b7d2693fTimo Sirainen mail_html2text_more(parser->html2text, block->data, block->size,
07bfc948f87ca139b18af57fb2615a7fd4f668b3Timo Sirainenstatic int fts_parser_html_deinit(struct fts_parser *_parser,
772120713c176bde8c932b3fb4c413d223741fcdTimo Sirainen struct html_fts_parser *parser = (struct html_fts_parser *)_parser;