/dovecot/src/lib-mail/ |
H A D | mail-html2text.h | 16 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 D | istream-attachment-extractor.h | 6 const char *content_type, *content_disposition; member in struct:istream_attachment_header
|
H A D | message-part-data.h | 24 const char *content_type, *content_subtype; member in struct:message_part_data
|
H A D | message-part-data.c | 297 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 D | message-search.c | 54 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 D | istream-attachment-extractor.c | 33 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 D | message-decoder.c | 35 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 D | message-parser.c | 477 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 D | decode2text.sh | 21 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 D | fts-parser-script.c | 21 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 D | fts-parser.h | 11 const char *content_type; member in struct:fts_parser_context
|
H A D | fts-build-mail.c | 32 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 D | xml2text.c | 15 struct fts_parser_context parser_context = {.content_type = "text/html"};
|
H A D | fts-parser.c | 28 i_assert(parser_context->content_type != NULL); 30 if (str_array_find(plaintext_content_types, parser_context->content_type)) {
|
H A D | fts-parser-html.c | 20 if (!mail_html2text_content_type_match(parser_context->content_type))
|
H A D | fts-parser-tika.c | 159 if (parser_context->content_type != NULL) 161 parser_context->content_type);
|
/dovecot/src/lib-imap/ |
H A D | imap-bodystructure.c | 161 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 D | index-attachment.c | 50 apart.content_type = hdr->content_type; 57 return hdr->content_type != NULL && 58 strncasecmp(hdr->content_type, "text/", 5) != 0;
|
H A D | index-search-mime.c | 398 return (data->content_type != NULL && 399 strcasecmp(data->content_type,
|
H A D | index-mail.c | 968 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 D | mail-storage-private.h | 189 const char *content_type, *content_disposition; member in struct:mail_attachment_part
|