emailengine-app 2.73.1 → 2.74.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/.github/docker-smoke-test.sh +45 -0
- package/.github/workflows/deploy.yml +22 -0
- package/.github/workflows/release.yaml +19 -0
- package/.github/workflows/test.yml +31 -0
- package/CHANGELOG.md +55 -0
- package/Dockerfile +14 -4
- package/data/google-crawlers.json +1 -1
- package/lib/api-routes/token-routes.js +13 -0
- package/lib/consts.js +15 -0
- package/lib/delivery-error.js +34 -11
- package/lib/email-client/imap/mailbox.js +96 -1
- package/lib/email-client/imap-client.js +101 -28
- package/lib/schemas.js +16 -2
- package/lib/settings.js +13 -0
- package/lib/tokens.js +15 -0
- package/lib/ui-routes/account-routes.js +65 -5
- package/lib/ui-routes/admin-entities-routes.js +13 -0
- package/lib/ui-routes/internals-routes.js +135 -67
- package/lib/ui-routes/route-helpers.js +9 -6
- package/lib/worker-rpc-error.js +54 -0
- package/package.json +9 -8
- package/sbom.json +1 -1
- package/server.js +3 -19
- package/setup-production.sh +7 -2
- package/static/css/flyonui.css +1 -1
- package/static/licenses.html +18 -18
- package/translations/messages.pot +24 -24
- package/views/accounts/edit.hbs +6 -0
- package/views/config/ai.hbs +3 -1
- package/views/internals/index.hbs +55 -29
- package/views/layout/app.hbs +22 -0
- package/views/partials/document_store_header.hbs +7 -4
- package/workers/api.js +5 -4
- package/workers/imap.js +3 -16
- package/workers/submit.js +3 -18
package/static/licenses.html
CHANGED
|
@@ -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.
|
|
32
|
+
<h1>EmailEngine v2.74.0</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.
|
|
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.
|
|
338
|
+
<span class="version">0.7.2</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.
|
|
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.
|
|
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.
|
|
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>
|
|
@@ -552,7 +552,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</pre>
|
|
|
552
552
|
<li class="package">
|
|
553
553
|
<div class="head">
|
|
554
554
|
<span class="name">@csstools/css-syntax-patches-for-csstree</span>
|
|
555
|
-
<span class="version">1.1.
|
|
555
|
+
<span class="version">1.1.7</span>
|
|
556
556
|
<span class="badge">MIT-0</span>
|
|
557
557
|
<span class="badge badge-runtime">runtime</span>
|
|
558
558
|
<span class="links"><a href="https://npmjs.com/package/@csstools/css-syntax-patches-for-csstree" rel="noopener noreferrer">npm</a> <a href="https://github.com/csstools/postcss-plugins/tree/main/packages/css-syntax-patches-for-csstree#readme" rel="noopener noreferrer">website</a></span>
|
|
@@ -1228,7 +1228,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS&
|
|
|
1228
1228
|
<li class="package">
|
|
1229
1229
|
<div class="head">
|
|
1230
1230
|
<span class="name">@hapi/hapi</span>
|
|
1231
|
-
<span class="version">21.4.
|
|
1231
|
+
<span class="version">21.4.10</span>
|
|
1232
1232
|
<span class="badge">BSD-3-Clause</span>
|
|
1233
1233
|
<span class="badge badge-runtime">runtime</span>
|
|
1234
1234
|
<span class="links"><a href="https://npmjs.com/package/@hapi/hapi" rel="noopener noreferrer">npm</a> <a href="https://hapi.dev" rel="noopener noreferrer">website</a></span>
|
|
@@ -2040,7 +2040,7 @@ SOFTWARE.</pre></details>
|
|
|
2040
2040
|
<li class="package">
|
|
2041
2041
|
<div class="head">
|
|
2042
2042
|
<span class="name">@opentelemetry/core</span>
|
|
2043
|
-
<span class="version">2.
|
|
2043
|
+
<span class="version">2.10.0</span>
|
|
2044
2044
|
<span class="badge">Apache-2.0</span>
|
|
2045
2045
|
<span class="badge badge-runtime">runtime</span>
|
|
2046
2046
|
<span class="links"><a href="https://npmjs.com/package/@opentelemetry/core" rel="noopener noreferrer">npm</a> <a href="https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-core" rel="noopener noreferrer">website</a></span>
|
|
@@ -2060,7 +2060,7 @@ SOFTWARE.</pre></details>
|
|
|
2060
2060
|
<li class="package">
|
|
2061
2061
|
<div class="head">
|
|
2062
2062
|
<span class="name">@opentelemetry/resources</span>
|
|
2063
|
-
<span class="version">2.
|
|
2063
|
+
<span class="version">2.10.0</span>
|
|
2064
2064
|
<span class="badge">Apache-2.0</span>
|
|
2065
2065
|
<span class="badge badge-runtime">runtime</span>
|
|
2066
2066
|
<span class="links"><a href="https://npmjs.com/package/@opentelemetry/resources" rel="noopener noreferrer">npm</a> <a href="https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-resources" rel="noopener noreferrer">website</a></span>
|
|
@@ -2070,7 +2070,7 @@ SOFTWARE.</pre></details>
|
|
|
2070
2070
|
<li class="package">
|
|
2071
2071
|
<div class="head">
|
|
2072
2072
|
<span class="name">@opentelemetry/sdk-trace</span>
|
|
2073
|
-
<span class="version">2.
|
|
2073
|
+
<span class="version">2.10.0</span>
|
|
2074
2074
|
<span class="badge">Apache-2.0</span>
|
|
2075
2075
|
<span class="badge badge-runtime">runtime</span>
|
|
2076
2076
|
<span class="links"><a href="https://npmjs.com/package/@opentelemetry/sdk-trace" rel="noopener noreferrer">npm</a> <a href="https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/sdk-trace" rel="noopener noreferrer">website</a></span>
|
|
@@ -2080,7 +2080,7 @@ SOFTWARE.</pre></details>
|
|
|
2080
2080
|
<li class="package">
|
|
2081
2081
|
<div class="head">
|
|
2082
2082
|
<span class="name">@opentelemetry/sdk-trace-base</span>
|
|
2083
|
-
<span class="version">2.
|
|
2083
|
+
<span class="version">2.10.0</span>
|
|
2084
2084
|
<span class="badge">Apache-2.0</span>
|
|
2085
2085
|
<span class="badge badge-runtime">runtime</span>
|
|
2086
2086
|
<span class="links"><a href="https://npmjs.com/package/@opentelemetry/sdk-trace-base" rel="noopener noreferrer">npm</a> <a href="https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-sdk-trace-base" 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.
|
|
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>
|
|
@@ -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.
|
|
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.
|
|
4896
|
+
<span class="version">5.81.0</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>
|
|
@@ -7560,7 +7560,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS&
|
|
|
7560
7560
|
<li class="package">
|
|
7561
7561
|
<div class="head">
|
|
7562
7562
|
<span class="name">imapflow</span>
|
|
7563
|
-
<span class="version">1.
|
|
7563
|
+
<span class="version">1.5.0</span>
|
|
7564
7564
|
<span class="badge">MIT</span>
|
|
7565
7565
|
<span class="badge badge-runtime">runtime</span>
|
|
7566
7566
|
<span class="links"><a href="https://npmjs.com/package/imapflow" rel="noopener noreferrer">npm</a> <a href="https://imapflow.com/" rel="noopener noreferrer">website</a></span>
|
|
@@ -7585,7 +7585,7 @@ SOFTWARE.</pre></details>
|
|
|
7585
7585
|
<li class="package">
|
|
7586
7586
|
<div class="head">
|
|
7587
7587
|
<span class="name">import-in-the-middle</span>
|
|
7588
|
-
<span class="version">3.3.
|
|
7588
|
+
<span class="version">3.3.2</span>
|
|
7589
7589
|
<span class="badge">Apache-2.0</span>
|
|
7590
7590
|
<span class="badge badge-runtime">runtime</span>
|
|
7591
7591
|
<span class="links"><a href="https://npmjs.com/package/import-in-the-middle" rel="noopener noreferrer">npm</a> <a href="https://github.com/nodejs/import-in-the-middle#readme" rel="noopener noreferrer">website</a></span>
|
|
@@ -10863,7 +10863,7 @@ SOFTWARE.</pre></details>
|
|
|
10863
10863
|
<li class="package">
|
|
10864
10864
|
<div class="head">
|
|
10865
10865
|
<span class="name">swagger-ui-dist</span>
|
|
10866
|
-
<span class="version">5.32.
|
|
10866
|
+
<span class="version">5.32.11</span>
|
|
10867
10867
|
<span class="badge">Apache-2.0</span>
|
|
10868
10868
|
<span class="badge badge-runtime">runtime</span>
|
|
10869
10869
|
<span class="links"><a href="https://npmjs.com/package/swagger-ui-dist" rel="noopener noreferrer">npm</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-
|
|
4
|
+
"POT-Creation-Date: 2026-07-23 15:18+0000\n"
|
|
5
5
|
|
|
6
6
|
#: views/error.hbs:6
|
|
7
|
-
#: workers/api.js:
|
|
7
|
+
#: workers/api.js:3201
|
|
8
8
|
msgid "Something went wrong"
|
|
9
9
|
msgstr ""
|
|
10
10
|
|
|
@@ -27,10 +27,6 @@ msgid_plural "%d days"
|
|
|
27
27
|
msgstr[0] ""
|
|
28
28
|
msgstr[1] ""
|
|
29
29
|
|
|
30
|
-
#: views/redirect.hbs:1
|
|
31
|
-
msgid "Click <a href=\"%s\">here</a> to continue…"
|
|
32
|
-
msgstr ""
|
|
33
|
-
|
|
34
30
|
#: views/oauth-scope-error.hbs:5
|
|
35
31
|
msgid "Insufficient Permissions"
|
|
36
32
|
msgstr ""
|
|
@@ -55,6 +51,10 @@ msgstr ""
|
|
|
55
51
|
msgid "Try Again"
|
|
56
52
|
msgstr ""
|
|
57
53
|
|
|
54
|
+
#: views/redirect.hbs:1
|
|
55
|
+
msgid "Click <a href=\"%s\">here</a> to continue…"
|
|
56
|
+
msgstr ""
|
|
57
|
+
|
|
58
58
|
#: views/unsubscribe.hbs:7
|
|
59
59
|
#: views/unsubscribe.hbs:60
|
|
60
60
|
#: views/unsubscribe.hbs:75
|
|
@@ -125,6 +125,14 @@ msgstr ""
|
|
|
125
125
|
msgid "Continue"
|
|
126
126
|
msgstr ""
|
|
127
127
|
|
|
128
|
+
#: views/accounts/register/index.hbs:6
|
|
129
|
+
msgid "Choose your email account provider"
|
|
130
|
+
msgstr ""
|
|
131
|
+
|
|
132
|
+
#: views/accounts/register/index.hbs:19
|
|
133
|
+
msgid "Standard IMAP"
|
|
134
|
+
msgstr ""
|
|
135
|
+
|
|
128
136
|
#: views/accounts/register/imap-server.hbs:22
|
|
129
137
|
msgid "IMAP"
|
|
130
138
|
msgstr ""
|
|
@@ -238,14 +246,6 @@ msgstr ""
|
|
|
238
246
|
msgid "Request failed."
|
|
239
247
|
msgstr ""
|
|
240
248
|
|
|
241
|
-
#: views/accounts/register/index.hbs:6
|
|
242
|
-
msgid "Choose your email account provider"
|
|
243
|
-
msgstr ""
|
|
244
|
-
|
|
245
|
-
#: views/accounts/register/index.hbs:19
|
|
246
|
-
msgid "Standard IMAP"
|
|
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) "
|
|
@@ -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:
|
|
281
|
-
#: workers/api.js:
|
|
280
|
+
#: workers/api.js:2376
|
|
281
|
+
#: workers/api.js:2730
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
382
|
+
#: lib/ui-routes/route-helpers.js:195
|
|
383
383
|
msgid "Delegated"
|
|
384
384
|
msgstr ""
|
|
385
385
|
|
|
386
|
-
#: lib/ui-routes/route-helpers.js:
|
|
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:
|
|
403
|
-
#: workers/api.js:
|
|
402
|
+
#: workers/api.js:3200
|
|
403
|
+
#: workers/api.js:3315
|
|
404
404
|
msgid "Requested page not found"
|
|
405
405
|
msgstr ""
|
package/views/accounts/edit.hbs
CHANGED
|
@@ -44,6 +44,10 @@
|
|
|
44
44
|
|
|
45
45
|
{{> ui/checkbox id="imap_secure" label="Use TLS" checked=values.imap_secure error=errors.imap_secure tooltip="TLS (also known as SSL) is usually only needed when using port 993. For other ports EmailEngine falls back to using STARTTLS based encryption."}}
|
|
46
46
|
|
|
47
|
+
{{> ui/checkbox id="imap_tls_ignoreCertErrors" label="Allow invalid certificates" checked=values.imap_tls_ignoreCertErrors error=errors.imap_tls_ignoreCertErrors tooltip="Accept self-signed or otherwise invalid TLS certificates when connecting to the IMAP server of this account. The Allow Insecure Email Certificates option on the Security configuration page applies the same override to all accounts."}}
|
|
48
|
+
|
|
49
|
+
{{> ui/checkbox id="imap_disableIMAP4rev2" label="Disable IMAP4rev2" checked=values.imap_disableIMAP4rev2 error=errors.imap_disableIMAP4rev2 tooltip="Do not use the IMAP4rev2 protocol revision even if the server supports it. Enable this option if the server advertises IMAP4rev2 but fails when EmailEngine uses it."}}
|
|
50
|
+
|
|
47
51
|
{{/unless}}
|
|
48
52
|
|
|
49
53
|
{{> ui/form-field id="imap_sentMailPath" label="Sent Mail folder" value=values.imap_sentMailPath error=errors.imap_sentMailPath lpignore=true placeholder='Folder path like "Sent Mail"' list="available-paths-list" hint='Copies of sent emails will be uploaded to this folder. Leave empty to use the default "Sent Mail" folder for this account.'}}
|
|
@@ -78,6 +82,8 @@
|
|
|
78
82
|
|
|
79
83
|
{{> ui/checkbox id="smtp_secure" label="Use TLS" checked=values.smtp_secure error=errors.smtp_secure tooltip="TLS (also known as SSL) is usually only needed when using port 465. For other ports EmailEngine falls back to using STARTTLS based encryption."}}
|
|
80
84
|
|
|
85
|
+
{{> ui/checkbox id="smtp_tls_ignoreCertErrors" label="Allow invalid certificates" checked=values.smtp_tls_ignoreCertErrors error=errors.smtp_tls_ignoreCertErrors tooltip="Accept self-signed or otherwise invalid TLS certificates when connecting to the SMTP server of this account. The Allow Insecure Email Certificates option on the Security configuration page applies the same override to all accounts."}}
|
|
86
|
+
|
|
81
87
|
</div>
|
|
82
88
|
</div>
|
|
83
89
|
{{/if}}
|
package/views/config/ai.hbs
CHANGED
|
@@ -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
|
|
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://<your-resource>.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>
|
|
26
|
-
<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
|
-
|
|
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,30 @@
|
|
|
36
66
|
<tbody>
|
|
37
67
|
{{#each threads}}
|
|
38
68
|
<tr{{#if isUnresponsive}} class="bg-error/10"{{/if}}>
|
|
39
|
-
<td>
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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
|
+
</span>
|
|
60
80
|
</td>
|
|
61
|
-
<td class="text-
|
|
81
|
+
<td><span class="text-base-content/60 font-mono text-sm">#{{formatInteger threadId userLocale}}</span></td>
|
|
62
82
|
<td>
|
|
63
83
|
<span class="relative-time" data-time="{{timeStr}}"></span>
|
|
64
84
|
</td>
|
|
65
85
|
<td class="text-end">
|
|
66
86
|
{{#if isUnresponsive}}
|
|
67
|
-
<span class="text-
|
|
87
|
+
<span class="text-base-content/40">-</span>
|
|
68
88
|
{{else}}
|
|
69
89
|
{{heapUsed}}
|
|
70
90
|
{{/if}}
|
|
71
91
|
</td>
|
|
92
|
+
{{#if ../showAccounts}}
|
|
72
93
|
<td class="text-end">
|
|
73
94
|
{{#if accounts}}
|
|
74
95
|
<a href="/admin/internals/thread/{{threadId}}"
|
|
@@ -77,8 +98,7 @@
|
|
|
77
98
|
{{formatInteger accounts userLocale}}
|
|
78
99
|
{{/if}}
|
|
79
100
|
</td>
|
|
80
|
-
|
|
81
|
-
<td class="text-end">{{formatInteger messages userLocale}}</td>
|
|
101
|
+
{{/if}}
|
|
82
102
|
<td class="relative text-end">
|
|
83
103
|
{{#> ui/row-actions label="Worker actions"}}
|
|
84
104
|
<li>
|
|
@@ -103,6 +123,7 @@
|
|
|
103
123
|
</div>
|
|
104
124
|
|
|
105
125
|
</div>
|
|
126
|
+
{{/each}}
|
|
106
127
|
|
|
107
128
|
{{#> ui/details summary="About workers" class="card bg-base-100 shadow-md mb-6"}}
|
|
108
129
|
<div>
|
|
@@ -110,6 +131,11 @@
|
|
|
110
131
|
delivery, message submission, and exports. Their counts are set at startup with environment variables such as
|
|
111
132
|
<code>EENGINE_WORKERS</code> (account sync), <code>EENGINE_WORKERS_API</code>, <code>EENGINE_WORKERS_WEBHOOKS</code>,
|
|
112
133
|
and <code>EENGINE_WORKERS_SUBMIT</code>.</p>
|
|
134
|
+
<p class="mb-4">Most worker types can be scaled to several threads with those variables. The HTTP and API server is
|
|
135
|
+
the exception: running more than one API worker requires <code>SO_REUSEPORT</code>, which is available only on
|
|
136
|
+
Linux with Node.js 23.1 or newer. On macOS, Windows, or older Node.js versions EmailEngine falls back to a
|
|
137
|
+
single API worker even when <code>EENGINE_WORKERS_API</code> is higher, so its count may read lower than
|
|
138
|
+
configured.</p>
|
|
113
139
|
<p class="mb-4">Use the row actions to restart an individual thread or download a memory snapshot for debugging; a
|
|
114
140
|
row highlighted in red is unresponsive.</p>
|
|
115
141
|
<p class="mb-0"><a href="https://learn.emailengine.app/docs/advanced/performance-tuning" target="_blank"
|
package/views/layout/app.hbs
CHANGED
|
@@ -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>
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
|
package/workers/api.js
CHANGED
|
@@ -1109,10 +1109,12 @@ Include your token in requests using one of these methods:
|
|
|
1109
1109
|
validate: async (request, token /*, h*/) => {
|
|
1110
1110
|
let disableTokens = await settings.get('disableTokens');
|
|
1111
1111
|
if (disableTokens && (!token || token === 'preauth')) {
|
|
1112
|
-
// tokens checks are disabled, allow all if token is not set
|
|
1112
|
+
// tokens checks are disabled, allow all if token is not set.
|
|
1113
|
+
// `preauth` marks a caller that presented NO credential at all - routes that hand
|
|
1114
|
+
// out lasting privilege have to be able to tell that apart from a real token.
|
|
1113
1115
|
return {
|
|
1114
1116
|
isValid: true,
|
|
1115
|
-
credentials: {},
|
|
1117
|
+
credentials: { preauth: true },
|
|
1116
1118
|
artifacts: {}
|
|
1117
1119
|
};
|
|
1118
1120
|
}
|
|
@@ -1554,8 +1556,7 @@ Include your token in requests using one of these methods:
|
|
|
1554
1556
|
}
|
|
1555
1557
|
}
|
|
1556
1558
|
|
|
1557
|
-
|
|
1558
|
-
if (authData) {
|
|
1559
|
+
if (await settings.isInstanceSecured()) {
|
|
1559
1560
|
server.auth.default('session');
|
|
1560
1561
|
}
|
|
1561
1562
|
|
package/workers/imap.js
CHANGED
|
@@ -20,6 +20,7 @@ const { Account } = require('../lib/account');
|
|
|
20
20
|
const { oauth2Apps, isApiBasedApp } = require('../lib/oauth2-apps');
|
|
21
21
|
const { redis, notifyQueue, submitQueue, documentsQueue, getFlowProducer } = require('../lib/db');
|
|
22
22
|
const { MessagePortWritable, pipeToMessagePort } = require('../lib/message-port-stream');
|
|
23
|
+
const { packRpcError, unpackRpcError } = require('../lib/worker-rpc-error');
|
|
23
24
|
const { getESClient } = require('../lib/document-store');
|
|
24
25
|
const settings = require('../lib/settings');
|
|
25
26
|
const msgpack = require('msgpack5')();
|
|
@@ -965,14 +966,7 @@ parentPort.on('message', message => {
|
|
|
965
966
|
clearTimeout(timer);
|
|
966
967
|
connectionHandler.callQueue.delete(message.mid);
|
|
967
968
|
if (message.error) {
|
|
968
|
-
|
|
969
|
-
if (message.code) {
|
|
970
|
-
err.code = message.code;
|
|
971
|
-
}
|
|
972
|
-
if (message.statusCode) {
|
|
973
|
-
err.statusCode = message.statusCode;
|
|
974
|
-
}
|
|
975
|
-
return reject(err);
|
|
969
|
+
return reject(unpackRpcError(message));
|
|
976
970
|
} else {
|
|
977
971
|
return resolve(message.response);
|
|
978
972
|
}
|
|
@@ -993,14 +987,7 @@ parentPort.on('message', message => {
|
|
|
993
987
|
message.message.data.raw = message.message.data.raw.length;
|
|
994
988
|
}
|
|
995
989
|
logger.error(Object.assign({ msg: 'Command failed' }, message, { err }));
|
|
996
|
-
parentPort.postMessage({
|
|
997
|
-
cmd: 'resp',
|
|
998
|
-
mid: message.mid,
|
|
999
|
-
error: err.message,
|
|
1000
|
-
code: err.code,
|
|
1001
|
-
statusCode: err.statusCode,
|
|
1002
|
-
info: err.info
|
|
1003
|
-
});
|
|
990
|
+
parentPort.postMessage(Object.assign({ cmd: 'resp', mid: message.mid }, packRpcError(err)));
|
|
1004
991
|
});
|
|
1005
992
|
}
|
|
1006
993
|
|
package/workers/submit.js
CHANGED
|
@@ -43,6 +43,7 @@ const SUBMIT_QC = (readEnvValue('EENGINE_SUBMIT_QC') && Number(readEnvValue('EEN
|
|
|
43
43
|
const SUBMIT_DELAY = getDuration(readEnvValue('EENGINE_SUBMIT_DELAY') || config.submitDelay) || null;
|
|
44
44
|
|
|
45
45
|
const { shouldDiscardJob } = require('../lib/delivery-error');
|
|
46
|
+
const { packRpcError, unpackRpcError } = require('../lib/worker-rpc-error');
|
|
46
47
|
|
|
47
48
|
let callQueue = new Map();
|
|
48
49
|
let mids = 0;
|
|
@@ -444,17 +445,7 @@ parentPort.on('message', message => {
|
|
|
444
445
|
clearTimeout(timer);
|
|
445
446
|
callQueue.delete(message.mid);
|
|
446
447
|
if (message.error) {
|
|
447
|
-
|
|
448
|
-
if (message.code) {
|
|
449
|
-
err.code = message.code;
|
|
450
|
-
}
|
|
451
|
-
if (message.statusCode) {
|
|
452
|
-
err.statusCode = message.statusCode;
|
|
453
|
-
}
|
|
454
|
-
if (message.info) {
|
|
455
|
-
err.info = message.info;
|
|
456
|
-
}
|
|
457
|
-
return reject(err);
|
|
448
|
+
return reject(unpackRpcError(message));
|
|
458
449
|
} else {
|
|
459
450
|
return resolve(message.response);
|
|
460
451
|
}
|
|
@@ -470,13 +461,7 @@ parentPort.on('message', message => {
|
|
|
470
461
|
});
|
|
471
462
|
})
|
|
472
463
|
.catch(err => {
|
|
473
|
-
parentPort.postMessage({
|
|
474
|
-
cmd: 'resp',
|
|
475
|
-
mid: message.mid,
|
|
476
|
-
error: err.message,
|
|
477
|
-
code: err.code,
|
|
478
|
-
statusCode: err.statusCode
|
|
479
|
-
});
|
|
464
|
+
parentPort.postMessage(Object.assign({ cmd: 'resp', mid: message.mid }, packRpcError(err)));
|
|
480
465
|
});
|
|
481
466
|
}
|
|
482
467
|
|