@xuda.io/account_module 1.2.1778 → 1.2.1779

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.
Files changed (2) hide show
  1. package/index.mjs +1 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2121,7 +2121,7 @@ export const add_contact = async function (req, job_id, headers) {
2121
2121
  // }
2122
2122
 
2123
2123
  if (_.isEmpty(cached_contact)) {
2124
- if (metadata.subject && !metadata.is_sent) {
2124
+ if (metadata.subject && !metadata.is_sent && !metadata.is_answered && !metadata.not_junk) {
2125
2125
  // email_type_info = await ai_module.detect_email_type(uid, name, email, account_profile_info, '', metadata?.subject);
2126
2126
  // is_spam = email_type_info.email_type === 'spam' || email_type_info.email_type === 'promotional';
2127
2127
  is_spam = await ai_module.is_spam_email(uid, email, metadata.subject, account_profile_info);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1778",
3
+ "version": "1.2.1779",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {