emailengine-app 2.74.0 → 2.74.2

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 (40) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/data/google-crawlers.json +1 -1
  3. package/lib/account.js +23 -45
  4. package/lib/api-routes/changes-routes.js +51 -0
  5. package/lib/api-routes/index.js +160 -0
  6. package/lib/consts.js +15 -0
  7. package/lib/email-client/gmail/send-request.js +69 -0
  8. package/lib/email-client/gmail-client.js +4 -41
  9. package/lib/email-client/imap/detach-client.js +27 -0
  10. package/lib/email-client/imap/listing-diff.js +165 -0
  11. package/lib/email-client/imap/mailbox.js +32 -13
  12. package/lib/email-client/imap/subconnection.js +2 -4
  13. package/lib/email-client/imap/sync-operations.js +5 -3
  14. package/lib/email-client/imap-client.js +50 -84
  15. package/lib/email-client/outlook/send-request.js +48 -0
  16. package/lib/email-client/outlook-client.js +5 -14
  17. package/lib/export.js +97 -21
  18. package/lib/imapproxy/imap-core/lib/imap-connection.js +1 -1
  19. package/lib/logger.js +14 -6
  20. package/lib/rate-limit.js +33 -11
  21. package/lib/response-stream.js +138 -0
  22. package/lib/schemas.js +4 -2
  23. package/lib/sentry.js +8 -0
  24. package/lib/smtp-message-processor.js +131 -0
  25. package/lib/tools.js +28 -5
  26. package/lib/ui-routes/internals-routes.js +167 -67
  27. package/lib/ui-routes/route-helpers.js +9 -6
  28. package/package.json +9 -9
  29. package/sbom.json +1 -1
  30. package/static/css/flyonui.css +1 -1
  31. package/static/licenses.html +28 -18
  32. package/translations/messages.pot +67 -67
  33. package/views/config/ai.hbs +3 -1
  34. package/views/internals/index.hbs +63 -29
  35. package/views/layout/app.hbs +22 -0
  36. package/views/partials/document_store_header.hbs +7 -4
  37. package/workers/api.js +20 -216
  38. package/workers/export.js +29 -15
  39. package/workers/imap.js +47 -10
  40. package/workers/smtp.js +50 -91
