emailengine-app 2.84.2 → 2.85.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 (86) hide show
  1. package/.ncurc.js +5 -3
  2. package/.prettierignore +5 -1
  3. package/.prettierrc.js +2 -0
  4. package/.release-please-manifest.json +1 -1
  5. package/CHANGELOG.md +33 -0
  6. package/Dockerfile +6 -0
  7. package/README.md +1 -1
  8. package/bin/emailengine.js +434 -408
  9. package/copy-static-files.sh +39 -14
  10. package/data/google-crawlers.json +1 -1
  11. package/data/public_suffix_list.dat +16562 -0
  12. package/eslint.config.js +81 -99
  13. package/lib/account.js +36 -5
  14. package/lib/api-reference/format.js +4 -3
  15. package/lib/api-routes/account-routes.js +177 -12
  16. package/lib/api-routes/blocklist-routes.js +23 -2
  17. package/lib/api-routes/delivery-test-routes.js +26 -3
  18. package/lib/api-routes/export-routes.js +28 -2
  19. package/lib/api-routes/gateway-routes.js +28 -2
  20. package/lib/api-routes/mailbox-routes.js +41 -2
  21. package/lib/api-routes/message-routes.js +97 -3
  22. package/lib/api-routes/oauth2-app-routes.js +48 -15
  23. package/lib/api-routes/outbox-routes.js +45 -11
  24. package/lib/api-routes/permission-map.js +12 -1
  25. package/lib/api-routes/settings-routes.js +23 -2
  26. package/lib/api-routes/submit-routes.js +336 -309
  27. package/lib/api-routes/template-routes.js +38 -2
  28. package/lib/api-routes/token-routes.js +142 -96
  29. package/lib/api-routes/webhook-route-routes.js +13 -2
  30. package/lib/bounce-detect.js +397 -205
  31. package/lib/consts.js +5 -4
  32. package/lib/email-client/base-client.js +10 -31
  33. package/lib/email-client/gmail-client.js +9 -11
  34. package/lib/email-client/imap/mailbox.js +3 -19
  35. package/lib/email-client/imap/subconnection.js +1 -1
  36. package/lib/email-client/imap-client.js +1 -1
  37. package/lib/email-client/notification-handler.js +1 -2
  38. package/lib/gateway.js +2 -3
  39. package/lib/hapi-request-logger.js +107 -0
  40. package/lib/imapproxy/imap-core/README.md +6 -5
  41. package/lib/mcp/tools.js +37 -8
  42. package/lib/notify-attachments.js +17 -0
  43. package/lib/oauth/outlook-mailbox.js +35 -0
  44. package/lib/oauth/state.js +24 -0
  45. package/lib/oauth2-apps.js +1 -1
  46. package/lib/pbkdf2-phc.js +1 -1
  47. package/lib/schemas.js +1 -1
  48. package/lib/sso.js +1 -1
  49. package/lib/swagger-options.js +1 -1
  50. package/lib/thread-diagnostics.js +46 -0
  51. package/lib/timezones.js +109 -0
  52. package/lib/token-permission-view.js +3 -3
  53. package/lib/tools.js +40 -10
  54. package/lib/totp.js +2 -5
  55. package/lib/translations.js +1 -2
  56. package/lib/ui-routes/account-routes.js +475 -454
  57. package/lib/ui-routes/account-setup.js +99 -0
  58. package/lib/ui-routes/admin-config-routes.js +88 -10
  59. package/lib/ui-routes/admin-entities-routes.js +91 -7
  60. package/lib/ui-routes/auth-routes.js +90 -38
  61. package/lib/ui-routes/internals-routes.js +5 -0
  62. package/lib/ui-routes/oauth-config-routes.js +124 -82
  63. package/lib/ui-routes/route-helpers.js +19 -3
  64. package/lib/ui-routes/tls-config-routes.js +58 -15
  65. package/lib/utils/back-off.js +82 -0
  66. package/lib/utils/murmurhash3.js +66 -0
  67. package/lib/utils/public-suffix.js +122 -0
  68. package/lib/utils/random-id.js +26 -0
  69. package/lib/utils/version.js +74 -0
  70. package/lib/webhook-routing.js +27 -0
  71. package/lib/webhooks.js +41 -6
  72. package/package.json +27 -29
  73. package/sbom.json +7980 -1
  74. package/server.js +634 -441
  75. package/static/licenses.html +181 -1006
  76. package/translations/messages.pot +62 -63
  77. package/views/config/ai.hbs +1 -1
  78. package/views/config/security.hbs +2 -2
  79. package/views/config/service.hbs +3 -0
  80. package/views/internals/index.hbs +8 -0
  81. package/views/partials/webhook_form.hbs +1 -1
  82. package/views/suppression-lists/index.hbs +1 -1
  83. package/workers/api.js +738 -583
  84. package/workers/export.js +1 -1
  85. package/workers/submit.js +1 -1
  86. package/workers/webhooks.js +16 -32
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "emailengine-app",
3
- "version": "2.84.2",
3
+ "version": "2.85.0",
4
4
  "private": false,
5
5
  "productTitle": "EmailEngine",
6
6
  "description": "Email Sync Engine",
@@ -13,11 +13,13 @@
13
13
  "gmail": "EE_OPENAPI_VERBOSE=true EENGINE_LOG_RAW=true EENGINE_SECRET=your-encryption-key EENGINE_WORKERS=2 EENGINE_CORS_ORIGIN='*' node --inspect server --dbs.redis='redis://127.0.0.1:6379/11' --api.port=7003 --api.host=0.0.0.0 | tee $HOME/ee.log.gmail.txt | pino-pretty",
14
14
  "test": "npm run lint:src && npm run test:unit && npm run test:integration",
15
15
  "test:unit": "NODE_ENV=test node test/run-tests.js unit",
16
+ "test:cjs": "NODE_ENV=test NODE_OPTIONS=--no-experimental-require-module node test/run-tests.js unit",
16
17
  "test:integration": "NODE_ENV=test node test/run-tests.js integration",
17
18
  "test:dovecot": "./test/dovecot/run-dovecot-tests.sh",
18
19
  "test:e2e": "playwright test",
19
20
  "test:e2e:install": "playwright install --with-deps chromium",
20
- "lint": "npx eslint 'lib/**/*.js' 'workers/**/*.js' 'test/**/*.js' server.js",
21
+ "lint": "eslint .",
22
+ "lint:fix": "eslint . --fix",
21
23
  "lint:src": "npx eslint 'lib/**/*.js' 'workers/**/*.js' server.js",
22
24
  "swagger": "./getswagger.sh",
23
25
  "build:css": "tailwindcss -i static/css/src/app.tailwind.css -o static/css/flyonui.css --minify",
@@ -60,54 +62,46 @@
60
62
  "@hapi/inert": "7.1.2",
61
63
  "@hapi/vision": "7.0.3",
62
64
  "@msgpack/msgpack": "3.1.3",
63
- "@postalsys/bounce-classifier": "3.0.1",
64
- "@postalsys/certs": "1.4.6",
65
- "@postalsys/email-ai-tools": "2.2.7",
66
- "@postalsys/email-content": "0.1.16",
67
- "@postalsys/email-text-tools": "2.4.25",
68
- "@postalsys/gettext": "4.1.1",
69
- "@postalsys/joi-messages": "1.3.1",
70
- "@postalsys/templates": "2.0.4",
65
+ "@postalsys/bounce-classifier": "3.1.0",
66
+ "@postalsys/certs": "2.0.0",
67
+ "@postalsys/email-ai-tools": "2.3.1",
68
+ "@postalsys/email-content": "0.1.17",
69
+ "@postalsys/email-text-tools": "2.5.0",
70
+ "@postalsys/gettext": "4.3.0",
71
+ "@postalsys/joi-messages": "1.4.1",
72
+ "@postalsys/templates": "2.1.1",
71
73
  "@sentry/node-core": "10.76.2",
72
74
  "@simplewebauthn/server": "14.0.3",
73
- "@zone-eu/mailsplit": "5.4.26",
74
- "@zone-eu/wild-config": "1.7.9",
75
- "bullmq": "6.3.16",
76
- "compare-versions": "6.1.1",
75
+ "@zone-eu/mailsplit": "5.4.27",
76
+ "@zone-eu/wild-config": "1.7.10",
77
+ "bullmq": "6.3.19",
77
78
  "dotenv": "18.0.8",
78
79
  "encoding-japanese": "2.4.0",
79
- "exponential-backoff": "3.1.3",
80
80
  "fast-xml-parser": "5.11.2",
81
- "gettext-parser": "7.0.1",
82
81
  "handlebars": "4.7.10",
83
- "hapi-pino": "13.0.0",
84
82
  "he": "1.2.0",
85
83
  "html-to-text": "10.0.1",
86
84
  "ical.js": "2.2.1",
87
85
  "iconv-lite": "0.7.3",
88
- "imapflow": "2.5.5",
89
- "ioredfour": "1.4.4",
86
+ "imapflow": "2.5.9",
87
+ "ioredfour": "2.0.0",
90
88
  "ioredis": "6.0.0",
91
89
  "ipaddr.js": "2.5.0",
92
90
  "joi": "18.3.0",
93
91
  "libbase64": "1.4.1",
94
- "libmime": "5.5.1",
92
+ "libmime": "5.5.2",
95
93
  "libqp": "3.0.1",
96
- "mailparser": "3.9.46",
94
+ "mailparser": "3.10.0",
97
95
  "marked": "15.0.12",
98
96
  "minimist": "1.2.8",
99
- "murmurhash": "2.0.1",
100
- "nanoid": "3.3.20",
101
97
  "nodemailer": "10.1.7",
102
98
  "pino": "10.3.1",
103
99
  "prom-client": "15.1.3",
104
- "psl": "1.15.0",
105
- "pubface": "1.1.18",
100
+ "pubface": "1.2.0",
106
101
  "punycode.js": "2.3.1",
107
102
  "qrcode-generator": "2.0.4",
108
103
  "smtp-server": "3.20.2",
109
104
  "socks": "2.8.10",
110
- "timezones-list": "3.1.0",
111
105
  "undici": "7.30.1"
112
106
  },
113
107
  "devDependencies": {
@@ -121,10 +115,12 @@
121
115
  "ace-builds": "1.45.0",
122
116
  "acorn": "8.19.0",
123
117
  "acorn-walk": "8.3.5",
124
- "chai": "4.5.0",
125
118
  "eerawlog": "1.5.5",
126
119
  "eslint": "10.13.0",
120
+ "eslint-config-prettier": "10.1.8",
127
121
  "flyonui": "2.4.1",
122
+ "gettext-parser": "7.0.1",
123
+ "globals": "17.13.0",
128
124
  "pino-pretty": "13.2.0",
129
125
  "prettier": "3.9.10",
130
126
  "resedit": "3.1.0",
@@ -154,7 +150,8 @@
154
150
  "node_modules/jsdom/lib/jsdom/browser/default-stylesheet.css",
155
151
  "LICENSE_EMAILENGINE.txt",
156
152
  "version-info.json",
157
- "sbom.json"
153
+ "sbom.json",
154
+ "data/public_suffix_list.dat"
158
155
  ],
159
156
  "targets": [
160
157
  "node24-linux-x64",
@@ -164,7 +161,8 @@
164
161
  ],
165
162
  "outputPath": "ee-dist",
166
163
  "options": [
167
- "max_old_space_size=4096"
164
+ "max_old_space_size=4096",
165
+ "max_semi_space_size=16"
168
166
  ]
169
167
  }
170
168
  }