emailengine-app 2.72.0 → 2.72.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.72.1](https://github.com/postalsys/emailengine/compare/v2.72.0...v2.72.1) (2026-06-19)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * log expected API client errors (4xx) at warn instead of error ([c51e347](https://github.com/postalsys/emailengine/commit/c51e3476e346f321af845905a89141bf07a83421))
9
+
3
10
  ## [2.72.0](https://github.com/postalsys/emailengine/compare/v2.71.0...v2.72.0) (2026-06-18)
4
11
 
5
12
 
@@ -1,5 +1,5 @@
1
1
  {
2
- "creationTime": "2026-06-18T14:46:19.000000",
2
+ "creationTime": "2026-06-19T14:46:02.000000",
3
3
  "prefixes": [
4
4
  {
5
5
  "ipv6Prefix": "2001:4860:4801:2008::/64"
@@ -9,14 +9,20 @@ const Boom = require('@hapi/boom');
9
9
  // machine-readable err.code. This function ALWAYS throws and never returns a value, so callers use it
10
10
  // as the final statement inside a catch block: `catch (err) { handleError(request, err); }`.
11
11
  function handleError(request, err) {
12
- request.logger.error({ msg: 'API request failed', err });
13
- if (Boom.isBoom(err)) {
14
- throw err;
15
- }
16
12
  // Lower-level libraries (e.g. ImapFlow) flag "this server lacks the required capability" with a
17
13
  // machine code but no HTTP status. Surface it as a 422 client error instead of a generic 500 - the
18
14
  // request is well-formed, the account just cannot satisfy it (e.g. label search on non-Gmail IMAP).
19
- let statusCode = err.statusCode || (err.code === 'MissingServerExtension' ? 422 : 500);
15
+ let isBoom = Boom.isBoom(err);
16
+ let statusCode = isBoom ? err.output.statusCode : err.statusCode || (err.code === 'MissingServerExtension' ? 422 : 500);
17
+
18
+ // Log expected client errors (4xx, e.g. a 404 from an existence-check probe) at warn so they do not
19
+ // flood the error stream, while genuine server faults (5xx) stay at error.
20
+ let logLevel = statusCode >= 400 && statusCode < 500 ? 'warn' : 'error';
21
+ request.logger[logLevel]({ msg: 'API request failed', statusCode, err });
22
+
23
+ if (isBoom) {
24
+ throw err;
25
+ }
20
26
  const error = Boom.boomify(err, { statusCode });
21
27
  if (err.code) {
22
28
  error.output.payload.code = err.code;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "emailengine-app",
3
- "version": "2.72.0",
3
+ "version": "2.72.1",
4
4
  "private": false,
5
5
  "productTitle": "EmailEngine",
6
6
  "description": "Email Sync Engine",
@@ -62,12 +62,12 @@
62
62
  "@postalsys/bounce-classifier": "3.0.0",
63
63
  "@postalsys/certs": "1.0.15",
64
64
  "@postalsys/ee-client": "1.3.0",
65
- "@postalsys/email-ai-tools": "1.13.6",
66
- "@postalsys/email-text-tools": "2.4.7",
65
+ "@postalsys/email-ai-tools": "1.13.8",
66
+ "@postalsys/email-text-tools": "2.4.8",
67
67
  "@postalsys/gettext": "4.1.1",
68
68
  "@postalsys/joi-messages": "1.0.5",
69
69
  "@postalsys/templates": "2.0.1",
70
- "@sentry/node": "10.58.0",
70
+ "@sentry/node": "10.59.0",
71
71
  "@simplewebauthn/browser": "13.3.0",
72
72
  "@simplewebauthn/server": "13.3.1",
73
73
  "@zone-eu/mailsplit": "5.4.12",
@@ -88,7 +88,7 @@
88
88
  "html-to-text": "10.0.0",
89
89
  "ical.js": "1.5.0",
90
90
  "iconv-lite": "0.7.2",
91
- "imapflow": "1.4.1",
91
+ "imapflow": "1.4.2",
92
92
  "ioredfour": "1.4.1",
93
93
  "ioredis": "5.11.1",
94
94
  "ipaddr.js": "2.4.0",
@@ -98,7 +98,7 @@
98
98
  "libmime": "5.3.8",
99
99
  "libqp": "2.1.1",
100
100
  "license-checker": "25.0.1",
101
- "mailparser": "3.9.10",
101
+ "mailparser": "3.9.11",
102
102
  "marked": "15.0.12",
103
103
  "minimist": "1.2.8",
104
104
  "msgpack5": "6.0.2",
@@ -109,10 +109,10 @@
109
109
  "popper.js": "1.16.1",
110
110
  "prom-client": "15.1.3",
111
111
  "psl": "1.15.0",
112
- "pubface": "1.1.3",
112
+ "pubface": "1.1.4",
113
113
  "punycode.js": "2.3.1",
114
114
  "qrcode": "1.5.4",
115
- "smtp-server": "3.19.0",
115
+ "smtp-server": "3.19.1",
116
116
  "socks": "2.8.9",
117
117
  "speakeasy": "2.0.0",
118
118
  "startbootstrap-sb-admin-2": "3.3.7",