@@ -29,7 +29,7 @@ pre { background: var(--bg); border-radius: 0.5rem; padding: 1rem; overflow-x: a
29
29
  </head>
30
30
  <body>
31
31
  <main>
32
- <h1>EmailEngine v2.73.1</h1>
32
+ <h1>EmailEngine v2.74.1</h1>
33
33
  <p class="intro">EmailEngine includes code from the following open source packages. Entries marked <em>asset</em> are build-time packages whose output is embedded in the UI assets, or bundled fonts and scripts.</p>
34
34
  <ul>
35
35
  <li class="package">
@@ -125,7 +125,7 @@ THE SOFTWARE.</pre></details>
125
125
  <li class="package">
126
126
  <div class="head">
127
127
  <span class="name">@apm-js-collab/code-transformer</span>
128
- <span class="version">0.18.0</span>
128
+ <span class="version">0.18.1</span>
129
129
  <span class="badge">Apache-2.0</span>
130
130
  <span class="badge badge-runtime">runtime</span>
131
131
  <span class="links"><a href="https://npmjs.com/package/@apm-js-collab/code-transformer" rel="noopener noreferrer">npm</a> <a href="https://github.com/nodejs/orchestrion-js" rel="noopener noreferrer">website</a></span>
@@ -335,7 +335,7 @@ THE SOFTWARE.</pre></details>
335
335
  <li class="package">
336
336
  <div class="head">
337
337
  <span class="name">@apm-js-collab/code-transformer-bundler-plugins</span>
338
- <span class="version">0.7.2</span>
338
+ <span class="version">0.7.1</span>
339
339
  <span class="badge">MIT</span>
340
340
  <span class="badge badge-runtime">runtime</span>
341
341
  <span class="links"><a href="https://npmjs.com/package/@apm-js-collab/code-transformer-bundler-plugins" rel="noopener noreferrer">npm</a> <a href="https://github.com/apm-js-collab/code-transformer-bundler-plugins" rel="noopener noreferrer">website</a></span>
@@ -446,7 +446,7 @@ OTHER DEALINGS IN THE SOFTWARE.</pre></details>
446
446
  <li class="package">
447
447
  <div class="head">
448
448
  <span class="name">@bull-board/api</span>
449
- <span class="version">8.1.2</span>
449
+ <span class="version">8.3.0</span>
450
450
  <span class="badge">MIT</span>
451
451
  <span class="badge badge-runtime">runtime</span>
452
452
  <span class="links"><a href="https://npmjs.com/package/@bull-board/api" rel="noopener noreferrer">npm</a> <a href="https://github.com/felixmosh/bull-board" rel="noopener noreferrer">website</a></span>
@@ -456,7 +456,7 @@ OTHER DEALINGS IN THE SOFTWARE.</pre></details>
456
456
  <li class="package">
457
457
  <div class="head">
458
458
  <span class="name">@bull-board/hapi</span>
459
- <span class="version">8.1.2</span>
459
+ <span class="version">8.3.0</span>
460
460
  <span class="badge">MIT</span>
461
461
  <span class="badge badge-runtime">runtime</span>
462
462
  <span class="links"><a href="https://npmjs.com/package/@bull-board/hapi" rel="noopener noreferrer">npm</a> <a href="https://github.com/felixmosh/bull-board" rel="noopener noreferrer">website</a></span>
@@ -466,7 +466,7 @@ OTHER DEALINGS IN THE SOFTWARE.</pre></details>
466
466
  <li class="package">
467
467
  <div class="head">
468
468
  <span class="name">@bull-board/ui</span>
469
- <span class="version">8.1.2</span>
469
+ <span class="version">8.3.0</span>
470
470
  <span class="badge">MIT</span>
471
471
  <span class="badge badge-runtime">runtime</span>
472
472
  <span class="links"><a href="https://npmjs.com/package/@bull-board/ui" rel="noopener noreferrer">npm</a> <a href="https://github.com/felixmosh/bull-board" rel="noopener noreferrer">website</a></span>
@@ -2450,7 +2450,7 @@ SOFTWARE.</pre></details>
2450
2450
  <li class="package">
2451
2451
  <div class="head">
2452
2452
  <span class="name">@postalsys/email-ai-tools</span>
2453
- <span class="version">1.13.13</span>
2453
+ <span class="version">1.13.14</span>
2454
2454
  <span class="badge">MIT</span>
2455
2455
  <span class="badge badge-runtime">runtime</span>
2456
2456
  <span class="links"><a href="https://npmjs.com/package/@postalsys/email-ai-tools" rel="noopener noreferrer">npm</a> <a href="https://github.com/postalsys/email-ai-tools#readme" rel="noopener noreferrer">website</a></span>
@@ -3610,7 +3610,7 @@ SOFTWARE.</pre></details>
3610
3610
  <li class="package">
3611
3611
  <div class="head">
3612
3612
  <span class="name">@sentry/core</span>
3613
- <span class="version">10.67.0</span>
3613
+ <span class="version">10.68.0</span>
3614
3614
  <span class="badge">MIT</span>
3615
3615
  <span class="badge badge-runtime">runtime</span>
3616
3616
  <span class="links"><a href="https://npmjs.com/package/@sentry/core" rel="noopener noreferrer">npm</a> <a href="https://github.com/getsentry/sentry-javascript/tree/master/packages/core" rel="noopener noreferrer">website</a></span>
@@ -3640,7 +3640,7 @@ SOFTWARE.</pre></details>
3640
3640
  <li class="package">
3641
3641
  <div class="head">
3642
3642
  <span class="name">@sentry/node</span>
3643
- <span class="version">10.67.0</span>
3643
+ <span class="version">10.68.0</span>
3644
3644
  <span class="badge">MIT</span>
3645
3645
  <span class="badge badge-runtime">runtime</span>
3646
3646
  <span class="links"><a href="https://npmjs.com/package/@sentry/node" rel="noopener noreferrer">npm</a> <a href="https://github.com/getsentry/sentry-javascript/tree/master/packages/node" rel="noopener noreferrer">website</a></span>
@@ -3670,7 +3670,7 @@ SOFTWARE.</pre></details>
3670
3670
  <li class="package">
3671
3671
  <div class="head">
3672
3672
  <span class="name">@sentry/node-core</span>
3673
- <span class="version">10.67.0</span>
3673
+ <span class="version">10.68.0</span>
3674
3674
  <span class="badge">MIT</span>
3675
3675
  <span class="badge badge-runtime">runtime</span>
3676
3676
  <span class="links"><a href="https://npmjs.com/package/@sentry/node-core" rel="noopener noreferrer">npm</a> <a href="https://github.com/getsentry/sentry-javascript/tree/master/packages/node-core" rel="noopener noreferrer">website</a></span>
@@ -3700,7 +3700,7 @@ SOFTWARE.</pre></details>
3700
3700
  <li class="package">
3701
3701
  <div class="head">
3702
3702
  <span class="name">@sentry/opentelemetry</span>
3703
- <span class="version">10.67.0</span>
3703
+ <span class="version">10.68.0</span>
3704
3704
  <span class="badge">MIT</span>
3705
3705
  <span class="badge badge-runtime">runtime</span>
3706
3706
  <span class="links"><a href="https://npmjs.com/package/@sentry/opentelemetry" rel="noopener noreferrer">npm</a> <a href="https://github.com/getsentry/sentry-javascript/tree/master/packages/opentelemetry" rel="noopener noreferrer">website</a></span>
@@ -3710,7 +3710,7 @@ SOFTWARE.</pre></details>
3710
3710
  <li class="package">
3711
3711
  <div class="head">
3712
3712
  <span class="name">@sentry/server-utils</span>
3713
- <span class="version">10.67.0</span>
3713
+ <span class="version">10.68.0</span>
3714
3714
  <span class="badge">MIT</span>
3715
3715
  <span class="badge badge-runtime">runtime</span>
3716
3716
  <span class="links"><a href="https://npmjs.com/package/@sentry/server-utils" rel="noopener noreferrer">npm</a> <a href="https://github.com/getsentry/sentry-javascript/tree/master/packages/server-utils" rel="noopener noreferrer">website</a></span>
@@ -4831,7 +4831,7 @@ SOFTWARE.</pre></details>
4831
4831
  <li class="package">
4832
4832
  <div class="head">
4833
4833
  <span class="name">brace-expansion</span>
4834
- <span class="version">5.0.7</span>
4834
+ <span class="version">5.0.8</span>
4835
4835
  <span class="badge">MIT</span>
4836
4836
  <span class="badge badge-runtime">runtime</span>
4837
4837
  <span class="links"><a href="https://npmjs.com/package/brace-expansion" rel="noopener noreferrer">npm</a> <a href="https://github.com/juliangruber/brace-expansion" rel="noopener noreferrer">website</a></span>
@@ -4893,7 +4893,7 @@ THE SOFTWARE.</pre></details>
4893
4893
  <li class="package">
4894
4894
  <div class="head">
4895
4895
  <span class="name">bullmq</span>
4896
- <span class="version">5.80.11</span>
4896
+ <span class="version">5.81.2</span>
4897
4897
  <span class="badge">MIT</span>
4898
4898
  <span class="badge badge-runtime">runtime</span>
4899
4899
  <span class="links"><a href="https://npmjs.com/package/bullmq" rel="noopener noreferrer">npm</a> <a href="https://bullmq.io/" rel="noopener noreferrer">website</a></span>
@@ -7679,7 +7679,7 @@ SOFTWARE.</pre></details>
7679
7679
  <li class="package">
7680
7680
  <div class="head">
7681
7681
  <span class="name">ip-address</span>
7682
- <span class="version">10.2.0</span>
7682
+ <span class="version">10.3.1</span>
7683
7683
  <span class="badge">MIT</span>
7684
7684
  <span class="badge badge-runtime">runtime</span>
7685
7685
  <span class="links"><a href="https://npmjs.com/package/ip-address" rel="noopener noreferrer">npm</a> <a href="https://github.com/beaugunderson/ip-address" rel="noopener noreferrer">website</a></span>
@@ -10469,7 +10469,7 @@ SOFTWARE.</pre></details>
10469
10469
  <li class="package">
10470
10470
  <div class="head">
10471
10471
  <span class="name">sax</span>
10472
- <span class="version">1.6.0</span>
10472
+ <span class="version">1.6.1</span>
10473
10473
  <span class="badge">BlueOak-1.0.0</span>
10474
10474
  <span class="badge badge-runtime">runtime</span>
10475
10475
  <span class="links"><a href="https://npmjs.com/package/sax" rel="noopener noreferrer">npm</a> <a href="https://github.com/isaacs/sax-js" rel="noopener noreferrer">website</a></span>
@@ -11326,7 +11326,7 @@ SUCH DAMAGE.</pre></details>
11326
11326
  <li class="package">
11327
11327
  <div class="head">
11328
11328
  <span class="name">undici</span>
11329
- <span class="version">7.28.0</span>
11329
+ <span class="version">7.29.0</span>
11330
11330
  <span class="badge">MIT</span>
11331
11331
  <span class="badge badge-runtime">runtime</span>
11332
11332
  <span class="links"><a href="https://npmjs.com/package/undici" rel="noopener noreferrer">npm</a> <a href="https://undici.nodejs.org" rel="noopener noreferrer">website</a></span>
@@ -11356,7 +11356,17 @@ SOFTWARE.</pre></details>
11356
11356
  <li class="package">
11357
11357
  <div class="head">
11358
11358
  <span class="name">undici</span>
11359
- <span class="version">6.27.0</span>
11359
+ <span class="version">7.28.0</span>
11360
+ <span class="badge">MIT</span>
11361
+ <span class="badge badge-runtime">runtime</span>
11362
+ <span class="links"><a href="https://npmjs.com/package/undici" rel="noopener noreferrer">npm</a> <a href="https://undici.nodejs.org" rel="noopener noreferrer">website</a></span>
11363
+ </div>
11364
+ <p class="no-text">Same license text as <a href="#lic-237">undici</a>.</p>
11365
+ </li>
11366
+ <li class="package">
11367
+ <div class="head">
11368
+ <span class="name">undici</span>
11369
+ <span class="version">6.28.0</span>
11360
11370
  <span class="badge">MIT</span>
11361
11371
  <span class="badge badge-runtime">runtime</span>
11362
11372
  <span class="links"><a href="https://npmjs.com/package/undici" rel="noopener noreferrer">npm</a> <a href="https://undici.nodejs.org" rel="noopener noreferrer">website</a></span>
@@ -1,10 +1,10 @@
1
1
  msgid ""
2
2
  msgstr ""
3
3
  "Content-Type: text/plain; charset=ascii\n"
4
- "POT-Creation-Date: 2026-07-23 07:22+0000\n"
4
+ "POT-Creation-Date: 2026-07-26 05:20+0000\n"
5
5
 
6
6
  #: views/error.hbs:6
7
- #: workers/api.js:3201
7
+ #: workers/api.js:3019
8
8
  msgid "Something went wrong"
9
9
  msgstr ""
10
10
 
@@ -27,30 +27,6 @@ msgid_plural "%d days"
27
27
  msgstr[0] ""
28
28
  msgstr[1] ""
29
29
 
30
- #: views/oauth-scope-error.hbs:5
31
- msgid "Insufficient Permissions"
32
- msgstr ""
33
-
34
- #: views/oauth-scope-error.hbs:10
35
- msgid ""
36
- "All requested permissions are required for this service to function "
37
- "properly. Some required permissions were not granted during sign-in."
38
- msgstr ""
39
-
40
- #: views/oauth-scope-error.hbs:14
41
- msgid "The following permissions were not granted:"
42
- msgstr ""
43
-
44
- #: views/oauth-scope-error.hbs:23
45
- msgid ""
46
- "Please try again and make sure all permission checkboxes are selected on "
47
- "the Google consent screen."
48
- msgstr ""
49
-
50
- #: views/oauth-scope-error.hbs:28
51
- msgid "Try Again"
52
- msgstr ""
53
-
54
30
  #: views/redirect.hbs:1
55
31
  msgid "Click <a href=\"%s\">here</a> to continue&mldr;"
56
32
  msgstr ""
@@ -99,6 +75,56 @@ msgstr ""
99
75
  msgid "Email address"
100
76
  msgstr ""
101
77
 
78
+ #: views/oauth-scope-error.hbs:5
79
+ msgid "Insufficient Permissions"
80
+ msgstr ""
81
+
82
+ #: views/oauth-scope-error.hbs:10
83
+ msgid ""
84
+ "All requested permissions are required for this service to function "
85
+ "properly. Some required permissions were not granted during sign-in."
86
+ msgstr ""
87
+
88
+ #: views/oauth-scope-error.hbs:14
89
+ msgid "The following permissions were not granted:"
90
+ msgstr ""
91
+
92
+ #: views/oauth-scope-error.hbs:23
93
+ msgid ""
94
+ "Please try again and make sure all permission checkboxes are selected on "
95
+ "the Google consent screen."
96
+ msgstr ""
97
+
98
+ #: views/oauth-scope-error.hbs:28
99
+ msgid "Try Again"
100
+ msgstr ""
101
+
102
+ #: views/accounts/register/imap.hbs:13
103
+ msgid "Your name"
104
+ msgstr ""
105
+
106
+ #: views/accounts/register/imap.hbs:19
107
+ msgid "Enter your full name"
108
+ msgstr ""
109
+
110
+ #: views/accounts/register/imap.hbs:29
111
+ msgid "Enter your email address"
112
+ msgstr ""
113
+
114
+ #: views/accounts/register/imap.hbs:33
115
+ #: views/accounts/register/imap-server.hbs:39
116
+ #: views/accounts/register/imap-server.hbs:146
117
+ msgid "Password"
118
+ msgstr ""
119
+
120
+ #: views/accounts/register/imap.hbs:39
121
+ msgid "Enter your account password"
122
+ msgstr ""
123
+
124
+ #: views/accounts/register/imap.hbs:45
125
+ msgid "Continue"
126
+ msgstr ""
127
+
102
128
  #: views/accounts/register/index.hbs:6
103
129
  msgid "Choose your email account provider"
104
130
  msgstr ""
@@ -116,12 +142,6 @@ msgstr ""
116
142
  msgid "Username"
117
143
  msgstr ""
118
144
 
119
- #: views/accounts/register/imap-server.hbs:39
120
- #: views/accounts/register/imap-server.hbs:146
121
- #: views/accounts/register/imap.hbs:33
122
- msgid "Password"
123
- msgstr ""
124
-
125
145
  #: views/accounts/register/imap-server.hbs:51
126
146
  #: views/accounts/register/imap-server.hbs:158
127
147
  msgid "Important"
@@ -226,26 +246,6 @@ msgstr ""
226
246
  msgid "Request failed."
227
247
  msgstr ""
228
248
 
229
- #: views/accounts/register/imap.hbs:13
230
- msgid "Your name"
231
- msgstr ""
232
-
233
- #: views/accounts/register/imap.hbs:19
234
- msgid "Enter your full name"
235
- msgstr ""
236
-
237
- #: views/accounts/register/imap.hbs:29
238
- msgid "Enter your email address"
239
- msgstr ""
240
-
241
- #: views/accounts/register/imap.hbs:39
242
- msgid "Enter your account password"
243
- msgstr ""
244
-
245
- #: views/accounts/register/imap.hbs:45
246
- msgid "Continue"
247
- msgstr ""
248
-
249
249
  #: lib/autodetect-imap-settings.js:90
250
250
  msgid ""
251
251
  "Microsoft has disabled password-based sign-ins (including app passwords) "
@@ -254,19 +254,19 @@ msgid ""
254
254
  "connect your account."
255
255
  msgstr ""
256
256
 
257
- #: lib/tools.js:1040
257
+ #: lib/tools.js:1056
258
258
  #: lib/ui-routes/unsubscribe-routes.js:28
259
259
  #: lib/ui-routes/unsubscribe-routes.js:92
260
260
  msgid "Invalid input"
261
261
  msgstr ""
262
262
 
263
- #: lib/tools.js:1877
263
+ #: lib/tools.js:1893
264
264
  msgid "Signature validation failed"
265
265
  msgstr ""
266
266
 
267
- #: lib/tools.js:1900
268
- #: lib/tools.js:1906
269
- #: lib/tools.js:1911
267
+ #: lib/tools.js:1916
268
+ #: lib/tools.js:1922
269
+ #: lib/tools.js:1927
270
270
  #: lib/ui-routes/account-routes.js:976
271
271
  msgid "Invalid or expired account setup URL"
272
272
  msgstr ""
@@ -277,8 +277,8 @@ msgstr ""
277
277
  #: lib/ui-routes/account-routes.js:748
278
278
  #: lib/ui-routes/account-routes.js:1006
279
279
  #: lib/ui-routes/account-routes.js:1098
280
- #: workers/api.js:2376
281
- #: workers/api.js:2730
280
+ #: workers/api.js:2292
281
+ #: workers/api.js:2646
282
282
  msgid "Email Account Setup"
283
283
  msgstr ""
284
284
 
@@ -357,33 +357,33 @@ msgstr ""
357
357
  msgid "Indefinite"
358
358
  msgstr ""
359
359
 
360
- #: lib/ui-routes/route-helpers.js:127
360
+ #: lib/ui-routes/route-helpers.js:130
361
361
  msgid ""
362
362
  "Connection timed out. This usually occurs if you are behind a firewall or "
363
363
  "connecting to the wrong port."
364
364
  msgstr ""
365
365
 
366
- #: lib/ui-routes/route-helpers.js:130
366
+ #: lib/ui-routes/route-helpers.js:133
367
367
  msgid "The server unexpectedly closed the connection."
368
368
  msgstr ""
369
369
 
370
- #: lib/ui-routes/route-helpers.js:133
370
+ #: lib/ui-routes/route-helpers.js:136
371
371
  msgid ""
372
372
  "The server unexpectedly closed the connection. This usually happens when "
373
373
  "attempting to connect to a TLS port without TLS enabled."
374
374
  msgstr ""
375
375
 
376
- #: lib/ui-routes/route-helpers.js:138
376
+ #: lib/ui-routes/route-helpers.js:141
377
377
  msgid ""
378
378
  "The server refused the connection. This typically occurs if the server is "
379
379
  "not running, is overloaded, or you are connecting to the wrong host or port."
380
380
  msgstr ""
381
381
 
382
- #: lib/ui-routes/route-helpers.js:192
382
+ #: lib/ui-routes/route-helpers.js:195
383
383
  msgid "Delegated"
384
384
  msgstr ""
385
385
 
386
- #: lib/ui-routes/route-helpers.js:193
386
+ #: lib/ui-routes/route-helpers.js:196
387
387
  msgid "Using credentials from \"%s\""
388
388
  msgstr ""
389
389
 
@@ -399,7 +399,7 @@ msgstr ""
399
399
  msgid "Couldn't process request. Try again."
400
400
  msgstr ""
401
401
 
402
- #: workers/api.js:3200
403
- #: workers/api.js:3315
402
+ #: workers/api.js:3018
403
+ #: workers/api.js:3119
404
404
  msgid "Requested page not found"
405
405
  msgstr ""
@@ -90,7 +90,9 @@
90
90
  {{#> ui/form-field id="openAiAPIUrl" label="API Endpoint" error=errors.openAiAPIUrl}}
91
91
  <input type="url" class="input{{#if errors.openAiAPIUrl}} is-invalid{{/if}}" id="openAiAPIUrl"
92
92
  name="openAiAPIUrl" value="{{values.openAiAPIUrl}}" placeholder="https://api.openai.com" />
93
- <span class="helper-text">Custom API endpoint. Leave empty for default OpenAI servers.</span>
93
+ <span class="helper-text">Custom API endpoint for OpenAI-compatible services. Leave empty for the default
94
+ OpenAI servers. Include the URL path if the service mounts the API under one - for Azure OpenAI, use
95
+ https://&lt;your-resource&gt;.openai.azure.com/openai/v1</span>
94
96
  {{/ui/form-field}}
95
97
  </div>
96
98
 
@@ -15,20 +15,50 @@
15
15
  </div>
16
16
  {{/if}}
17
17
 
18
+ {{#each groups}}
18
19
  <div class="card bg-base-100 shadow-md mb-6">
19
20
 
21
+ {{!-- Pool header: worst-member health dot + kind name and purpose on the left;
22
+ running/expected count and the configured env var (shown once per pool) on
23
+ the right. --}}
24
+ <div class="card-header flex flex-wrap items-start justify-between gap-3">
25
+ <div class="flex items-start gap-2">
26
+ {{#> ui/tooltip text=healthLabel class="mt-1.5"}}
27
+ <span class="size-2.5 rounded-full bg-{{healthVariant}} shrink-0"></span>
28
+ {{/ui/tooltip}}
29
+ <div>
30
+ <h6 class="card-title text-primary mb-0">{{description}}</h6>
31
+ {{#if purpose}}
32
+ <p class="text-base-content/60 text-sm mt-1 mb-0 max-w-2xl">{{purpose}}</p>
33
+ {{/if}}
34
+ </div>
35
+ </div>
36
+ <div class="flex items-center gap-3 shrink-0">
37
+ {{#if hasExpected}}
38
+ {{#> ui/tooltip text="Worker threads running vs. the number configured to run"}}
39
+ {{> ui/badge label=countLabel variant=countVariant}}
40
+ {{/ui/tooltip}}
41
+ {{else}}
42
+ {{> ui/badge label=countLabel variant="neutral"}}
43
+ {{/if}}
44
+ {{#if configRef}}
45
+ <span class="text-base-content/60 text-sm whitespace-nowrap"><code>{{configRef}}</code></span>
46
+ {{/if}}
47
+ </div>
48
+ </div>
49
+
20
50
  <div class="overflow-x-auto">
21
51
  <table class="table">
22
52
 
23
53
  <thead>
24
54
  <tr>
25
- <th>Thread Type</th>
26
- <th class="text-end">ID</th>
55
+ <th>Status</th>
56
+ <th>ID</th>
27
57
  <th>Uptime</th>
28
58
  <th class="text-end">Memory</th>
59
+ {{#if showAccounts}}
29
60
  <th class="text-end">Accounts</th>
30
- <th class="text-end">Sent</th>
31
- <th class="text-end">Received</th>
61
+ {{/if}}
32
62
  <th><span class="sr-only">Actions</span></th>
33
63
  </tr>
34
64
  </thead>
@@ -36,39 +66,38 @@
36
66
  <tbody>
37
67
  {{#each threads}}
38
68
  <tr{{#if isUnresponsive}} class="bg-error/10"{{/if}}>
39
- <td>{{description}}
40
-
41
- {{#if config}}
42
- {{#> ui/tooltip-rich icon="icon-[tabler--info-circle]"}}
43
- <strong>Configuration</strong><br>
44
- {{config.key}}={{config.value}}
45
- {{/ui/tooltip-rich}}
46
- {{/if}}
47
-
48
- {{#if isUnresponsive}}
49
- {{> ui/badge label="Unresponsive" variant="error"}}
50
- {{#if errorMessage}}
51
- {{#> ui/tooltip-rich icon="icon-[tabler--alert-triangle] text-error"}}
52
- <strong>Error</strong><br>
53
- {{errorMessage}}
54
- {{/ui/tooltip-rich}}
55
- {{/if}}
56
- {{else if healthBadge}}
57
- {{> ui/badge label=healthBadge variant=healthBadgeType}}
58
- {{/if}}
59
-
69
+ <td>
70
+ <span class="inline-flex items-center gap-2">
71
+ <span class="size-2.5 rounded-full bg-{{statusVariant}} shrink-0"></span>
72
+ <span>{{statusLabel}}</span>
73
+ {{#if errorMessage}}
74
+ {{#> ui/tooltip-rich icon="icon-[tabler--alert-triangle] text-error"}}
75
+ <strong>Error</strong><br>
76
+ {{errorMessage}}
77
+ {{/ui/tooltip-rich}}
78
+ {{/if}}
79
+ {{#if recentlyRestarted}}
80
+ {{#> ui/tooltip-rich icon="icon-[tabler--refresh] text-warning"}}
81
+ <strong>Recently restarted</strong><br>
82
+ This worker came online noticeably later than the main process, so it started
83
+ after the initial boot rather than with the rest of the fleet. See the Uptime
84
+ column for when it last started.
85
+ {{/ui/tooltip-rich}}
86
+ {{/if}}
87
+ </span>
60
88
  </td>
61
- <td class="text-end">{{formatInteger threadId userLocale}}</td>
89
+ <td><span class="text-base-content/60 font-mono text-sm">#{{formatInteger threadId userLocale}}</span></td>
62
90
  <td>
63
91
  <span class="relative-time" data-time="{{timeStr}}"></span>
64
92
  </td>
65
93
  <td class="text-end">
66
94
  {{#if isUnresponsive}}
67
- <span class="text-error font-bold">{{heapUsed}}</span>
95
+ <span class="text-base-content/40">-</span>
68
96
  {{else}}
69
97
  {{heapUsed}}
70
98
  {{/if}}
71
99
  </td>
100
+ {{#if ../showAccounts}}
72
101
  <td class="text-end">
73
102
  {{#if accounts}}
74
103
  <a href="/admin/internals/thread/{{threadId}}"
@@ -77,8 +106,7 @@
77
106
  {{formatInteger accounts userLocale}}
78
107
  {{/if}}
79
108
  </td>
80
- <td class="text-end">{{formatInteger called userLocale}}</td>
81
- <td class="text-end">{{formatInteger messages userLocale}}</td>
109
+ {{/if}}
82
110
  <td class="relative text-end">
83
111
  {{#> ui/row-actions label="Worker actions"}}
84
112
  <li>
@@ -103,6 +131,7 @@
103
131
  </div>
104
132
 
105
133
  </div>
134
+ {{/each}}
106
135
 
107
136
  {{#> ui/details summary="About workers" class="card bg-base-100 shadow-md mb-6"}}
108
137
  <div>
@@ -110,6 +139,11 @@
110
139
  delivery, message submission, and exports. Their counts are set at startup with environment variables such as
111
140
  <code>EENGINE_WORKERS</code> (account sync), <code>EENGINE_WORKERS_API</code>, <code>EENGINE_WORKERS_WEBHOOKS</code>,
112
141
  and <code>EENGINE_WORKERS_SUBMIT</code>.</p>
142
+ <p class="mb-4">Most worker types can be scaled to several threads with those variables. The HTTP and API server is
143
+ the exception: running more than one API worker requires <code>SO_REUSEPORT</code>, which is available only on
144
+ Linux with Node.js 23.1 or newer. On macOS, Windows, or older Node.js versions EmailEngine falls back to a
145
+ single API worker even when <code>EENGINE_WORKERS_API</code> is higher, so its count may read lower than
146
+ configured.</p>
113
147
  <p class="mb-4">Use the row actions to restart an individual thread or download a memory snapshot for debugging; a
114
148
  row highlighted in red is unresponsive.</p>
115
149
  <p class="mb-0"><a href="https://learn.emailengine.app/docs/advanced/performance-tuning" target="_blank"
@@ -259,6 +259,28 @@
259
259
  {{/unless}}
260
260
  {{/unless}}
261
261
 
262
+ {{!-- Deprecated Document Store removal notice. Shown (and not dismissible) on every admin
263
+ page whenever the Document Store is genuinely active (feature gate on + setting on).
264
+ Rendered as a SOLID error alert (not a stat-card) so it stands out from the page's
265
+ white cards. Removal date is 2026-10-01. --}}
266
+ {{#if showDocumentStore}}
267
+ <div class="alert alert-error border-2 shadow-lg mb-6 flex items-start gap-4" role="alert">
268
+ <span class="icon-[tabler--alert-triangle] size-8 shrink-0 mt-0.5"></span>
269
+ <div class="grow">
270
+ <h4 class="text-lg font-bold mb-2">Document Store is being removed</h4>
271
+ <p class="mb-2">This instance still has the deprecated <strong>Document Store</strong>
272
+ enabled. Starting <strong>October 1, 2026</strong>, the Document Store will be removed
273
+ from EmailEngine releases. After that, syncing emails to ElasticSearch and the related
274
+ endpoints (chat with email, unified search) will no longer be available.</p>
275
+ <p class="mb-3">If you want to keep using the Document Store, <strong>do not upgrade</strong>
276
+ this EmailEngine instance beyond the last release that still includes it. Be aware that
277
+ such a frozen version will <strong>not receive security updates</strong>, so continuing
278
+ to run it is entirely at your own risk.</p>
279
+ {{> ui/btn href="/admin/config/document-store" variant="neutral" size="sm" icon="icon-[tabler--arrow-right]" label="Review Document Store settings"}}
280
+ </div>
281
+ </div>
282
+ {{/if}}
283
+
262
284
  {{{content}}}
263
285
 
264
286
  </div>
@@ -9,10 +9,13 @@
9
9
  to ongoing challenges in maintaining consistent synchronization between email accounts and their
10
10
  mirrored content on the ElasticSearch server.</p>
11
11
  <ul class="list-disc ps-6">
12
- <li>The Document Store feature will not be removed from EmailEngine, and you can continue to use it
13
- as per your current needs.</li>
14
- <li>However, please be aware that as a deprecated feature, it will no longer receive new
15
- updates or enhancements.</li>
12
+ <li>Starting <strong>October 1, 2026</strong>, the Document Store will be removed from EmailEngine
13
+ releases. After that, syncing emails to ElasticSearch and the related endpoints (chat with email,
14
+ unified search) will no longer be available.</li>
15
+ <li>As a deprecated feature, it no longer receives new updates or enhancements.</li>
16
+ <li>If you want to keep using the Document Store, do not upgrade this EmailEngine instance beyond the
17
+ last release that still includes it. Be aware that such a frozen version will not receive security
18
+ updates, so continuing to run it is entirely at your own risk.</li>
16
19
  </ul>
17
20
  {{/ui/stat-card}}
18
21