Searched refs:content_type (Results 1 - 21 of 21) sorted by relevance

/dovecot/src/lib-mail/
H A Dmail-html2text.h16 mail_html2text_content_type_match(const char *content_type) argument
18 return strcasecmp(content_type, "text/html") == 0 ||
19 strcasecmp(content_type, "application/xhtml+xml") == 0;
H A Distream-attachment-extractor.h6 const char *content_type, *content_disposition; member in struct:istream_attachment_header
H A Dmessage-part-data.h24 const char *content_type, *content_subtype; member in struct:message_part_data
H A Dmessage-part-data.c297 data->content_type = p_strdup(pool, str_c(str));
419 if (strcasecmp(name, "Type") == 0 && data->content_type == NULL)
509 const char *content_type; local
511 if (data->content_type == NULL)
514 content_type = t_strdup_printf("%s/", data->content_type);
516 content_type = t_strdup_printf("%s/%s", data->content_type,
520 if (wildcard_match_icase(content_type, (*ptr)+(exclude?1:0)))
H A Dmessage-search.c54 string_t *content_type; local
59 content_type = t_str_new(64);
60 (void)rfc822_parse_content_type(&parser, content_type);
62 strncasecmp(str_c(content_type), "text/", 5) == 0 ||
63 strncasecmp(str_c(content_type), "message/", 8) == 0;
H A Distream-attachment-extractor.c33 char *content_type, *content_disposition; member in struct:attachment_istream_part
77 string_t *content_type; local
79 if (astream->part.content_type != NULL)
86 content_type = t_str_new(64);
87 (void)rfc822_parse_content_type(&parser, content_type);
88 astream->part.content_type = i_strdup(str_c(content_type));
143 ahdr.content_type = astream->part.content_type;
542 i_free_and_null(part->content_type);
[all...]
H A Dmessage-decoder.c35 char *content_type, *content_charset; member in struct:message_decoder_context
75 i_free(ctx->content_type);
132 if (ctx->content_type != NULL)
139 ctx->content_type = i_strdup(str_c(str));
390 return ctx->content_type;
399 i_free_and_null(ctx->content_type);
H A Dmessage-parser.c477 string_t *content_type; local
487 content_type = t_str_new(64);
488 ret = rfc822_parse_content_type(&parser, content_type);
490 if (strcasecmp(str_c(content_type), "message/rfc822") == 0)
492 else if (strncasecmp(str_c(content_type), "text", 4) == 0 &&
493 (str_len(content_type) == 4 ||
494 str_data(content_type)[4] == '/'))
496 else if (strncasecmp(str_c(content_type), "multipart/", 10) == 0) {
499 if (strcasecmp(str_c(content_type)+10, "digest") == 0)
/dovecot/src/plugins/fts/
H A Ddecode2text.sh21 content_type=$1
42 if [ "$content_type" = "" ]; then
47 fmt=`echo "$formats" | grep -w "^$content_type" | cut -d ' ' -f 2`
49 echo "Content-Type: $content_type not supported" >&2
H A Dfts-parser-script.c21 const char *content_type; member in struct:content
100 content->content_type = args[0];
118 const char **content_type,
135 if (strcmp(*content_type, "application/octet-stream") == 0) {
146 *content_type = content->content_type;
152 if (strcmp(content->content_type, *content_type) == 0)
205 if (!script_support_content(parser_context->user, &parser_context->content_type, filename))
211 cmd = t_strdup_printf(SCRIPT_HANDSHAKE"%s\n\n", parser_context->content_type);
117 script_support_content(struct mail_user *user, const char **content_type, const char *filename) argument
[all...]
H A Dfts-parser.h11 const char *content_type; member in struct:fts_parser_context
H A Dfts-build-mail.c32 char *content_type, *content_disposition; member in struct:fts_mail_build_context
46 string_t *content_type; local
48 if (ctx->content_type != NULL)
55 content_type = t_str_new(64);
56 (void)rfc822_parse_content_type(&parser, content_type);
57 ctx->content_type = str_lcase(i_strdup(str_c(content_type)));
230 parser_context.content_type = ctx->content_type != NULL ?
231 ctx->content_type
[all...]
H A Dxml2text.c15 struct fts_parser_context parser_context = {.content_type = "text/html"};
H A Dfts-parser.c28 i_assert(parser_context->content_type != NULL);
30 if (str_array_find(plaintext_content_types, parser_context->content_type)) {
H A Dfts-parser-html.c20 if (!mail_html2text_content_type_match(parser_context->content_type))
H A Dfts-parser-tika.c159 if (parser_context->content_type != NULL)
161 parser_context->content_type);
/dovecot/src/lib-imap/
H A Dimap-bodystructure.c161 if (data->content_type == NULL) {
165 text = (strcasecmp(data->content_type, "text") == 0);
166 imap_append_string(str, data->content_type);
363 const char *value, *content_type, *subtype, *error; local
383 .content_type = "text",
463 data->content_type = "multipart";
482 if (!imap_arg_get_astring(&args[0], &content_type) ||
487 data->content_type = p_strdup(pool, content_type);
491 text = strcasecmp(content_type, "tex
762 const char *value, *content_type, *subtype; local
[all...]
/dovecot/src/lib-storage/index/
H A Dindex-attachment.c50 apart.content_type = hdr->content_type;
57 return hdr->content_type != NULL &&
58 strncasecmp(hdr->content_type, "text/", 5) != 0;
H A Dindex-search-mime.c398 return (data->content_type != NULL &&
399 strcasecmp(data->content_type,
H A Dindex-mail.c968 if (body_data->content_type == NULL ||
969 strcasecmp(body_data->content_type, "text") == 0) {
974 if (strcasecmp(body_data->content_type, "multipart") != 0) {
989 if (sub_body_data->content_type == NULL ||
990 strcasecmp(sub_body_data->content_type, "text") == 0) {
/dovecot/src/lib-storage/
H A Dmail-storage-private.h189 const char *content_type, *content_disposition; member in struct:mail_attachment_part

Completed in 37 milliseconds