@xuda.io/account_module 1.2.922 → 1.2.924
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 +4 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1008,6 +1008,9 @@ export const read_emails = async function (req, job_id, headers) {
|
|
|
1008
1008
|
mailbox_path,
|
|
1009
1009
|
mailbox_name,
|
|
1010
1010
|
});
|
|
1011
|
+
|
|
1012
|
+
let email_address = is_sent ? recipient[message.envelope.to[0].address] : senders[message.envelope.sender[0].address];
|
|
1013
|
+
|
|
1011
1014
|
if (is_sent) {
|
|
1012
1015
|
recipient[message.envelope.to[0].address] = message.envelope.to[0].name;
|
|
1013
1016
|
} else {
|
|
@@ -1037,7 +1040,7 @@ export const read_emails = async function (req, job_id, headers) {
|
|
|
1037
1040
|
// uid,
|
|
1038
1041
|
// });
|
|
1039
1042
|
// }
|
|
1040
|
-
await add_contact({ uid, name, email }, job_id, headers);
|
|
1043
|
+
await add_contact({ uid, name, email, metadata: { subject } }, job_id, headers);
|
|
1041
1044
|
}
|
|
1042
1045
|
}
|
|
1043
1046
|
};
|