emailengine-app 2.84.1 → 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.
- package/.dockerignore +6 -0
- package/.ncurc.js +5 -3
- package/.prettierignore +5 -1
- package/.prettierrc.js +2 -0
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +61 -0
- package/Dockerfile +8 -2
- package/README.md +1 -1
- package/bin/emailengine.js +444 -403
- package/copy-static-files.sh +39 -14
- package/data/google-crawlers.json +1 -1
- package/data/public_suffix_list.dat +16562 -0
- package/docker-compose.yml +1 -1
- package/eslint.config.js +81 -99
- package/lib/account/own-account-key.js +42 -0
- package/lib/account-assignment.js +1 -33
- package/lib/account.js +68 -24
- package/lib/add-trackers.js +11 -4
- package/lib/api-reference/format.js +4 -3
- package/lib/api-routes/account-routes.js +244 -26
- package/lib/api-routes/blocklist-routes.js +23 -2
- package/lib/api-routes/delivery-test-routes.js +26 -3
- package/lib/api-routes/export-routes.js +28 -2
- package/lib/api-routes/gateway-routes.js +37 -5
- package/lib/api-routes/mailbox-routes.js +41 -2
- package/lib/api-routes/message-routes.js +104 -4
- package/lib/api-routes/mint-bounds.js +11 -0
- package/lib/api-routes/oauth2-app-routes.js +48 -15
- package/lib/api-routes/outbox-routes.js +45 -11
- package/lib/api-routes/permission-map.js +12 -1
- package/lib/api-routes/route-helpers.js +125 -3
- package/lib/api-routes/settings-routes.js +23 -2
- package/lib/api-routes/submit-routes.js +338 -309
- package/lib/api-routes/template-routes.js +38 -2
- package/lib/api-routes/token-routes.js +142 -96
- package/lib/api-routes/webhook-route-routes.js +13 -2
- package/lib/auth-token.js +23 -10
- package/lib/bounce-detect.js +414 -210
- package/lib/consts.js +39 -4
- package/lib/create-imap-client.js +41 -2
- package/lib/email-client/base-client.js +30 -41
- package/lib/email-client/gmail-client.js +30 -18
- package/lib/email-client/imap/mailbox.js +13 -23
- package/lib/email-client/imap/response-metrics.js +75 -0
- package/lib/email-client/imap/subconnection.js +1 -1
- package/lib/email-client/imap-client.js +6 -3
- package/lib/email-client/message-builder.js +7 -2
- package/lib/email-client/notification-handler.js +1 -2
- package/lib/email-client/outlook/graph-api.js +17 -2
- package/lib/email-client/outlook-client.js +6 -3
- package/lib/email-client/smtp-pool-manager.js +6 -0
- package/lib/encrypt.js +9 -0
- package/lib/export.js +3 -1
- package/lib/gateway.js +2 -3
- package/lib/get-raw-email.js +4 -2
- package/lib/hapi-request-logger.js +107 -0
- package/lib/imap-proxy-auth.js +14 -1
- package/lib/imapproxy/imap-core/README.md +6 -5
- package/lib/imapproxy/imap-core/lib/commands/authenticate-plain.js +1 -0
- package/lib/imapproxy/imap-core/lib/commands/login.js +1 -0
- package/lib/imapproxy/imap-core/lib/imap-command.js +86 -43
- package/lib/imapproxy/imap-core/lib/imap-stream.js +58 -13
- package/lib/imapproxy/imap-core/lib/indexer/indexer.js +3 -1
- package/lib/mcp/listen.js +10 -1
- package/lib/mcp/tools.js +37 -8
- package/lib/notify-attachments.js +17 -0
- package/lib/oauth/external-account-config.js +3 -1
- package/lib/oauth/gmail.js +21 -48
- package/lib/oauth/mail-ru.js +5 -38
- package/lib/oauth/outlook-mailbox.js +35 -0
- package/lib/oauth/outlook.js +26 -44
- package/lib/oauth/state.js +24 -0
- package/lib/oauth2-apps.js +1 -1
- package/lib/pbkdf2-phc.js +19 -2
- package/lib/privileged-settings.js +6 -3
- package/lib/redis-scan-delete.js +15 -1
- package/lib/schemas.js +79 -33
- package/lib/settings.js +13 -1
- package/lib/smtp-auth.js +23 -0
- package/lib/sso.js +1 -1
- package/lib/swagger-options.js +1 -1
- package/lib/thread-diagnostics.js +46 -0
- package/lib/timezones.js +109 -0
- package/lib/token-permission-view.js +3 -3
- package/lib/tools.js +285 -66
- package/lib/totp.js +2 -5
- package/lib/translations.js +1 -2
- package/lib/ui-routes/account-routes.js +491 -491
- package/lib/ui-routes/account-setup.js +99 -0
- package/lib/ui-routes/admin-config-routes.js +98 -48
- package/lib/ui-routes/admin-entities-routes.js +113 -31
- package/lib/ui-routes/auth-routes.js +137 -62
- package/lib/ui-routes/connection-security-form.js +74 -0
- package/lib/ui-routes/form-lists.js +46 -0
- package/lib/ui-routes/internals-routes.js +5 -0
- package/lib/ui-routes/mcp-consent-routes.js +5 -1
- package/lib/ui-routes/oauth-config-routes.js +133 -100
- package/lib/ui-routes/route-helpers.js +19 -3
- package/lib/ui-routes/sign-in-helpers.js +59 -0
- package/lib/ui-routes/tls-config-routes.js +58 -15
- package/lib/ui-routes/unsubscribe-routes.js +6 -3
- package/lib/utils/back-off.js +82 -0
- package/lib/utils/map-concurrent.js +36 -0
- package/lib/utils/murmurhash3.js +66 -0
- package/lib/utils/network.js +28 -0
- package/lib/utils/provider-id.js +27 -0
- package/lib/utils/public-suffix.js +122 -0
- package/lib/utils/random-id.js +26 -0
- package/lib/utils/require-tls.js +33 -0
- package/lib/utils/version.js +74 -0
- package/lib/web-safe-html.js +5 -6
- package/lib/webhook-penalty.js +75 -0
- package/lib/webhook-routing.js +49 -2
- package/lib/webhooks.js +41 -6
- package/package.json +37 -39
- package/sbom.json +7980 -1
- package/server.js +659 -455
- package/static/js/ace/ace.js +1 -1
- package/static/js/ace/mode-handlebars.js +1 -1
- package/static/js/ace/mode-html.js +1 -1
- package/static/js/ace/mode-javascript.js +1 -1
- package/static/js/ace/mode-markdown.js +1 -1
- package/static/js/ace/worker-html.js +1 -1
- package/static/js/ace/worker-javascript.js +1 -1
- package/static/js/ace/worker-json.js +1 -1
- package/static/js/ee-client.js +5 -0
- package/static/licenses.html +191 -1016
- package/translations/messages.pot +70 -71
- package/views/account/security.hbs +10 -0
- package/views/accounts/account.hbs +11 -11
- package/views/accounts/edit.hbs +6 -2
- package/views/config/ai.hbs +1 -1
- package/views/config/security.hbs +2 -2
- package/views/config/service.hbs +3 -0
- package/views/internals/index.hbs +8 -0
- package/views/partials/gateway_form.hbs +3 -1
- package/views/partials/webhook_form.hbs +1 -1
- package/views/suppression-lists/index.hbs +1 -1
- package/workers/api.js +780 -585
- package/workers/export.js +1 -1
- package/workers/submit.js +1 -1
- package/workers/webhooks.js +54 -34
- package/config/test.toml +0 -46
- package/install.sh +0 -428
- package/setup-production.sh +0 -215
- package/systemd/emailengine.service +0 -97
- package/systemd/nginx-proxy.conf +0 -77
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
msgid ""
|
|
2
2
|
msgstr ""
|
|
3
3
|
"Content-Type: text/plain; charset=ascii\n"
|
|
4
|
-
"POT-Creation-Date: 2026-10-
|
|
4
|
+
"POT-Creation-Date: 2026-10-20 18:02+0000\n"
|
|
5
5
|
|
|
6
6
|
#: lib/autodetect-imap-settings.js:160
|
|
7
7
|
msgid ""
|
|
@@ -11,115 +11,114 @@ msgid ""
|
|
|
11
11
|
"connect your account."
|
|
12
12
|
msgstr ""
|
|
13
13
|
|
|
14
|
-
#: lib/tools.js:
|
|
15
|
-
#: lib/ui-routes/unsubscribe-routes.js:
|
|
16
|
-
#: lib/ui-routes/unsubscribe-routes.js:
|
|
14
|
+
#: lib/tools.js:1746
|
|
15
|
+
#: lib/ui-routes/unsubscribe-routes.js:34
|
|
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:2746
|
|
21
21
|
msgid "Signature validation failed"
|
|
22
22
|
msgstr ""
|
|
23
23
|
|
|
24
|
-
#: lib/tools.js:
|
|
25
|
-
#: lib/tools.js:
|
|
26
|
-
#: lib/tools.js:
|
|
27
|
-
#: lib/ui-routes/account-
|
|
24
|
+
#: lib/tools.js:2769
|
|
25
|
+
#: lib/tools.js:2775
|
|
26
|
+
#: lib/tools.js:2780
|
|
27
|
+
#: lib/ui-routes/account-setup.js:80
|
|
28
28
|
msgid "Invalid or expired account setup URL"
|
|
29
29
|
msgstr ""
|
|
30
30
|
|
|
31
|
-
#: lib/ui-routes/account-routes.js:
|
|
32
|
-
#: lib/ui-routes/account-routes.js:
|
|
33
|
-
#: lib/ui-routes/account-routes.js:849
|
|
34
|
-
#: lib/ui-routes/account-routes.js:926
|
|
31
|
+
#: lib/ui-routes/account-routes.js:229
|
|
32
|
+
#: lib/ui-routes/account-routes.js:787
|
|
35
33
|
#: lib/ui-routes/account-routes.js:939
|
|
36
|
-
#: lib/ui-routes/account-routes.js:
|
|
37
|
-
#: lib/ui-routes/account-routes.js:
|
|
38
|
-
#: lib/ui-routes/account-routes.js:
|
|
34
|
+
#: lib/ui-routes/account-routes.js:952
|
|
35
|
+
#: lib/ui-routes/account-routes.js:999
|
|
36
|
+
#: lib/ui-routes/account-routes.js:1208
|
|
37
|
+
#: lib/ui-routes/account-routes.js:1360
|
|
39
38
|
#: lib/ui-routes/route-helpers.js:350
|
|
40
|
-
#:
|
|
41
|
-
#: workers/api.js:
|
|
39
|
+
#: lib/ui-routes/route-helpers.js:373
|
|
40
|
+
#: workers/api.js:2411
|
|
42
41
|
msgid "Email Account Setup"
|
|
43
42
|
msgstr ""
|
|
44
43
|
|
|
45
|
-
#: lib/ui-routes/account-routes.js:
|
|
46
|
-
|
|
47
|
-
#: lib/ui-routes/unsubscribe-routes.js:71
|
|
48
|
-
msgid "Invalid request. Check your input and try again."
|
|
44
|
+
#: lib/ui-routes/account-routes.js:369
|
|
45
|
+
msgid "Too many attempts for this setup link. Request a new setup link to continue."
|
|
49
46
|
msgstr ""
|
|
50
47
|
|
|
51
|
-
#: lib/ui-routes/account-routes.js:
|
|
52
|
-
|
|
48
|
+
#: lib/ui-routes/account-routes.js:812
|
|
49
|
+
#: lib/ui-routes/account-routes.js:846
|
|
50
|
+
#: lib/ui-routes/unsubscribe-routes.js:74
|
|
51
|
+
msgid "Invalid request. Check your input and try again."
|
|
53
52
|
msgstr ""
|
|
54
53
|
|
|
55
|
-
#: lib/ui-routes/account-routes.js:
|
|
56
|
-
#: lib/ui-routes/account-routes.js:
|
|
54
|
+
#: lib/ui-routes/account-routes.js:986
|
|
55
|
+
#: lib/ui-routes/account-routes.js:1343
|
|
57
56
|
msgid "Couldn't set up account. Try again."
|
|
58
57
|
msgstr ""
|
|
59
58
|
|
|
60
|
-
#: lib/ui-routes/account-routes.js:
|
|
61
|
-
#: lib/ui-routes/account-routes.js:
|
|
62
|
-
#: lib/ui-routes/admin-entities-routes.js:
|
|
59
|
+
#: lib/ui-routes/account-routes.js:1076
|
|
60
|
+
#: lib/ui-routes/account-routes.js:1116
|
|
61
|
+
#: lib/ui-routes/admin-entities-routes.js:1996
|
|
63
62
|
msgid "Server hostname was not found"
|
|
64
63
|
msgstr ""
|
|
65
64
|
|
|
66
|
-
#: lib/ui-routes/account-routes.js:
|
|
67
|
-
#: lib/ui-routes/account-routes.js:
|
|
68
|
-
#: lib/ui-routes/admin-entities-routes.js:
|
|
65
|
+
#: lib/ui-routes/account-routes.js:1079
|
|
66
|
+
#: lib/ui-routes/account-routes.js:1119
|
|
67
|
+
#: lib/ui-routes/admin-entities-routes.js:1999
|
|
69
68
|
msgid "Invalid username or password"
|
|
70
69
|
msgstr ""
|
|
71
70
|
|
|
72
|
-
#: lib/ui-routes/account-routes.js:
|
|
73
|
-
#: lib/ui-routes/account-routes.js:
|
|
74
|
-
#: lib/ui-routes/admin-entities-routes.js:
|
|
71
|
+
#: lib/ui-routes/account-routes.js:1084
|
|
72
|
+
#: lib/ui-routes/account-routes.js:1136
|
|
73
|
+
#: lib/ui-routes/admin-entities-routes.js:2016
|
|
75
74
|
msgid "Connection timed out"
|
|
76
75
|
msgstr ""
|
|
77
76
|
|
|
78
|
-
#: lib/ui-routes/account-routes.js:
|
|
79
|
-
#: lib/ui-routes/account-routes.js:
|
|
80
|
-
#: lib/ui-routes/admin-entities-routes.js:
|
|
77
|
+
#: lib/ui-routes/account-routes.js:1090
|
|
78
|
+
#: lib/ui-routes/account-routes.js:1139
|
|
79
|
+
#: lib/ui-routes/admin-entities-routes.js:2019
|
|
81
80
|
msgid "Could not connect to server"
|
|
82
81
|
msgstr ""
|
|
83
82
|
|
|
84
|
-
#: lib/ui-routes/account-routes.js:
|
|
85
|
-
#: lib/ui-routes/account-routes.js:
|
|
86
|
-
#: lib/ui-routes/account-routes.js:
|
|
87
|
-
#: lib/ui-routes/account-routes.js:
|
|
88
|
-
#: lib/ui-routes/admin-entities-routes.js:
|
|
89
|
-
#: lib/ui-routes/admin-entities-routes.js:
|
|
83
|
+
#: lib/ui-routes/account-routes.js:1103
|
|
84
|
+
#: lib/ui-routes/account-routes.js:1107
|
|
85
|
+
#: lib/ui-routes/account-routes.js:1128
|
|
86
|
+
#: lib/ui-routes/account-routes.js:1132
|
|
87
|
+
#: lib/ui-routes/admin-entities-routes.js:2008
|
|
88
|
+
#: lib/ui-routes/admin-entities-routes.js:2012
|
|
90
89
|
msgid "TLS protocol error"
|
|
91
90
|
msgstr ""
|
|
92
91
|
|
|
93
|
-
#: lib/ui-routes/account-routes.js:
|
|
94
|
-
#: lib/ui-routes/admin-entities-routes.js:
|
|
92
|
+
#: lib/ui-routes/account-routes.js:1122
|
|
93
|
+
#: lib/ui-routes/admin-entities-routes.js:2002
|
|
95
94
|
msgid "Authentication credentials were not provided"
|
|
96
95
|
msgstr ""
|
|
97
96
|
|
|
98
|
-
#: lib/ui-routes/account-routes.js:
|
|
99
|
-
#: lib/ui-routes/admin-entities-routes.js:
|
|
97
|
+
#: lib/ui-routes/account-routes.js:1125
|
|
98
|
+
#: lib/ui-routes/admin-entities-routes.js:2005
|
|
100
99
|
msgid "OAuth2 authentication failed"
|
|
101
100
|
msgstr ""
|
|
102
101
|
|
|
103
|
-
#: lib/ui-routes/account-routes.js:
|
|
104
|
-
#: lib/ui-routes/admin-entities-routes.js:
|
|
102
|
+
#: lib/ui-routes/account-routes.js:1142
|
|
103
|
+
#: lib/ui-routes/admin-entities-routes.js:2022
|
|
105
104
|
msgid "Unexpected server response"
|
|
106
105
|
msgstr ""
|
|
107
106
|
|
|
108
|
-
#: lib/ui-routes/account-
|
|
107
|
+
#: lib/ui-routes/account-setup.js:68
|
|
109
108
|
msgid "Temporary error, please try again"
|
|
110
109
|
msgstr ""
|
|
111
110
|
|
|
112
|
-
#: lib/ui-routes/admin-config-routes.js:
|
|
111
|
+
#: lib/ui-routes/admin-config-routes.js:196
|
|
113
112
|
msgid "Invalid API key for OpenAI"
|
|
114
113
|
msgstr ""
|
|
115
114
|
|
|
116
|
-
#: lib/ui-routes/oauth-config-routes.js:
|
|
115
|
+
#: lib/ui-routes/oauth-config-routes.js:266
|
|
117
116
|
msgid "Unknown"
|
|
118
117
|
msgstr ""
|
|
119
118
|
|
|
120
|
-
#: lib/ui-routes/oauth-config-routes.js:
|
|
119
|
+
#: lib/ui-routes/oauth-config-routes.js:273
|
|
121
120
|
#: views/config/license.hbs:20
|
|
122
|
-
#: views/partials/queue_retention_note.hbs:
|
|
121
|
+
#: views/partials/queue_retention_note.hbs:10
|
|
123
122
|
#: views/queues/index.hbs:54
|
|
124
123
|
#: views/queues/index.hbs:78
|
|
125
124
|
msgid "%d day"
|
|
@@ -127,7 +126,7 @@ msgid_plural "%d days"
|
|
|
127
126
|
msgstr[0] ""
|
|
128
127
|
msgstr[1] ""
|
|
129
128
|
|
|
130
|
-
#: lib/ui-routes/oauth-config-routes.js:
|
|
129
|
+
#: lib/ui-routes/oauth-config-routes.js:275
|
|
131
130
|
msgid "Indefinite"
|
|
132
131
|
msgstr ""
|
|
133
132
|
|
|
@@ -161,15 +160,15 @@ msgstr ""
|
|
|
161
160
|
msgid "Using credentials from \"%s\""
|
|
162
161
|
msgstr ""
|
|
163
162
|
|
|
164
|
-
#: lib/ui-routes/unsubscribe-routes.js:
|
|
165
|
-
#: lib/ui-routes/unsubscribe-routes.js:
|
|
166
|
-
#: lib/ui-routes/unsubscribe-routes.js:
|
|
167
|
-
#: lib/ui-routes/unsubscribe-routes.js:
|
|
163
|
+
#: lib/ui-routes/unsubscribe-routes.js:44
|
|
164
|
+
#: lib/ui-routes/unsubscribe-routes.js:170
|
|
165
|
+
#: lib/ui-routes/unsubscribe-routes.js:200
|
|
166
|
+
#: lib/ui-routes/unsubscribe-routes.js:245
|
|
168
167
|
msgid "Subscription Management"
|
|
169
168
|
msgstr ""
|
|
170
169
|
|
|
171
|
-
#: lib/ui-routes/unsubscribe-routes.js:
|
|
172
|
-
#: lib/ui-routes/unsubscribe-routes.js:
|
|
170
|
+
#: lib/ui-routes/unsubscribe-routes.js:189
|
|
171
|
+
#: lib/ui-routes/unsubscribe-routes.js:238
|
|
173
172
|
msgid "Couldn't process request. Try again."
|
|
174
173
|
msgstr ""
|
|
175
174
|
|
|
@@ -414,7 +413,7 @@ msgstr[0] ""
|
|
|
414
413
|
msgstr[1] ""
|
|
415
414
|
|
|
416
415
|
#: views/error.hbs:6
|
|
417
|
-
#: workers/api.js:
|
|
416
|
+
#: workers/api.js:3271
|
|
418
417
|
msgid "Something went wrong"
|
|
419
418
|
msgstr ""
|
|
420
419
|
|
|
@@ -530,37 +529,37 @@ msgid ""
|
|
|
530
529
|
"received."
|
|
531
530
|
msgstr ""
|
|
532
531
|
|
|
533
|
-
#: workers/api.js:
|
|
532
|
+
#: workers/api.js:2325
|
|
534
533
|
msgid ""
|
|
535
534
|
"The sign-in was cancelled or the requested access was not granted. Open the "
|
|
536
535
|
"account setup link again to retry."
|
|
537
536
|
msgstr ""
|
|
538
537
|
|
|
539
|
-
#: workers/api.js:
|
|
538
|
+
#: workers/api.js:2334
|
|
540
539
|
msgid "Sign-in with the email provider failed: %s"
|
|
541
540
|
msgstr ""
|
|
542
541
|
|
|
543
|
-
#: workers/api.js:
|
|
542
|
+
#: workers/api.js:2338
|
|
544
543
|
msgid "Sign-in with the email provider failed: no authorization code was received"
|
|
545
544
|
msgstr ""
|
|
546
545
|
|
|
547
|
-
#: workers/api.js:
|
|
546
|
+
#: workers/api.js:2342
|
|
548
547
|
msgid "Sign-in with the email provider failed: the request state is not valid"
|
|
549
548
|
msgstr ""
|
|
550
549
|
|
|
551
|
-
#: workers/api.js:
|
|
550
|
+
#: workers/api.js:2351
|
|
552
551
|
msgid ""
|
|
553
552
|
"The account setup session has expired or was already used. Open the account "
|
|
554
553
|
"setup link again to retry."
|
|
555
554
|
msgstr ""
|
|
556
555
|
|
|
557
|
-
#: workers/api.js:
|
|
556
|
+
#: workers/api.js:2357
|
|
558
557
|
msgid ""
|
|
559
558
|
"Sign-in with the email provider failed: the stored setup session is not "
|
|
560
559
|
"valid"
|
|
561
560
|
msgstr ""
|
|
562
561
|
|
|
563
|
-
#: workers/api.js:
|
|
564
|
-
#: workers/api.js:
|
|
562
|
+
#: workers/api.js:3270
|
|
563
|
+
#: workers/api.js:3387
|
|
565
564
|
msgid "Requested page not found"
|
|
566
565
|
msgstr ""
|
|
@@ -181,6 +181,16 @@
|
|
|
181
181
|
{{/ui/form-field}}
|
|
182
182
|
</div>
|
|
183
183
|
|
|
184
|
+
<div>
|
|
185
|
+
{{!-- The route verifies this server-side: switching the second factor on ends every
|
|
186
|
+
other session, so a live session alone must not be able to do it --}}
|
|
187
|
+
{{#> ui/form-field id="tfa-enable-password" label="Current password"}}
|
|
188
|
+
<input type="password" class="input" id="tfa-enable-password" name="password" maxlength="256"
|
|
189
|
+
autocomplete="current-password" required />
|
|
190
|
+
<span class="helper-text">Enter your password to confirm this change.</span>
|
|
191
|
+
{{/ui/form-field}}
|
|
192
|
+
</div>
|
|
193
|
+
|
|
184
194
|
</div>
|
|
185
195
|
<div class="modal-footer">
|
|
186
196
|
|
|
@@ -989,7 +989,7 @@ submitLabel="Delete account"}}
|
|
|
989
989
|
const reconnectAccount = async () => {
|
|
990
990
|
const account = document.getElementById('account-id').value.trim();
|
|
991
991
|
|
|
992
|
-
const data = await uiPostJson(`/admin/accounts/${account}/reconnect`, {
|
|
992
|
+
const data = await uiPostJson(`/admin/accounts/${encodeURIComponent(account)}/reconnect`, {
|
|
993
993
|
reconnect: true
|
|
994
994
|
});
|
|
995
995
|
|
|
@@ -1018,7 +1018,7 @@ submitLabel="Delete account"}}
|
|
|
1018
1018
|
|
|
1019
1019
|
uiButtonBusy(requestResumeElm, true);
|
|
1020
1020
|
const account = document.getElementById('account-id').value.trim();
|
|
1021
|
-
uiPostJson(`/admin/accounts/${account}/resume`, {}).then(data => {
|
|
1021
|
+
uiPostJson(`/admin/accounts/${encodeURIComponent(account)}/resume`, {}).then(data => {
|
|
1022
1022
|
if (data.success) {
|
|
1023
1023
|
// Both the button and the alert explaining why it was there belong to the
|
|
1024
1024
|
// switched-off state, so reload rather than leave either behind. No toast:
|
|
@@ -1038,7 +1038,7 @@ submitLabel="Delete account"}}
|
|
|
1038
1038
|
const syncAccount = async () => {
|
|
1039
1039
|
const account = document.getElementById('account-id').value.trim();
|
|
1040
1040
|
|
|
1041
|
-
const data = await uiPostJson(`/admin/accounts/${account}/sync`, {
|
|
1041
|
+
const data = await uiPostJson(`/admin/accounts/${encodeURIComponent(account)}/sync`, {
|
|
1042
1042
|
sync: true
|
|
1043
1043
|
});
|
|
1044
1044
|
|
|
@@ -1059,7 +1059,7 @@ submitLabel="Delete account"}}
|
|
|
1059
1059
|
let current = document.getElementById('logs-info').dataset.logs;
|
|
1060
1060
|
let toggled = current === 'enabled' ? false : true;
|
|
1061
1061
|
|
|
1062
|
-
const data = await uiPostJson(`/admin/accounts/${account}/logs`, {
|
|
1062
|
+
const data = await uiPostJson(`/admin/accounts/${encodeURIComponent(account)}/logs`, {
|
|
1063
1063
|
enabled: toggled
|
|
1064
1064
|
});
|
|
1065
1065
|
if (data.enabled) {
|
|
@@ -1102,7 +1102,7 @@ submitLabel="Delete account"}}
|
|
|
1102
1102
|
e.preventDefault();
|
|
1103
1103
|
const account = document.getElementById('account-id').value.trim();
|
|
1104
1104
|
uiBusyAction(flushLogsElm, () =>
|
|
1105
|
-
uiPostJson(`/admin/accounts/${account}/logs-flush`).then(data => {
|
|
1105
|
+
uiPostJson(`/admin/accounts/${encodeURIComponent(account)}/logs-flush`).then(data => {
|
|
1106
1106
|
if (data.success) {
|
|
1107
1107
|
markLogsEmpty();
|
|
1108
1108
|
}
|
|
@@ -1118,7 +1118,7 @@ submitLabel="Delete account"}}
|
|
|
1118
1118
|
if (!indicator) return;
|
|
1119
1119
|
|
|
1120
1120
|
try {
|
|
1121
|
-
const res = await fetch(`/admin/accounts/${account}/exports?pageSize=1`);
|
|
1121
|
+
const res = await fetch(`/admin/accounts/${encodeURIComponent(account)}/exports?pageSize=1`);
|
|
1122
1122
|
if (!res.ok) {
|
|
1123
1123
|
indicator.classList.add('hidden');
|
|
1124
1124
|
return;
|
|
@@ -1201,7 +1201,7 @@ submitLabel="Delete account"}}
|
|
|
1201
1201
|
|
|
1202
1202
|
const account = document.getElementById('account-id').value.trim();
|
|
1203
1203
|
try {
|
|
1204
|
-
const res = await fetch(`/admin/accounts/${account}/export/${currentExportId}`);
|
|
1204
|
+
const res = await fetch(`/admin/accounts/${encodeURIComponent(account)}/export/${currentExportId}`);
|
|
1205
1205
|
if (!res.ok) {
|
|
1206
1206
|
throw new Error(`HTTP error! status: ${res.status}`);
|
|
1207
1207
|
}
|
|
@@ -1258,7 +1258,7 @@ submitLabel="Delete account"}}
|
|
|
1258
1258
|
stopPolling();
|
|
1259
1259
|
document.getElementById('export-download-section').classList.remove('hidden');
|
|
1260
1260
|
document.getElementById('export-download-link').href =
|
|
1261
|
-
`/admin/accounts/${account}/export/${currentExportId}/download`;
|
|
1261
|
+
`/admin/accounts/${encodeURIComponent(account)}/export/${currentExportId}/download`;
|
|
1262
1262
|
progressBar.style.width = '100%';
|
|
1263
1263
|
progressBar.setAttribute('aria-valuenow', 100);
|
|
1264
1264
|
progressBar.classList.remove('bg-info');
|
|
@@ -1280,7 +1280,7 @@ submitLabel="Delete account"}}
|
|
|
1280
1280
|
async function checkExistingExport() {
|
|
1281
1281
|
const account = document.getElementById('account-id').value.trim();
|
|
1282
1282
|
try {
|
|
1283
|
-
const res = await fetch(`/admin/accounts/${account}/exports?pageSize=1`);
|
|
1283
|
+
const res = await fetch(`/admin/accounts/${encodeURIComponent(account)}/exports?pageSize=1`);
|
|
1284
1284
|
if (!res.ok) {
|
|
1285
1285
|
showFormView();
|
|
1286
1286
|
return;
|
|
@@ -1340,7 +1340,7 @@ submitLabel="Delete account"}}
|
|
|
1340
1340
|
// would run two exports and leave the first one with nothing pointing at it.
|
|
1341
1341
|
uiBusyAction(exportStartBtn, async () => {
|
|
1342
1342
|
try {
|
|
1343
|
-
const data = await uiPostJson(`/admin/accounts/${account}/export`, {
|
|
1343
|
+
const data = await uiPostJson(`/admin/accounts/${encodeURIComponent(account)}/export`, {
|
|
1344
1344
|
startDate: startDate + 'T00:00:00Z',
|
|
1345
1345
|
endDate: endDate + 'T23:59:59Z',
|
|
1346
1346
|
includeAttachments
|
|
@@ -1378,7 +1378,7 @@ submitLabel="Delete account"}}
|
|
|
1378
1378
|
|
|
1379
1379
|
try {
|
|
1380
1380
|
// the crumb travels in the header: the route validates DELETE in restful mode
|
|
1381
|
-
const res = await fetch(`/admin/accounts/${account}/export/${currentExportId}`, {
|
|
1381
|
+
const res = await fetch(`/admin/accounts/${encodeURIComponent(account)}/export/${currentExportId}`, {
|
|
1382
1382
|
method: 'DELETE',
|
|
1383
1383
|
headers: { 'X-CSRF-Token': document.getElementById('crumb').value }
|
|
1384
1384
|
});
|
package/views/accounts/edit.hbs
CHANGED
|
@@ -43,7 +43,9 @@
|
|
|
43
43
|
{{> ui/form-field id="imap_host" label="Hostname" value=values.imap_host error=errors.imap_host lpignore=true required=true}}
|
|
44
44
|
{{> ui/form-field id="imap_port" type="number" label="Port" value=values.imap_port error=errors.imap_port lpignore=true required=true}}
|
|
45
45
|
|
|
46
|
-
{{> ui/checkbox id="imap_secure" label="Use direct TLS" checked=values.imap_secure error=errors.imap_secure tooltip="Usually enabled for port 993. When disabled, EmailEngine
|
|
46
|
+
{{> ui/checkbox id="imap_secure" label="Use direct TLS" checked=values.imap_secure error=errors.imap_secure tooltip="Usually enabled for port 993. When disabled, EmailEngine upgrades the connection with STARTTLS."}}
|
|
47
|
+
|
|
48
|
+
{{> ui/checkbox id="imap_requireTLS" label="Require STARTTLS" checked=values.imap_requireTLS error=errors.imap_requireTLS tooltip="When direct TLS is off, fail the connection instead of continuing in cleartext if the server does not offer STARTTLS or the upgrade fails. Disable only for a server on a trusted network that has no TLS at all."}}
|
|
47
49
|
|
|
48
50
|
{{> 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."}}
|
|
49
51
|
|
|
@@ -92,7 +94,9 @@
|
|
|
92
94
|
{{> ui/form-field id="smtp_host" label="Hostname" value=values.smtp_host error=errors.smtp_host lpignore=true required=true}}
|
|
93
95
|
{{> ui/form-field id="smtp_port" type="number" label="Port" value=values.smtp_port error=errors.smtp_port lpignore=true required=true}}
|
|
94
96
|
|
|
95
|
-
{{> ui/checkbox id="smtp_secure" label="Use direct TLS" checked=values.smtp_secure error=errors.smtp_secure tooltip="Usually enabled for port 465. When disabled, EmailEngine
|
|
97
|
+
{{> ui/checkbox id="smtp_secure" label="Use direct TLS" checked=values.smtp_secure error=errors.smtp_secure tooltip="Usually enabled for port 465. When disabled, EmailEngine upgrades the connection with STARTTLS."}}
|
|
98
|
+
|
|
99
|
+
{{> ui/checkbox id="smtp_requireTLS" label="Require STARTTLS" checked=values.smtp_requireTLS error=errors.smtp_requireTLS tooltip="When direct TLS is off, fail the connection instead of continuing in cleartext if the server does not offer STARTTLS or the upgrade fails. Disable only for a server on a trusted network that has no TLS at all."}}
|
|
96
100
|
|
|
97
101
|
{{> 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."}}
|
|
98
102
|
|
package/views/config/ai.hbs
CHANGED
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
|
|
107
107
|
<div>
|
|
108
108
|
<div class="text-base-content/60 float-right code-link">[<a
|
|
109
|
-
href="https://learn.emailengine.app/docs/
|
|
109
|
+
href="https://learn.emailengine.app/docs/webhooks/pre-processing" target="_blank"
|
|
110
110
|
rel="noopener noreferrer" referrerpolicy="no-referrer"
|
|
111
111
|
class="link link-animated">documentation</a>]
|
|
112
112
|
|
|
@@ -70,13 +70,13 @@
|
|
|
70
70
|
</div>
|
|
71
71
|
|
|
72
72
|
<div>
|
|
73
|
-
{{> ui/setting-ref name="EENGINE_SECRET" href="https://learn.emailengine.app/docs/
|
|
73
|
+
{{> ui/setting-ref name="EENGINE_SECRET" href="https://learn.emailengine.app/docs/deployment/encryption"}}
|
|
74
74
|
|
|
75
75
|
{{#> ui/checkbox id="encryption" label="Data Encryption" checked=encryption disabled=true}}
|
|
76
76
|
{{> ui/badge label=(when encryption "enabled" "disabled") variant=(when encryption "success" "error")}}
|
|
77
77
|
{{/ui/checkbox}}
|
|
78
78
|
<span class="helper-text">Set <code>EENGINE_SECRET</code> environment variable at startup to enable. <a
|
|
79
|
-
href="https://learn.emailengine.app/docs/
|
|
79
|
+
href="https://learn.emailengine.app/docs/deployment/encryption" target="_blank"
|
|
80
80
|
rel="noopener noreferrer" referrerpolicy="no-referrer" class="link link-animated">Learn
|
|
81
81
|
more</a></span>
|
|
82
82
|
</div>
|
package/views/config/service.hbs
CHANGED
|
@@ -33,6 +33,9 @@
|
|
|
33
33
|
{{#> ui/form-field id="settingsServiceTimezone" label="Timezone" error=errors.timezone}}
|
|
34
34
|
<select id="settingsServiceTimezone" class="select max-w-md{{#if errors.timezone}} is-invalid{{/if}}"
|
|
35
35
|
name="timezone">
|
|
36
|
+
{{#unless values.timezone}}
|
|
37
|
+
<option value="" selected>Not set</option>
|
|
38
|
+
{{/unless}}
|
|
36
39
|
{{#each timezones}}
|
|
37
40
|
<option value="{{timezone}}" {{#if selected}}selected{{/if}}>{{name}}</option>
|
|
38
41
|
{{/each}}
|
|
@@ -58,6 +58,7 @@
|
|
|
58
58
|
<th>ID</th>
|
|
59
59
|
<th>Uptime</th>
|
|
60
60
|
<th class="text-end">Memory</th>
|
|
61
|
+
<th class="text-end" title="Longest event loop delay over the last 15 seconds">Event loop</th>
|
|
61
62
|
{{#if showAccounts}}
|
|
62
63
|
<th class="text-end">Accounts</th>
|
|
63
64
|
{{/if}}
|
|
@@ -99,6 +100,13 @@
|
|
|
99
100
|
{{heapUsed}}
|
|
100
101
|
{{/if}}
|
|
101
102
|
</td>
|
|
103
|
+
<td class="text-end" data-label="Event loop">
|
|
104
|
+
{{#if eventLoopDelayMax includeZero=true}}
|
|
105
|
+
{{formatInteger eventLoopDelayMax userLocale}} ms
|
|
106
|
+
{{else}}
|
|
107
|
+
<span class="text-base-content/40">-</span>
|
|
108
|
+
{{/if}}
|
|
109
|
+
</td>
|
|
102
110
|
{{#if ../showAccounts}}
|
|
103
111
|
<td class="text-end" data-label="Accounts">
|
|
104
112
|
{{#if accounts}}
|
|
@@ -13,6 +13,8 @@
|
|
|
13
13
|
|
|
14
14
|
{{> ui/form-field id="port" type="number" label="Port" value=values.port error=errors.port lpignore=true placeholder="587" required=true hint="Common ports: 25 or 587 for STARTTLS, 465 for direct TLS."}}
|
|
15
15
|
|
|
16
|
-
{{> ui/checkbox id="secure" label="Use direct TLS" checked=values.secure error=errors.secure tooltip="Usually enabled for port 465. When disabled, EmailEngine
|
|
16
|
+
{{> ui/checkbox id="secure" label="Use direct TLS" checked=values.secure error=errors.secure tooltip="Usually enabled for port 465. When disabled, EmailEngine upgrades the connection with STARTTLS."}}
|
|
17
|
+
|
|
18
|
+
{{> ui/checkbox id="requireTLS" label="Require STARTTLS" checked=values.requireTLS error=errors.requireTLS tooltip="When direct TLS is off, fail the connection instead of continuing in cleartext if the server does not offer STARTTLS or the upgrade fails. Disable only for a relay on a trusted network that has no TLS at all."}}
|
|
17
19
|
|
|
18
20
|
</div>
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
|
|
28
28
|
<div>
|
|
29
29
|
<div class="text-base-content/60 float-right code-link">[<a
|
|
30
|
-
href="https://learn.emailengine.app/docs/
|
|
30
|
+
href="https://learn.emailengine.app/docs/webhooks/pre-processing" target="_blank" rel="noopener noreferrer"
|
|
31
31
|
referrerpolicy="no-referrer" class="link link-animated">documentation</a>]</div>
|
|
32
32
|
<label class="label-text" for="editor-fn">Filter function</label>
|
|
33
33
|
<div class="mb-2 leading-tight">
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
<em>List-Unsubscribe</em> link in emails opens. Use it to preview the page or send the
|
|
62
62
|
link to a recipient who wants to re-subscribe themselves.
|
|
63
63
|
</p>
|
|
64
|
-
<p class="mb-0"><a href="https://learn.emailengine.app/docs/
|
|
64
|
+
<p class="mb-0"><a href="https://learn.emailengine.app/docs/sending/deliverability/suppression-lists" target="_blank"
|
|
65
65
|
rel="noopener noreferrer" referrerpolicy="no-referrer" class="link link-animated">Learn more about virtual
|
|
66
66
|
lists and sending with a listId</a>.</p>
|
|
67
67
|
</div>
|