emailengine-app 2.89.0 → 2.90.0

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.
Files changed (72) hide show
  1. package/.ncurc.js +19 -8
  2. package/.release-please-manifest.json +1 -1
  3. package/CHANGELOG.md +44 -0
  4. package/Dockerfile +5 -1
  5. package/bin/healthcheck.js +1 -1
  6. package/copy-static-files.sh +0 -8
  7. package/data/google-crawlers.json +1 -1
  8. package/encrypt.js +1 -4
  9. package/lib/account/field-codec.js +396 -0
  10. package/lib/account.js +158 -453
  11. package/lib/api-routes/account-routes.js +42 -6
  12. package/lib/api-routes/route-metadata.js +5 -2
  13. package/lib/api-routes/submit-routes.js +15 -2
  14. package/lib/api-token-auth.js +342 -274
  15. package/lib/arf-detect.js +174 -149
  16. package/lib/attachment-size.js +29 -0
  17. package/lib/autodetect-imap-settings.js +83 -234
  18. package/lib/consts.js +1 -5
  19. package/lib/db.js +1 -4
  20. package/lib/email-client/base-client.js +907 -780
  21. package/lib/email-client/gmail-client.js +557 -450
  22. package/lib/email-client/imap/cid-parts.js +61 -0
  23. package/lib/email-client/imap/mailbox.js +376 -422
  24. package/lib/email-client/imap/sync-operations.js +239 -178
  25. package/lib/email-client/new-message-steps.js +168 -2
  26. package/lib/email-client/outlook/graph-message.js +266 -0
  27. package/lib/email-client/outlook/subscription-expiry.js +30 -0
  28. package/lib/email-client/outlook-client.js +652 -808
  29. package/lib/get-raw-email.js +338 -232
  30. package/lib/get-secret.js +1 -4
  31. package/lib/license-subscription.js +60 -0
  32. package/lib/load-env.js +48 -0
  33. package/lib/logger.js +1 -4
  34. package/lib/mcp/tools.js +244 -207
  35. package/lib/metric-values.js +76 -0
  36. package/lib/metrics.js +320 -0
  37. package/lib/oauth/gmail.js +39 -120
  38. package/lib/oauth/http-request.js +195 -0
  39. package/lib/oauth/mail-ru.js +24 -58
  40. package/lib/oauth/outlook.js +37 -137
  41. package/lib/oauth/pubsub/google.js +176 -117
  42. package/lib/oauth2-apps.js +440 -463
  43. package/lib/openapi/build-document.js +10 -10
  44. package/lib/read-env-value.js +1 -1
  45. package/lib/route-descriptors.js +78 -0
  46. package/lib/schemas.js +10 -1
  47. package/lib/sentry-integrations.js +299 -0
  48. package/lib/sentry.js +75 -27
  49. package/lib/sso-routes.js +249 -0
  50. package/lib/sso.js +29 -6
  51. package/lib/ui-routes/account-edit-form.js +198 -0
  52. package/lib/ui-routes/account-page.js +241 -0
  53. package/lib/ui-routes/account-routes.js +12 -318
  54. package/lib/ui-routes/auth-routes.js +10 -10
  55. package/lib/ui-view-context.js +328 -0
  56. package/lib/utils/public-suffix.js +22 -101
  57. package/lib/web-safe-html.js +20 -7
  58. package/lib/worker-metrics.js +82 -0
  59. package/list-generate.js +2 -5
  60. package/package.json +23 -19
  61. package/sbom.json +267 -908
  62. package/scripts/refresh-test-tokens.js +1 -1
  63. package/server.js +320 -676
  64. package/static/css/flyonui.css +1 -1
  65. package/static/css/src/app.tailwind.css +18 -0
  66. package/static/js/ee-client.js +2619 -645
  67. package/static/js/ui.js +12 -2
  68. package/static/licenses.html +219 -737
  69. package/translations/messages.pot +64 -53
  70. package/views/accounts/browse.hbs +19 -1
  71. package/workers/api.js +20 -451
  72. package/data/public_suffix_list.dat +0 -16698
