@xuda.io/account_module 1.2.925 → 1.2.926
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.mjs +2 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1011,10 +1011,11 @@ export const read_emails = async function (req, job_id, headers) {
|
|
|
1011
1011
|
|
|
1012
1012
|
let email_address = is_sent ? recipient[message.envelope.to[0].address] : senders[message.envelope.sender[0].address];
|
|
1013
1013
|
let email_name = is_sent ? message.envelope.to[0].name : message.envelope.sender[0].name;
|
|
1014
|
-
|
|
1014
|
+
const subject = message.envelope.subject;
|
|
1015
1015
|
if (is_sent) {
|
|
1016
1016
|
recipient[message.envelope.to[0].address] = message.envelope.to[0].name;
|
|
1017
1017
|
} else {
|
|
1018
|
+
const is_spam = await ai_module.is_spam_email(uid, email_address);
|
|
1018
1019
|
senders[message.envelope.sender[0].address] = message.envelope.sender[0].name;
|
|
1019
1020
|
}
|
|
1020
1021
|
}
|