Searched refs:parser_context (Results 1 - 7 of 7) sorted by relevance

/dovecot/src/plugins/fts/
H A Dfts-parser.h16 struct fts_parser *(*try_init)(struct fts_parser_context *parser_context);
33 bool fts_parser_init(struct fts_parser_context *parser_context,
H A Dxml2text.c15 struct fts_parser_context parser_context = {.content_type = "text/html"}; local
19 parser = fts_parser_html.try_init(&parser_context);
H A Dfts-parser.c23 bool fts_parser_init(struct fts_parser_context *parser_context, argument
27 i_assert(parser_context->user != NULL);
28 i_assert(parser_context->content_type != NULL);
30 if (str_array_find(plaintext_content_types, parser_context->content_type)) {
37 *parser_r = parsers[i]->try_init(parser_context);
H A Dfts-parser-html.c16 fts_parser_html_try_init(struct fts_parser_context *parser_context) argument
20 if (!mail_html2text_content_type_match(parser_context->content_type))
H A Dfts-parser-tika.c138 fts_parser_tika_try_init(struct fts_parser_context *parser_context) argument
144 if (tika_get_http_client_url(parser_context->user, &http_url) < 0)
151 parser->user = parser_context->user;
159 if (parser_context->content_type != NULL)
161 parser_context->content_type);
162 if (parser_context->content_disposition != NULL)
164 parser_context->content_disposition);
H A Dfts-parser-script.c198 fts_parser_script_try_init(struct fts_parser_context *parser_context) argument
204 parse_content_disposition(parser_context->content_disposition, &filename);
205 if (!script_support_content(parser_context->user, &parser_context->content_type, filename))
208 fd = script_connect(parser_context->user, &path);
211 cmd = t_strdup_printf(SCRIPT_HANDSHAKE"%s\n\n", parser_context->content_type);
H A Dfts-build-mail.c219 struct fts_parser_context parser_context; local
229 i_zero(&parser_context);
230 parser_context.content_type = ctx->content_type != NULL ?
232 if (strncmp(parser_context.content_type, "multipart/", 10) == 0) {
237 parser_context.user = mail_storage_get_user(storage);
238 parser_context.content_disposition = ctx->content_disposition;
241 if (fts_parser_init(&parser_context, &ctx->body_parser)) {
245 } else if (strncmp(parser_context.content_type, "text/", 5) == 0 ||
246 strncmp(parser_context.content_type, "message/", 8) == 0) {
258 key.body_content_type = parser_context
[all...]

Completed in 10 milliseconds