Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: postalsys/imapflow
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.0.151
Choose a base ref
...
head repository: postalsys/imapflow
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.0.152
Choose a head ref
  • 4 commits
  • 4 files changed
  • 2 contributors

Commits on Feb 12, 2024

  1. Verified

    This commit was signed with the committer’s verified signature.
    andris9 Andris Reinman
    Copy the full SHA
    aeabbde View commit details
  2. Verified

    This commit was signed with the committer’s verified signature.
    andris9 Andris Reinman
    Copy the full SHA
    b8894f3 View commit details
  3. updated deps

    andris9 committed Feb 12, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    andris9 Andris Reinman
    Copy the full SHA
    e6389ad View commit details
  4. chore(master): release 1.0.152 [skip-ci] (#170)

    Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
    github-actions[bot] authored Feb 12, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    0fa5f63 View commit details
Showing with 26 additions and 10 deletions.
  1. +7 −0 CHANGELOG.md
  2. +13 −4 lib/tools.js
  3. +5 −5 package-lock.json
  4. +1 −1 package.json
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# 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)


17 changes: 13 additions & 4 deletions lib/tools.js
Original file line number Diff line number Diff line change
@@ -423,10 +423,19 @@ module.exports = {
};

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);
},
envelope = {};

10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "imapflow",
"version": "1.0.151",
"version": "1.0.152",
"description": "IMAP Client for Node",
"main": "./lib/imap-flow.js",
"scripts": {