diff --git a/CHANGELOG.md b/CHANGELOG.md index 9875c556a..dba91a43a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,15 @@ Notable changes to Mailpit will be documented in this file. +## [v1.18.2] + +### Chore +- Update node dependencies + +### Fix +- Replace invalid Windows username characters in sendmail ([#294](https://github.com/axllent/mailpit/issues/294)) + + ## [v1.18.1] ### Chore diff --git a/package-lock.json b/package-lock.json index 952bf96f7..0a76ecdf4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1315,9 +1315,9 @@ } }, "node_modules/core-js-pure": { - "version": "3.37.0", - "resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.37.0.tgz", - "integrity": "sha512-d3BrpyFr5eD4KcbRvQ3FTUx/KWmaDesr7+a3+1+P46IUnNoEt+oiLijPINZMEon7w9oGkIINWxrBAU9DEciwFQ==", + "version": "3.37.1", + "resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.37.1.tgz", + "integrity": "sha512-J/r5JTHSmzTxbiYYrzXg9w1VpqrYt+gexenBE9pugeyhwPZTAEJddyiReJWsLO6uNQ8xJZFbod6XC7KKwatCiA==", "hasInstallScript": true, "funding": { "type": "opencollective", @@ -1721,9 +1721,9 @@ ] }, "node_modules/immutable": { - "version": "4.3.5", - "resolved": "https://registry.npmjs.org/immutable/-/immutable-4.3.5.tgz", - "integrity": "sha512-8eabxkth9gZatlwl5TBuJnCsoTADlL6ftEr7A4qgdaTsPyreilDSnUk57SO+jfKcNtxPa22U5KK6DSeAYhpBJw==", + "version": "4.3.6", + "resolved": "https://registry.npmjs.org/immutable/-/immutable-4.3.6.tgz", + "integrity": "sha512-Ju0+lEMyzMVZarkTn/gqRpdqd5dOPaz1mCZ0SH3JV6iFw81PldE/PEB1hWVEA288HPt4WXW8O7AWxB10M+03QQ==", "dev": true }, "node_modules/inherits": { @@ -2063,9 +2063,9 @@ "dev": true }, "node_modules/picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz", + "integrity": "sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==" }, "node_modules/picomatch": { "version": "2.3.1", @@ -2320,9 +2320,9 @@ "optional": true }, "node_modules/sass": { - "version": "1.77.0", - "resolved": "https://registry.npmjs.org/sass/-/sass-1.77.0.tgz", - "integrity": "sha512-eGj4HNfXqBWtSnvItNkn7B6icqH14i3CiCGbzMKs3BAPTq62pp9NBYsBgyN4cA+qssqo9r26lW4JSvlaUUWbgw==", + "version": "1.77.1", + "resolved": "https://registry.npmjs.org/sass/-/sass-1.77.1.tgz", + "integrity": "sha512-OMEyfirt9XEfyvocduUIOlUSkWOXS/LAt6oblR/ISXCTukyavjex+zQNm51pPCOiFKY1QpWvEH1EeCkgyV3I6w==", "dev": true, "dependencies": { "chokidar": ">=3.0.0 <4.0.0", @@ -2337,9 +2337,9 @@ } }, "node_modules/sass-embedded": { - "version": "1.77.0", - "resolved": "https://registry.npmjs.org/sass-embedded/-/sass-embedded-1.77.0.tgz", - "integrity": "sha512-4GOuLIWQ3vm1XnmRlBz8Rj11rCBceqvkSvEy+ZZGjsR2Y9/+75Dh+zXCtPwOuJFHZsV7qbCqCCSxbpUA0TiQ3w==", + "version": "1.77.1", + "resolved": "https://registry.npmjs.org/sass-embedded/-/sass-embedded-1.77.1.tgz", + "integrity": "sha512-+NkNlkEZQ5j9D6O+C8eH/v7JpccNImKM7DIzax84SfwOgBtOm7sqTCUe7hEzB9Cj5vtGl4QZbh2R+jTy7j8tXw==", "dev": true, "peer": true, "dependencies": { @@ -2354,29 +2354,29 @@ "node": ">=16.0.0" }, "optionalDependencies": { - "sass-embedded-android-arm": "1.77.0", - "sass-embedded-android-arm64": "1.77.0", - "sass-embedded-android-ia32": "1.77.0", - "sass-embedded-android-x64": "1.77.0", - "sass-embedded-darwin-arm64": "1.77.0", - "sass-embedded-darwin-x64": "1.77.0", - "sass-embedded-linux-arm": "1.77.0", - "sass-embedded-linux-arm64": "1.77.0", - "sass-embedded-linux-ia32": "1.77.0", - "sass-embedded-linux-musl-arm": "1.77.0", - "sass-embedded-linux-musl-arm64": "1.77.0", - "sass-embedded-linux-musl-ia32": "1.77.0", - "sass-embedded-linux-musl-x64": "1.77.0", - "sass-embedded-linux-x64": "1.77.0", - "sass-embedded-win32-arm64": "1.77.0", - "sass-embedded-win32-ia32": "1.77.0", - "sass-embedded-win32-x64": "1.77.0" + "sass-embedded-android-arm": "1.77.1", + "sass-embedded-android-arm64": "1.77.1", + "sass-embedded-android-ia32": "1.77.1", + "sass-embedded-android-x64": "1.77.1", + "sass-embedded-darwin-arm64": "1.77.1", + "sass-embedded-darwin-x64": "1.77.1", + "sass-embedded-linux-arm": "1.77.1", + "sass-embedded-linux-arm64": "1.77.1", + "sass-embedded-linux-ia32": "1.77.1", + "sass-embedded-linux-musl-arm": "1.77.1", + "sass-embedded-linux-musl-arm64": "1.77.1", + "sass-embedded-linux-musl-ia32": "1.77.1", + "sass-embedded-linux-musl-x64": "1.77.1", + "sass-embedded-linux-x64": "1.77.1", + "sass-embedded-win32-arm64": "1.77.1", + "sass-embedded-win32-ia32": "1.77.1", + "sass-embedded-win32-x64": "1.77.1" } }, "node_modules/sass-embedded-android-arm": { - "version": "1.77.0", - "resolved": "https://registry.npmjs.org/sass-embedded-android-arm/-/sass-embedded-android-arm-1.77.0.tgz", - "integrity": "sha512-T/7CXMrRyvb+9FHwXNL53tAnj2z8KqQXpo3XkPXzgB+RFqXhSWsnkfehcefDGm81EsggyYXnkLo6f4xcapZvYw==", + "version": "1.77.1", + "resolved": "https://registry.npmjs.org/sass-embedded-android-arm/-/sass-embedded-android-arm-1.77.1.tgz", + "integrity": "sha512-YRTXVSJkgfhASUxl06y7G7bdmSMCkQwWnK+miT5OKw310RN1Cblvg8e5QIqeoPP38iAP/vKjNKXMizJNWypNlg==", "cpu": [ "arm" ], @@ -2394,9 +2394,9 @@ } }, "node_modules/sass-embedded-android-arm64": { - "version": "1.77.0", - "resolved": "https://registry.npmjs.org/sass-embedded-android-arm64/-/sass-embedded-android-arm64-1.77.0.tgz", - "integrity": "sha512-TrKS0AlFu1ZtXR26V8YMnycyE8CR5FPGd+cPkZZeMMXKI8FpbM9W7fz6b+kDJuBZoDmzuHJPoGWSAq+R5k3Hug==", + "version": "1.77.1", + "resolved": "https://registry.npmjs.org/sass-embedded-android-arm64/-/sass-embedded-android-arm64-1.77.1.tgz", + "integrity": "sha512-w8xKf2EOMpMsTW3g9NiDeVLozAAWZqZbeboP7aPchiNdCJKnFkFJzkjfre1xLMZjJ0JAohfRK/0hItX9btxlLg==", "cpu": [ "arm64" ], @@ -2414,9 +2414,9 @@ } }, "node_modules/sass-embedded-android-ia32": { - "version": "1.77.0", - "resolved": "https://registry.npmjs.org/sass-embedded-android-ia32/-/sass-embedded-android-ia32-1.77.0.tgz", - "integrity": "sha512-T12iRF3sZ/gRgsEBH6y+eSn12+3VokL6n1+VVlwJ9pYz8Q8iE9gALyvy71Cvm9j130LV4X+pxq53xQl5GA6VQg==", + "version": "1.77.1", + "resolved": "https://registry.npmjs.org/sass-embedded-android-ia32/-/sass-embedded-android-ia32-1.77.1.tgz", + "integrity": "sha512-0Y40OluwUbqmxLHRbuKwZcTOq1ZIhsCrzQCf9oOx7UyazwTII2Uusfh+2AOtMBSLepS7xQUelmKK+QUpQJTv/w==", "cpu": [ "ia32" ], @@ -2434,9 +2434,9 @@ } }, "node_modules/sass-embedded-android-x64": { - "version": "1.77.0", - "resolved": "https://registry.npmjs.org/sass-embedded-android-x64/-/sass-embedded-android-x64-1.77.0.tgz", - "integrity": "sha512-qmUoSBywRQkzrFMK6ouifFSCSSb+rK0ykQaD2abeeJ3C9nbEFMUP2M9u6Ny4y1GS9t83MU3LZxwTeEMh7y5/xg==", + "version": "1.77.1", + "resolved": "https://registry.npmjs.org/sass-embedded-android-x64/-/sass-embedded-android-x64-1.77.1.tgz", + "integrity": "sha512-OfUGWjr6XVmvTb7In9EdPgzHkbI7QOgqfyRUIXnskIy0+7Oo7MdF85Kbx4mnlRkT7iijVNnDJMC+tZNKTPtSoQ==", "cpu": [ "x64" ], @@ -2454,9 +2454,9 @@ } }, "node_modules/sass-embedded-darwin-arm64": { - "version": "1.77.0", - "resolved": "https://registry.npmjs.org/sass-embedded-darwin-arm64/-/sass-embedded-darwin-arm64-1.77.0.tgz", - "integrity": "sha512-ccLfsrzyS49Em99geabqxueKzEcpIrhUj3oek2+/Ccxllhhwj9LrZFaWlvpHLgzCt/qZldqA4sltqqpczJdHMw==", + "version": "1.77.1", + "resolved": "https://registry.npmjs.org/sass-embedded-darwin-arm64/-/sass-embedded-darwin-arm64-1.77.1.tgz", + "integrity": "sha512-uMOJrrJxdb0kP3ccpy5DwSEspQMY7mB+gjO1sqrxtjCQD+S/OSJRyYtbv+MHe5RFBsZl2d/K6eyuoczeLWb3FA==", "cpu": [ "arm64" ], @@ -2474,9 +2474,9 @@ } }, "node_modules/sass-embedded-darwin-x64": { - "version": "1.77.0", - "resolved": "https://registry.npmjs.org/sass-embedded-darwin-x64/-/sass-embedded-darwin-x64-1.77.0.tgz", - "integrity": "sha512-qRDMXlxibTSDyZKDzgHhTCiooCJxodXg1QyE1izcdnSCDX5wOwaK/AShkkmyBQqLM3MQLXTeTgkmV58vEGHeGg==", + "version": "1.77.1", + "resolved": "https://registry.npmjs.org/sass-embedded-darwin-x64/-/sass-embedded-darwin-x64-1.77.1.tgz", + "integrity": "sha512-aUqalKHioPuj8NLwRCTAyu6a9BfYdxWBrA79nvJpGRgg4NQid4qRsEHspC6kpuRcKzDCmd7oeZT5zLVYDryjlg==", "cpu": [ "x64" ], @@ -2494,9 +2494,9 @@ } }, "node_modules/sass-embedded-linux-arm": { - "version": "1.77.0", - "resolved": "https://registry.npmjs.org/sass-embedded-linux-arm/-/sass-embedded-linux-arm-1.77.0.tgz", - "integrity": "sha512-+Jyiy+ZVjo9dJZbAF8rC0tsmubHbQ6ydv0kWEaiwnEdj2BgpKx/5f2LDlCFgvZkGlPUdKWYNcW6bISUsJjyuJQ==", + "version": "1.77.1", + "resolved": "https://registry.npmjs.org/sass-embedded-linux-arm/-/sass-embedded-linux-arm-1.77.1.tgz", + "integrity": "sha512-vEhHzbb2TL4X7LuEcc7PysO9CSRQrKMYRCxjOIw+uix/IxMv7tyUZfnsqYwO0ayYNQmZF4cMjvUWfA2QpUFzTw==", "cpu": [ "arm" ], @@ -2514,9 +2514,9 @@ } }, "node_modules/sass-embedded-linux-arm64": { - "version": "1.77.0", - "resolved": "https://registry.npmjs.org/sass-embedded-linux-arm64/-/sass-embedded-linux-arm64-1.77.0.tgz", - "integrity": "sha512-rK1sH+CyMHkYnIkYWVgrHiRI3slpIcBNazQ2vXzRgz8Y0R3+PrOYA8N1QtOoW3ccZPql8/X3NrkopeJbFWCuRg==", + "version": "1.77.1", + "resolved": "https://registry.npmjs.org/sass-embedded-linux-arm64/-/sass-embedded-linux-arm64-1.77.1.tgz", + "integrity": "sha512-/d5TwtCPIRjO2v0wKoooPsm9aDvjnfGBIAtbFhnxvdjQ5rP4MNxGRSn2lneX78e3NCXg93M4Wbqy4V8iRVXuhg==", "cpu": [ "arm64" ], @@ -2534,9 +2534,9 @@ } }, "node_modules/sass-embedded-linux-ia32": { - "version": "1.77.0", - "resolved": "https://registry.npmjs.org/sass-embedded-linux-ia32/-/sass-embedded-linux-ia32-1.77.0.tgz", - "integrity": "sha512-SH/RpqFny/2MttLVLBNO2x+D6X7Y/CG3NS2q80RuOlrQvpqgQasw8SqMSx4a07ps1PlOIG5ngYf0agJ3USenJg==", + "version": "1.77.1", + "resolved": "https://registry.npmjs.org/sass-embedded-linux-ia32/-/sass-embedded-linux-ia32-1.77.1.tgz", + "integrity": "sha512-JSusAgF8r1bU9YiQLU2vbXbsfE+IyahiFm4pzXB3ID+TqBo8qLEdX57An2BOatVHUhRpKcshQJM+mGZEXgidYw==", "cpu": [ "ia32" ], @@ -2554,9 +2554,9 @@ } }, "node_modules/sass-embedded-linux-musl-arm": { - "version": "1.77.0", - "resolved": "https://registry.npmjs.org/sass-embedded-linux-musl-arm/-/sass-embedded-linux-musl-arm-1.77.0.tgz", - "integrity": "sha512-CguyYPc25n/+oIVqbSPX6FTwTPjwd71bt7oZTGZerw8ZocvRDJo6SwjRK2iA8RbHcg0YbFhEwQ9U9SLczykTmA==", + "version": "1.77.1", + "resolved": "https://registry.npmjs.org/sass-embedded-linux-musl-arm/-/sass-embedded-linux-musl-arm-1.77.1.tgz", + "integrity": "sha512-AgOBoogxk/tKhdwBAErw8BwB1iVuYLNkSV+H5J8rLg7BKcIuZkJVelLYzkbO8TpX4fCfxfp9cxwIwkA86+KwUA==", "cpu": [ "arm" ], @@ -2571,9 +2571,9 @@ } }, "node_modules/sass-embedded-linux-musl-arm64": { - "version": "1.77.0", - "resolved": "https://registry.npmjs.org/sass-embedded-linux-musl-arm64/-/sass-embedded-linux-musl-arm64-1.77.0.tgz", - "integrity": "sha512-2mvAKTqXRRrrnRvUFw/iLozoOW2sj2Q1rOaGFbvXUXYOHYzlVnDTGGVPty+gTN2f1YgUSRe433MtE103Wp9Ekw==", + "version": "1.77.1", + "resolved": "https://registry.npmjs.org/sass-embedded-linux-musl-arm64/-/sass-embedded-linux-musl-arm64-1.77.1.tgz", + "integrity": "sha512-FjgIf6hIWpIf7OSGDE1ZdfGke8w5c06Lter1lVGy/gxe5bnppYsge0HIZODtQvvHjc5KAv/TqK6IH6+9hrxOww==", "cpu": [ "arm64" ], @@ -2588,9 +2588,9 @@ } }, "node_modules/sass-embedded-linux-musl-ia32": { - "version": "1.77.0", - "resolved": "https://registry.npmjs.org/sass-embedded-linux-musl-ia32/-/sass-embedded-linux-musl-ia32-1.77.0.tgz", - "integrity": "sha512-uABIlsNvq7U3wFlpQy5rZ7AsEc7/aKHY4P396YLs52FF/T0NcTx4TjKZwECVHjC+X13ltnmYcAWP8lf8fk5vuQ==", + "version": "1.77.1", + "resolved": "https://registry.npmjs.org/sass-embedded-linux-musl-ia32/-/sass-embedded-linux-musl-ia32-1.77.1.tgz", + "integrity": "sha512-GZIZECePorun2cn7ZEUAkjum3RNk1gsQDLMS8F2IjACRKtxPXZwvSPfYtvzOf46ClJYmcGP/D9CKujgddCXnyQ==", "cpu": [ "ia32" ], @@ -2605,9 +2605,9 @@ } }, "node_modules/sass-embedded-linux-musl-x64": { - "version": "1.77.0", - "resolved": "https://registry.npmjs.org/sass-embedded-linux-musl-x64/-/sass-embedded-linux-musl-x64-1.77.0.tgz", - "integrity": "sha512-nqf9svqjzrL2i2nu9/hUxE3K4kM0QVegiXiqfw0CoSbwAOQvAaBQxi0k/BgXvurQwJS0ukSs7Zwon5iJ+WDqAA==", + "version": "1.77.1", + "resolved": "https://registry.npmjs.org/sass-embedded-linux-musl-x64/-/sass-embedded-linux-musl-x64-1.77.1.tgz", + "integrity": "sha512-OFHN1KicFdOX4UavWjDp8Kq3Tb/1nBdPSmtrGss8zIsMMbzoBoXvgXdwsCA1PzllJiNaq1sJChUTU6dXkVHLWg==", "cpu": [ "x64" ], @@ -2622,9 +2622,9 @@ } }, "node_modules/sass-embedded-linux-x64": { - "version": "1.77.0", - "resolved": "https://registry.npmjs.org/sass-embedded-linux-x64/-/sass-embedded-linux-x64-1.77.0.tgz", - "integrity": "sha512-KvEE4x0esp0GfGjWGs65AHrHjvxeC5gMKW0VFmWCtH4yT/o5G0eVdgaDXgQqkeLjIOPn5ULFuF2h2euXBuBagw==", + "version": "1.77.1", + "resolved": "https://registry.npmjs.org/sass-embedded-linux-x64/-/sass-embedded-linux-x64-1.77.1.tgz", + "integrity": "sha512-3xO7z7T5zXnWT7LrqZHKnPKcoVsi7MU3OP18YvhEjd3miO+m2fFgFDblIg5oQFmUTx/aMPLZQ4TUvfE8Ztr9qg==", "cpu": [ "x64" ], @@ -2642,9 +2642,9 @@ } }, "node_modules/sass-embedded-win32-arm64": { - "version": "1.77.0", - "resolved": "https://registry.npmjs.org/sass-embedded-win32-arm64/-/sass-embedded-win32-arm64-1.77.0.tgz", - "integrity": "sha512-dcv09TftEIZQ4LorkrRMYdbUkMiWTpn4nC8i9nKNhjMQ22EE8Jh1SNrR18YTqiYA3YGSc1oEgmDP9cCHHz5HFA==", + "version": "1.77.1", + "resolved": "https://registry.npmjs.org/sass-embedded-win32-arm64/-/sass-embedded-win32-arm64-1.77.1.tgz", + "integrity": "sha512-0s6Is5WhoH3NOvPKM8ylZSW6oF8D1ibOMG4H+ORi/Mz/9gnZDuwT93878BXby5kqhLY9vbxDwu8pp0waVj4M6g==", "cpu": [ "arm64" ], @@ -2662,9 +2662,9 @@ } }, "node_modules/sass-embedded-win32-ia32": { - "version": "1.77.0", - "resolved": "https://registry.npmjs.org/sass-embedded-win32-ia32/-/sass-embedded-win32-ia32-1.77.0.tgz", - "integrity": "sha512-j1AStvWCA4RAqDfe12AM7mAYUmSUxDhDktdcPQ2kPo4EiFvjlVFW7CvFM9/MiZ8VvAtop06fyIy8rr+VY8OR2w==", + "version": "1.77.1", + "resolved": "https://registry.npmjs.org/sass-embedded-win32-ia32/-/sass-embedded-win32-ia32-1.77.1.tgz", + "integrity": "sha512-2gyrjo8xQKfEnwNl9hg34h/l78jfgNtzyPYBU73/tdlY2ZYJQGt9kqjBNmABRc5czePZaLtOUyPjv1S6Znzf1A==", "cpu": [ "ia32" ], @@ -2682,9 +2682,9 @@ } }, "node_modules/sass-embedded-win32-x64": { - "version": "1.77.0", - "resolved": "https://registry.npmjs.org/sass-embedded-win32-x64/-/sass-embedded-win32-x64-1.77.0.tgz", - "integrity": "sha512-J3sjLF0mk1jYD/y3tqxZy3LfoYeyhYAhwJAS6zF9utMb5JIJ+dHscgmuVr87qHCrtOtaV6JRG0oLWi7Uka4nTg==", + "version": "1.77.1", + "resolved": "https://registry.npmjs.org/sass-embedded-win32-x64/-/sass-embedded-win32-x64-1.77.1.tgz", + "integrity": "sha512-KG9Se6avYIHIcUPnSxMCoS3VXsOAt/bzQNUcRR8IUB4nUbkr2Pzs+xBUXEgEmXPwtwlMwxXOBd6QQfqir/RV1Q==", "cpu": [ "x64" ], @@ -2702,9 +2702,9 @@ } }, "node_modules/semver": { - "version": "7.6.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.1.tgz", - "integrity": "sha512-f/vbBsu+fOiYt+lmwZV0rVwJScl46HppnOA1ZvIuBWKOTlllpyJ3bfVax76/OrhCH38dyxoDIA8K7uB963IYgA==", + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", + "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", "optional": true, "bin": { "semver": "bin/semver.js" @@ -2860,16 +2860,16 @@ } }, "node_modules/swagger-client": { - "version": "3.27.7", - "resolved": "https://registry.npmjs.org/swagger-client/-/swagger-client-3.27.7.tgz", - "integrity": "sha512-Tu4CBtygM+dxxFSh5HzCPaHzdWHfx3cVy+do18kYbABsIIntbMndiX4dU3vxHizcQuOCuvgJzl/7I1DQ+ux0GA==", + "version": "3.27.9", + "resolved": "https://registry.npmjs.org/swagger-client/-/swagger-client-3.27.9.tgz", + "integrity": "sha512-7F7PnwSyIs+wBsX1rVkKDHXqwgVIX9aIl5O84eBcXEXLcrnndGS4C3n0Mk37+ZpJZN5uqv8MQKN6nQzhjsn6hQ==", "dependencies": { "@babel/runtime-corejs3": "^7.22.15", - "@swagger-api/apidom-core": ">=0.99.1 <1.0.0", + "@swagger-api/apidom-core": ">=0.99.2 <1.0.0", "@swagger-api/apidom-error": ">=0.99.0 <1.0.0", - "@swagger-api/apidom-json-pointer": ">=0.99.1 <1.0.0", - "@swagger-api/apidom-ns-openapi-3-1": ">=0.99.1 <1.0.0", - "@swagger-api/apidom-reference": ">=0.99.1 <1.0.0", + "@swagger-api/apidom-json-pointer": ">=0.99.2 <1.0.0", + "@swagger-api/apidom-ns-openapi-3-1": ">=0.99.2 <1.0.0", + "@swagger-api/apidom-reference": ">=0.99.2 <1.0.0", "cookie": "~0.6.0", "deepmerge": "~4.3.0", "fast-json-patch": "^3.0.0-1", diff --git a/sendmail/cmd/cmd.go b/sendmail/cmd/cmd.go index 87c1155a4..4722a2589 100644 --- a/sendmail/cmd/cmd.go +++ b/sendmail/cmd/cmd.go @@ -21,6 +21,7 @@ import ( "net/smtp" "os" "os/user" + "regexp" "strings" "github.com/axllent/mailpit/config" @@ -42,15 +43,19 @@ var ( ) func init() { + // ensure only valid characters are used, ie: windows + re := regexp.MustCompile(`[^a-zA-Z\-\.\_]`) host, err := os.Hostname() if err != nil { host = "localhost" + } else { + host = re.ReplaceAllString(host, "-") } username := "nobody" user, err := user.Current() if err == nil && user != nil && len(user.Username) > 0 { - username = user.Username + username = re.ReplaceAllString(user.Username, "-") } if FromAddr == "" { @@ -62,7 +67,7 @@ func init() { func Run() { var recipients []string - // defaults from envars if provided + // defaults from env vars if provided if len(os.Getenv("MP_SENDMAIL_SMTP_ADDR")) > 0 { SMTPAddr = os.Getenv("MP_SENDMAIL_SMTP_ADDR") }