From dde5c9fef6943de7e60aa4a9ff5117ec0313cc0c Mon Sep 17 00:00:00 2001 From: mic Date: Mon, 10 Feb 2025 00:02:07 +0100 Subject: [PATCH] start working on the spam filter --- mzta-background.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/mzta-background.js b/mzta-background.js index ea022817..f514e305 100644 --- a/mzta-background.js +++ b/mzta-background.js @@ -689,9 +689,8 @@ const newEmailListener = (folder, messagesList) => { let curr_fullMessage = null; // if some auto feature is active prepare some data - // this will be used when will be implemented the spam filter (https://github.com/micz/ThunderAI/issues/231) - // or the auto translator https://github.com/micz/ThunderAI/issues/247 - if(prefs_init.add_tags_auto){ + // this will be used when will be implemented also the auto translator https://github.com/micz/ThunderAI/issues/247 + if(prefs_init.add_tags_auto || prefs_init.spamfilter){ curr_fullMessage = await browser.messages.getFull(message.id); } @@ -719,6 +718,13 @@ const newEmailListener = (folder, messagesList) => { let _data = {messageId: message.id, tags: tags_current_email.split(/,\s*/)}; _assign_tags(_data, !prefs_aat.add_tags_auto_force_existing); } + + + // Spam filter + if(prefs_init.spamfilter){ + let specialFullPrompt_spamfilter = ''; + + } } }