From 3851c10bcc834e6b75aeb95a7ff7979c8d267bb2 Mon Sep 17 00:00:00 2001 From: mic Date: Wed, 20 Aug 2025 21:16:35 +0200 Subject: [PATCH] remove commented-out code for HTML to plain text conversion in processEmails function --- mzta-background.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/mzta-background.js b/mzta-background.js index 4f507230..35cff2b1 100644 --- a/mzta-background.js +++ b/mzta-background.js @@ -976,11 +976,6 @@ async function processEmails(messages, addTagsAuto, spamFilter) { if (addTagsAuto || spamFilter) { curr_fullMessage = await browser.messages.getFull(message.id); msg_text = getMailBody(curr_fullMessage); - // body_text = msg_text.text.replace(/\s+/g, ' ').trim(); - // if( body_text.length == 0 ){ - // taLog.log("No text found in the message body, trying to convert HTML to plain text..."); - // body_text = htmlBodyToPlainText(msg_text.html); - // } taLog.log("Startin from the HTML body if present and converting to plain text..."); body_text = htmlBodyToPlainText(msg_text.html); if( body_text.length == 0 ){