start working on the spam filter
This commit is contained in:
parent
caeb03cc4c
commit
dde5c9fef6
1 changed files with 9 additions and 3 deletions
|
|
@ -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 = '';
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue