Coverage Report

Created: 2026-10-28 07:10

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/dovecot/src/lib-mail/mail-html2text.h
Line
Count
Source
1
#ifndef MAIL_HTML2TEXT_H
2
#define MAIL_HTML2TEXT_H
3
4
enum mail_html2text_flags {
5
  MAIL_HTML2TEXT_FLAG_SKIP_QUOTED = 0x01
6
};
7
8
struct mail_html2text *
9
mail_html2text_init(enum mail_html2text_flags flags);
10
void mail_html2text_more(struct mail_html2text *ht,
11
       const unsigned char *data, size_t size,
12
       buffer_t *output);
13
void mail_html2text_deinit(struct mail_html2text **ht);
14
15
static inline bool
16
mail_html2text_content_type_match(const char *content_type)
17
0
{
18
0
  return strcasecmp(content_type, "text/html") == 0 ||
19
0
    strcasecmp(content_type, "application/xhtml+xml") == 0;
20
0
}
Unexecuted instantiation: message-snippet.c:mail_html2text_content_type_match
Unexecuted instantiation: mail-html2text.c:mail_html2text_content_type_match
21
22
#endif