emailengine-app 2.88.0 → 2.89.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.
- package/.ncurc.js +24 -44
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +14 -0
- package/data/google-crawlers.json +1 -1
- package/data/public_suffix_list.dat +109 -8
- package/lib/license-subscription.js +17 -11
- package/lib/node-version.js +99 -12
- package/lib/settings.js +4 -1
- package/lib/tools.js +5 -4
- package/lib/ui-routes/dashboard-routes.js +4 -0
- package/lib/web-safe-html.js +50 -6
- package/list-generate.js +56 -19
- package/package.json +22 -25
- package/sbom.json +246 -837
- package/server.js +31 -31
- package/static/licenses.html +1095 -491
- package/translations/messages.pot +18 -18
- package/views/dashboard.hbs +9 -0
- package/views/upgrade.hbs +25 -0
- package/lib/net-tos-guard.js +0 -42
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
msgid ""
|
|
2
2
|
msgstr ""
|
|
3
3
|
"Content-Type: text/plain; charset=ascii\n"
|
|
4
|
-
"POT-Creation-Date: 2026-11-
|
|
4
|
+
"POT-Creation-Date: 2026-11-15 21:46+0000\n"
|
|
5
5
|
|
|
6
6
|
#: lib/autodetect-imap-settings.js:160
|
|
7
7
|
msgid ""
|
|
@@ -11,19 +11,19 @@ msgid ""
|
|
|
11
11
|
"connect your account."
|
|
12
12
|
msgstr ""
|
|
13
13
|
|
|
14
|
-
#: lib/tools.js:
|
|
14
|
+
#: lib/tools.js:1781
|
|
15
15
|
#: lib/ui-routes/unsubscribe-routes.js:34
|
|
16
16
|
#: lib/ui-routes/unsubscribe-routes.js:102
|
|
17
17
|
msgid "Invalid input"
|
|
18
18
|
msgstr ""
|
|
19
19
|
|
|
20
|
-
#: lib/tools.js:
|
|
20
|
+
#: lib/tools.js:2765
|
|
21
21
|
msgid "Signature validation failed"
|
|
22
22
|
msgstr ""
|
|
23
23
|
|
|
24
|
-
#: lib/tools.js:
|
|
25
|
-
#: lib/tools.js:
|
|
26
|
-
#: lib/tools.js:
|
|
24
|
+
#: lib/tools.js:2788
|
|
25
|
+
#: lib/tools.js:2794
|
|
26
|
+
#: lib/tools.js:2799
|
|
27
27
|
#: lib/ui-routes/account-setup.js:80
|
|
28
28
|
msgid "Invalid or expired account setup URL"
|
|
29
29
|
msgstr ""
|
|
@@ -37,7 +37,7 @@ msgstr ""
|
|
|
37
37
|
#: lib/ui-routes/account-routes.js:1360
|
|
38
38
|
#: lib/ui-routes/route-helpers.js:350
|
|
39
39
|
#: lib/ui-routes/route-helpers.js:373
|
|
40
|
-
#: workers/api.js:
|
|
40
|
+
#: workers/api.js:2050
|
|
41
41
|
msgid "Email Account Setup"
|
|
42
42
|
msgstr ""
|
|
43
43
|
|
|
@@ -108,7 +108,7 @@ msgstr ""
|
|
|
108
108
|
msgid "Temporary error, please try again"
|
|
109
109
|
msgstr ""
|
|
110
110
|
|
|
111
|
-
#: lib/ui-routes/admin-config-routes.js:
|
|
111
|
+
#: lib/ui-routes/admin-config-routes.js:196
|
|
112
112
|
msgid "Invalid API key for OpenAI"
|
|
113
113
|
msgstr ""
|
|
114
114
|
|
|
@@ -117,7 +117,7 @@ msgid "Unknown"
|
|
|
117
117
|
msgstr ""
|
|
118
118
|
|
|
119
119
|
#: lib/ui-routes/oauth-config-routes.js:273
|
|
120
|
-
#: views/config/license.hbs:
|
|
120
|
+
#: views/config/license.hbs:28
|
|
121
121
|
#: views/partials/queue_retention_note.hbs:10
|
|
122
122
|
#: views/queues/index.hbs:54
|
|
123
123
|
#: views/queues/index.hbs:78
|
|
@@ -413,7 +413,7 @@ msgstr[0] ""
|
|
|
413
413
|
msgstr[1] ""
|
|
414
414
|
|
|
415
415
|
#: views/error.hbs:6
|
|
416
|
-
#: workers/api.js:
|
|
416
|
+
#: workers/api.js:2930
|
|
417
417
|
msgid "Something went wrong"
|
|
418
418
|
msgstr ""
|
|
419
419
|
|
|
@@ -529,37 +529,37 @@ msgid ""
|
|
|
529
529
|
"received."
|
|
530
530
|
msgstr ""
|
|
531
531
|
|
|
532
|
-
#: workers/api.js:
|
|
532
|
+
#: workers/api.js:1962
|
|
533
533
|
msgid ""
|
|
534
534
|
"The sign-in was cancelled or the requested access was not granted. Open the "
|
|
535
535
|
"account setup link again to retry."
|
|
536
536
|
msgstr ""
|
|
537
537
|
|
|
538
|
-
#: workers/api.js:
|
|
538
|
+
#: workers/api.js:1971
|
|
539
539
|
msgid "Sign-in with the email provider failed: %s"
|
|
540
540
|
msgstr ""
|
|
541
541
|
|
|
542
|
-
#: workers/api.js:
|
|
542
|
+
#: workers/api.js:1975
|
|
543
543
|
msgid "Sign-in with the email provider failed: no authorization code was received"
|
|
544
544
|
msgstr ""
|
|
545
545
|
|
|
546
|
-
#: workers/api.js:
|
|
546
|
+
#: workers/api.js:1979
|
|
547
547
|
msgid "Sign-in with the email provider failed: the request state is not valid"
|
|
548
548
|
msgstr ""
|
|
549
549
|
|
|
550
|
-
#: workers/api.js:
|
|
550
|
+
#: workers/api.js:1988
|
|
551
551
|
msgid ""
|
|
552
552
|
"The account setup session has expired or was already used. Open the account "
|
|
553
553
|
"setup link again to retry."
|
|
554
554
|
msgstr ""
|
|
555
555
|
|
|
556
|
-
#: workers/api.js:
|
|
556
|
+
#: workers/api.js:1994
|
|
557
557
|
msgid ""
|
|
558
558
|
"Sign-in with the email provider failed: the stored setup session is not "
|
|
559
559
|
"valid"
|
|
560
560
|
msgstr ""
|
|
561
561
|
|
|
562
|
-
#: workers/api.js:
|
|
563
|
-
#: workers/api.js:
|
|
562
|
+
#: workers/api.js:2929
|
|
563
|
+
#: workers/api.js:3052
|
|
564
564
|
msgid "Requested page not found"
|
|
565
565
|
msgstr ""
|
package/views/dashboard.hbs
CHANGED
|
@@ -46,6 +46,15 @@
|
|
|
46
46
|
{{> ui/btn label="Add account" icon="icon-[tabler--user-plus]" overlay="#addAccount"}}
|
|
47
47
|
{{/ui/page-header}}
|
|
48
48
|
|
|
49
|
+
{{!-- Not dismissable: the next Node.js floor raise stops an instance on such a release from starting --}}
|
|
50
|
+
{{#if nodeRuntime.outsideRange}}
|
|
51
|
+
{{#> ui/alert-banner variant="warning" title="Upgrade Node.js" class="mt-6"}}
|
|
52
|
+
<p>This instance runs on Node.js {{nodeRuntime.version}}, which is outside the range EmailEngine supports
|
|
53
|
+
({{nodeRuntime.supported}}). It works for now, but a future EmailEngine release may not start on it.
|
|
54
|
+
<a href="/admin/upgrade#node" class="link link-animated">How to upgrade Node.js</a></p>
|
|
55
|
+
{{/ui/alert-banner}}
|
|
56
|
+
{{/if}}
|
|
57
|
+
|
|
49
58
|
{{#each redisWarnings}}
|
|
50
59
|
{{#> ui/stat-card variant=(eeColor color) title=title icon="icon-[tabler--alert-circle]" class="mt-6"}}
|
|
51
60
|
{{#each details}}
|
package/views/upgrade.hbs
CHANGED
|
@@ -41,3 +41,28 @@
|
|
|
41
41
|
</div>
|
|
42
42
|
</div>
|
|
43
43
|
{{/if}}
|
|
44
|
+
|
|
45
|
+
{{#unless nodeRuntime.packaged}}
|
|
46
|
+
{{#> ui/card title="Node.js" id="node" class="mt-6"}}
|
|
47
|
+
{{#if nodeRuntime.outsideRange}}
|
|
48
|
+
{{#> ui/alert-banner variant="warning" class="mb-4"}}
|
|
49
|
+
<p>This instance runs on Node.js {{nodeRuntime.version}}, which is outside the range EmailEngine supports
|
|
50
|
+
({{nodeRuntime.supported}}). Upgrade Node.js before upgrading EmailEngine.</p>
|
|
51
|
+
{{/ui/alert-banner}}
|
|
52
|
+
{{else}}
|
|
53
|
+
<p class="mb-4">This instance runs on Node.js {{nodeRuntime.version}}. EmailEngine supports {{nodeRuntime.supported}}.</p>
|
|
54
|
+
{{/if}}
|
|
55
|
+
|
|
56
|
+
{{#if isRender}}
|
|
57
|
+
<p class="mb-2">Render picks the Node.js release from the <code>engines</code> field of EmailEngine's
|
|
58
|
+
<code>package.json</code>, so a manual deploy of the latest version also moves Node.js.</p>
|
|
59
|
+
{{else}}
|
|
60
|
+
<p class="mb-2">On a Debian or Ubuntu server that installed Node.js from NodeSource, which includes the
|
|
61
|
+
DigitalOcean one-click image, log in and run:</p>
|
|
62
|
+
<pre class="ee-code-block"><code>{{#each nodeRuntime.upgradeCommands}}$ {{this}}
|
|
63
|
+
{{/each}}</code></pre>
|
|
64
|
+
<p class="mt-2">Anywhere else, install a supported release with the tool Node.js came from. The
|
|
65
|
+
EmailEngine binaries and the Docker image carry their own Node.js.</p>
|
|
66
|
+
{{/if}}
|
|
67
|
+
{{/ui/card}}
|
|
68
|
+
{{/unless}}
|
package/lib/net-tos-guard.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
// Keeps a failed type-of-service marking from ending the process.
|
|
4
|
-
//
|
|
5
|
-
// undici 7 (held there by the Node 20 floor, see .ncurc.js) calls socket.setTypeOfService() for
|
|
6
|
-
// every request on a Node that has it (24.x), unguarded, as it writes the request (client-h1.js). On macOS
|
|
7
|
-
// the underlying setsockopt() answers EINVAL once the peer has reset the connection, so a peer that
|
|
8
|
-
// went away right after accepting (a server shutting down or restarting) threw an uncaughtException
|
|
9
|
-
// in whichever thread made the request. undici 8 wraps the call itself; marking is best effort
|
|
10
|
-
// there too. EmailEngine never sets a type of service, so nothing is lost by ignoring the failure.
|
|
11
|
-
// Remove this together with the undici 8 upgrade.
|
|
12
|
-
|
|
13
|
-
const net = require('net');
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Wraps setTypeOfService() of a socket prototype so a failure of the call itself is ignored
|
|
17
|
-
* @param {Object} proto - net.Socket.prototype, or a stand-in in tests
|
|
18
|
-
* @returns {boolean} Whether the prototype was wrapped (false without the method, or done before)
|
|
19
|
-
*/
|
|
20
|
-
function guardTypeOfService(proto) {
|
|
21
|
-
const original = proto.setTypeOfService;
|
|
22
|
-
if (typeof original !== 'function' || original.tosGuarded) {
|
|
23
|
-
return false;
|
|
24
|
-
}
|
|
25
|
-
const guarded = function setTypeOfService(...args) {
|
|
26
|
-
try {
|
|
27
|
-
return original.apply(this, args);
|
|
28
|
-
} catch (err) {
|
|
29
|
-
if (err && err.syscall === 'setTypeOfService') {
|
|
30
|
-
return this;
|
|
31
|
-
}
|
|
32
|
-
throw err;
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
guarded.tosGuarded = true;
|
|
36
|
-
proto.setTypeOfService = guarded;
|
|
37
|
-
return true;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
guardTypeOfService(net.Socket.prototype);
|
|
41
|
-
|
|
42
|
-
module.exports = { guardTypeOfService };
|