message: use html-to-text scraper for html parts

We were dumping the HTML-parts as-is in the Xapian indexer; however,
it's better to remove the html decoration first, and just pass the text.

We use the new built-in html->text scraper for that.
This commit is contained in:
Dirk-Jan C. Binnema
2023-07-23 14:46:11 +03:00
parent 56b8fad89e
commit b795242d5a
7 changed files with 31 additions and 69 deletions

View File

@ -153,22 +153,10 @@ static void
test_mu_find_02(void)
{
/* when matching html as if it were text,
* 'bull' is also matched in arto.eml, •
*/
// search("bull", 1);
// search("bull m:foo", 0);
// search("bull m:/foo", 1);
// search("bull m:/Foo", 1);
// search("bull flag:attach", 1);
// search("bull flag:a", 1);
search("bull", 2);
search("bull m:foo", 0);
search("bull m:/foo", 2);
search("bull m:/Foo", 2);
search("bull flag:attach", 1);
search("bull flag:a", 1);
* 'bull' is also matched in arto.eml, • however,
* we don't do that anymore! */
search("bull", 1);
search("g:x", 0);
search("flag:encrypted", 0);