@xuda.io/account_module 1.2.924 → 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 +3 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1010,10 +1010,12 @@ export const read_emails = async function (req, job_id, headers) {
|
|
|
1010
1010
|
});
|
|
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
|
+
const subject = message.envelope.subject;
|
|
1014
1015
|
if (is_sent) {
|
|
1015
1016
|
recipient[message.envelope.to[0].address] = message.envelope.to[0].name;
|
|
1016
1017
|
} else {
|
|
1018
|
+
const is_spam = await ai_module.is_spam_email(uid, email_address);
|
|
1017
1019
|
senders[message.envelope.sender[0].address] = message.envelope.sender[0].name;
|
|
1018
1020
|
}
|
|
1019
1021
|
}
|