Comparing version 1.0.151 to 1.0.152
# Changelog | ||
## [1.0.152](https://github.com/postalsys/imapflow/compare/v1.0.151...v1.0.152) (2024-02-12) | ||
### Bug Fixes | ||
* **address:** do not use '@' instead of empyt address if a field does not contain a value ([aeabbde](https://github.com/postalsys/imapflow/commit/aeabbded3bf3c6ba7266f79d4bc001980644da0d)) | ||
## [1.0.151](https://github.com/postalsys/imapflow/compare/v1.0.150...v1.0.151) (2024-02-12) | ||
@@ -4,0 +11,0 @@ |
@@ -426,6 +426,15 @@ /* eslint no-control-regex:0 */ | ||
let processAddresses = function (list) { | ||
return [].concat(list || []).map(addr => ({ | ||
name: module.exports.processName(libmime.decodeWords(getStrValue(addr[0]))), | ||
address: (getStrValue(addr[2]) || '') + '@' + (getStrValue(addr[3]) || '') | ||
})); | ||
return [] | ||
.concat(list || []) | ||
.map(addr => { | ||
let address = (getStrValue(addr[2]) || '') + '@' + (getStrValue(addr[3]) || ''); | ||
if (address === '@') { | ||
address = ''; | ||
} | ||
return { | ||
name: module.exports.processName(libmime.decodeWords(getStrValue(addr[0]))), | ||
address | ||
}; | ||
}) | ||
.filter(addr => addr.name || addr.address); | ||
}, | ||
@@ -432,0 +441,0 @@ envelope = {}; |
{ | ||
"name": "imapflow", | ||
"version": "1.0.151", | ||
"version": "1.0.152", | ||
"description": "IMAP Client for Node", | ||
@@ -5,0 +5,0 @@ "main": "./lib/imap-flow.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
574220
12583