package/list-generate.js CHANGED
@@ -50,11 +50,8 @@ const ASSET_PACKAGES = [
50
50
  // Packages whose package.json declares no (or an unparseable) license even
51
51
  // though their shipped LICENSE file is clear. Keep each entry justified; fix
52
52
  // upstream where we control the package.
53
- const LICENSE_OVERRIDES = {
54
- // our own package; the LICENSE file is MIT but package.json lacks the
55
- // license field (fix upstream in postalsys/gettext, then drop this)
56
- '@postalsys/gettext': 'MIT'
57
- };
53
+ // None at the moment: @postalsys/gettext, the last entry, declares its license since 4.3.2.
54
+ const LICENSE_OVERRIDES = {};
58
55
 
59
56
  // Hand-vendored assets that are not npm dependencies. gateExempt entries skip
60
57
  // the SPDX allow-list (fonts are static assets, not linked code).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "emailengine-app",
3
- "version": "2.89.0",
3
+ "version": "2.90.0",
4
4
  "private": false,
5
5
  "productTitle": "EmailEngine",
6
6
  "description": "Email Sync Engine",
@@ -65,26 +65,26 @@
65
65
  "@hapi/vision": "7.0.3",
66
66
  "@msgpack/msgpack": "3.1.3",
67
67
  "@postalsys/bounce-classifier": "3.1.0",
68
- "@postalsys/certs": "3.0.0",
69
- "@postalsys/email-ai-tools": "3.0.1",
68
+ "@postalsys/certs": "3.0.1",
69
+ "@postalsys/email-ai-tools": "3.0.3",
70
70
  "@postalsys/email-content": "0.1.22",
71
- "@postalsys/email-text-tools": "3.0.1",
72
- "@postalsys/gettext": "4.3.1",
71
+ "@postalsys/email-text-tools": "3.1.1",
72
+ "@postalsys/gettext": "4.3.2",
73
73
  "@postalsys/joi-messages": "1.4.1",
74
- "@postalsys/templates": "2.1.1",
75
- "@sentry/node-core": "10.78.0",
74
+ "@postalsys/templates": "3.0.0",
75
+ "@prometheus-io/client": "0.16.1",
76
+ "@sentry/core": "11.16.0",
76
77
  "@simplewebauthn/server": "14.1.0",
77
78
  "@zone-eu/mailsplit": "5.4.31",
78
79
  "@zone-eu/wild-config": "1.7.10",
79
- "bullmq": "6.7.6",
80
- "dotenv": "18.0.10",
80
+ "bullmq": "6.7.8",
81
81
  "fast-xml-parser": "5.12.1",
82
82
  "handlebars": "4.7.10",
83
83
  "he": "1.2.0",
84
84
  "html-to-text": "10.0.1",
85
85
  "ical.js": "2.2.1",
86
86
  "iconv-lite": "0.7.3",
87
- "imapflow": "2.12.1",
87
+ "imapflow": "2.12.2",
88
88
  "ioredfour": "2.2.0",
89
89
  "ioredis": "6.0.0",
90
90
  "ipaddr.js": "2.5.0",
@@ -92,25 +92,30 @@
92
92
  "libbase64": "1.4.1",
93
93
  "libmime": "5.6.5",
94
94
  "libqp": "3.0.2",
95
- "mailparser": "3.14.4",
95
+ "mailparser": "3.15.0",
96
96
  "marked": "15.0.12",
97
97
  "minimist": "1.2.8",
98
- "nodemailer": "10.6.0",
98
+ "nodemailer": "10.6.1",
99
99
  "pino": "10.3.1",
100
- "prom-client": "15.1.3",
101
100
  "pubface": "1.2.0",
102
101
  "punycode.js": "2.3.1",
103
102
  "qrcode-generator": "2.0.4",
104
- "smtp-server": "3.21.5",
105
- "socks": "2.8.10",
106
- "undici": "8.12.4"
103
+ "smtp-server": "3.21.7",
104
+ "socks": "2.8.11",
105
+ "tldts": "7.5.5",
106
+ "undici": "8.13.0"
107
+ },
108
+ "overrides": {
109
+ "@hapi/bell": {
110
+ "joi": "$joi"
111
+ }
107
112
  },
108
113
  "devDependencies": {
109
114
  "@eslint/js": "10.0.1",
110
115
  "@iconify-json/tabler": "1.2.46",
111
116
  "@iconify/tailwind4": "1.2.3",
112
117
  "@playwright/test": "1.63.0",
113
- "@postalsys/ee-client": "1.10.0",
118
+ "@postalsys/ee-client": "2.0.1",
114
119
  "@simplewebauthn/browser": "14.0.0",
115
120
  "@tailwindcss/cli": "4.3.5",
116
121
  "ace-builds": "1.45.2",
@@ -147,8 +152,7 @@
147
152
  "node_modules/@postalsys/email-content/dist/detect/patterns/*.json",
148
153
  "LICENSE_EMAILENGINE.txt",
149
154
  "version-info.json",
150
- "sbom.json",
151
- "data/public_suffix_list.dat"
155
+ "sbom.json"
152
156
  ],
153
157
  "targets": [
154
158
  "node24-linux-x64",