xhtml_tok.begin = "xhtml";
xhtml_tok.len = 5;
- if (rspamd_ftok_cmp (&mime_part->ct->subtype, &html_tok) == 0 ||
- rspamd_ftok_cmp (&mime_part->ct->subtype, &xhtml_tok) == 0) {
+ if (rspamd_ftok_casecmp (&mime_part->ct->subtype, &html_tok) == 0 ||
+ rspamd_ftok_casecmp (&mime_part->ct->subtype, &xhtml_tok) == 0) {
found_html = TRUE;
}
else {
html_tok.begin = "plain";
html_tok.len = 5;
- if (rspamd_ftok_cmp (&mime_part->ct->subtype, &html_tok) == 0) {
+ if (rspamd_ftok_casecmp (&mime_part->ct->subtype, &html_tok) == 0) {
found_txt = TRUE;
}
else {