@xuda.io/account_module 1.2.1841 → 1.2.1843
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 +1 -6
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2157,15 +2157,10 @@ export const add_contact = async function (req, job_id, headers) {
|
|
|
2157
2157
|
|
|
2158
2158
|
// contact without use account
|
|
2159
2159
|
cached_contact = await get_xuda_cache(uid, 'contact', email, 'metadata');
|
|
2160
|
-
// if (_.isEmpty(cached_contact) && account_type === 'business') {
|
|
2161
|
-
// const domain = email.includes('@') ? email.split('@')[1] : '';
|
|
2162
|
-
// cached_contact = await get_xuda_cache(uid, 'contact', domain, 'metadata');
|
|
2163
|
-
// }
|
|
2164
2160
|
|
|
2165
2161
|
if (_.isEmpty(cached_contact)) {
|
|
2166
2162
|
if (!is_spam && metadata.subject && !metadata.is_sent && !metadata.is_answered && !metadata.not_junk) {
|
|
2167
|
-
//
|
|
2168
|
-
// is_spam = email_type_info.email_type === 'spam' || email_type_info.email_type === 'promotional';
|
|
2163
|
+
// deep search for spam
|
|
2169
2164
|
is_spam = await ai_module.is_spam_email(uid, email, metadata.subject, account_profile_info);
|
|
2170
2165
|
}
|
|
2171
2166
|
if (!is_spam) {
|