emailengine-app 2.82.1 → 2.83.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/.ncurc.js +8 -1
  2. package/.release-please-manifest.json +1 -1
  3. package/CHANGELOG.md +25 -0
  4. package/data/google-crawlers.json +1 -1
  5. package/lib/account.js +16 -3
  6. package/lib/api-routes/account-routes.js +8 -6
  7. package/lib/api-routes/blocklist-routes.js +4 -4
  8. package/lib/api-routes/oauth2-app-routes.js +5 -2
  9. package/lib/api-routes/route-helpers.js +28 -0
  10. package/lib/api-routes/submit-routes.js +6 -5
  11. package/lib/bounce-detect.js +4 -2
  12. package/lib/egress-filter.js +8 -3
  13. package/lib/email-client/gmail-client.js +3 -1
  14. package/lib/email-client/imap-client.js +2 -1
  15. package/lib/email-client/outlook-client.js +106 -47
  16. package/lib/email-client/outlook-fallback-poll.js +30 -0
  17. package/lib/enum-descriptions.js +3 -1
  18. package/lib/imapproxy/imap-core/README.md +1 -0
  19. package/lib/imapproxy/imap-core/lib/commands/authenticate-plain.js +11 -1
  20. package/lib/imapproxy/proxy-handoff.js +6 -3
  21. package/lib/imapproxy/response-error.js +14 -1
  22. package/lib/oauth/gcp-metadata.js +222 -0
  23. package/lib/oauth/gmail.js +115 -20
  24. package/lib/oauth/mail-ru.js +10 -4
  25. package/lib/oauth/outlook.js +11 -4
  26. package/lib/oauth/token-fetch.js +4 -2
  27. package/lib/oauth/verify-app.js +120 -32
  28. package/lib/oauth2-apps.js +46 -12
  29. package/lib/schemas.js +60 -18
  30. package/lib/tools.js +52 -2
  31. package/lib/ui-routes/admin-entities-routes.js +2 -2
  32. package/lib/ui-routes/auth-routes.js +4 -1
  33. package/lib/ui-routes/gmail-service-auth.js +64 -0
  34. package/lib/ui-routes/oauth-config-routes.js +8 -16
  35. package/lib/ui-routes/outlook-subscription-view.js +36 -0
  36. package/lib/ui-routes/route-helpers.js +2 -14
  37. package/lib/ui-routes/suppression-list-routes.js +2 -2
  38. package/lib/utils/network.js +29 -0
  39. package/lib/webhook-request.js +12 -4
  40. package/lib/webhook-routing.js +34 -11
  41. package/package.json +11 -11
  42. package/sbom.json +1 -1
  43. package/server.js +8 -2
  44. package/static/css/flyonui.css +1 -1
  45. package/static/js/app.js +2 -1
  46. package/static/js/ui.js +6 -1
  47. package/static/licenses.html +18 -28
  48. package/translations/messages.pot +73 -73
  49. package/views/accounts/account.hbs +5 -2
  50. package/views/accounts/edit.hbs +1 -1
  51. package/views/config/imap-proxy.hbs +1 -1
  52. package/views/config/network.hbs +7 -5
  53. package/views/config/oauth/app.hbs +2 -0
  54. package/views/config/smtp.hbs +1 -1
  55. package/views/config/tls.hbs +2 -2
  56. package/views/config/webhooks.hbs +1 -1
  57. package/views/partials/oauth_form.hbs +116 -27
  58. package/workers/api.js +4 -2
  59. package/workers/webhooks.js +18 -7
package/static/js/app.js CHANGED
@@ -340,7 +340,8 @@ document.addEventListener('DOMContentLoaded', () => {
340
340
  return;
341
341
  }
342
342
 
343
- for (let stateInfoElm of document.querySelectorAll(`.state-info[data-account="${account}"]`)) {
343
+ // an account id is any string up to 256 characters, so it is escaped rather than trusted to form a selector
344
+ for (let stateInfoElm of document.querySelectorAll(`.state-info[data-account="${CSS.escape(account)}"]`)) {
344
345
  repaintStateBadge(stateInfoElm, stateLabel);
345
346
  }
346
347
  }
package/static/js/ui.js CHANGED
@@ -686,8 +686,13 @@ window.addEventListener('pageshow', event => {
686
686
  // twice, and the reset runs however the action ends - the shape every action
687
687
  // button that posts with fetch() needs, and the one that used to be spelled
688
688
  // out (and occasionally forgotten) per page. `run` returns a promise; a
689
- // rejection it does not handle itself is reported as a toast.
689
+ // rejection it does not handle itself is reported as a toast. Handing it the
690
+ // promise instead would start the request at the call site and drop the busy
691
+ // state on the next tick, so that is refused rather than tolerated.
690
692
  window.uiBusyAction = (btn, run) => {
693
+ if (typeof run !== 'function') {
694
+ throw new TypeError('uiBusyAction(btn, run): run must be a function that returns a promise');
695
+ }
691
696
  if (btn.disabled || btn.getAttribute('aria-disabled') === 'true') {
692
697
  return;
693
698
  }
@@ -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.82.0</h1>
32
+ <h1>EmailEngine v2.82.2</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">
@@ -944,7 +944,7 @@ SOFTWARE.</pre></details>
944
944
  <li class="package">
945
945
  <div class="head">
946
946
  <span class="name">@iconify-json/tabler</span>
947
- <span class="version">1.2.41</span>
947
+ <span class="version">1.2.42</span>
948
948
  <span class="badge">MIT</span>
949
949
  <span class="badge badge-assets">asset</span>
950
950
  <span class="links"><a href="https://npmjs.com/package/@iconify-json/tabler" rel="noopener noreferrer">npm</a> <a href="https://icon-sets.iconify.design/tabler/" rel="noopener noreferrer">website</a></span>
@@ -1289,7 +1289,7 @@ THE SOFTWARE IS PROVIDED &#x22;AS IS&#x22; AND THE AUTHOR DISCLAIMS ALL WARRANTI
1289
1289
  <li class="package">
1290
1290
  <div class="head">
1291
1291
  <span class="name">@opentelemetry/core</span>
1292
- <span class="version">2.11.0</span>
1292
+ <span class="version">2.12.0</span>
1293
1293
  <span class="badge">Apache-2.0</span>
1294
1294
  <span class="badge badge-runtime">runtime</span>
1295
1295
  <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>
@@ -1299,7 +1299,7 @@ THE SOFTWARE IS PROVIDED &#x22;AS IS&#x22; AND THE AUTHOR DISCLAIMS ALL WARRANTI
1299
1299
  <li class="package">
1300
1300
  <div class="head">
1301
1301
  <span class="name">@opentelemetry/resources</span>
1302
- <span class="version">2.11.0</span>
1302
+ <span class="version">2.12.0</span>
1303
1303
  <span class="badge">Apache-2.0</span>
1304
1304
  <span class="badge badge-runtime">runtime</span>
1305
1305
  <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>
@@ -1309,7 +1309,7 @@ THE SOFTWARE IS PROVIDED &#x22;AS IS&#x22; AND THE AUTHOR DISCLAIMS ALL WARRANTI
1309
1309
  <li class="package">
1310
1310
  <div class="head">
1311
1311
  <span class="name">@opentelemetry/sdk-trace</span>
1312
- <span class="version">2.11.0</span>
1312
+ <span class="version">2.12.0</span>
1313
1313
  <span class="badge">Apache-2.0</span>
1314
1314
  <span class="badge badge-runtime">runtime</span>
1315
1315
  <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>
@@ -1319,7 +1319,7 @@ THE SOFTWARE IS PROVIDED &#x22;AS IS&#x22; AND THE AUTHOR DISCLAIMS ALL WARRANTI
1319
1319
  <li class="package">
1320
1320
  <div class="head">
1321
1321
  <span class="name">@opentelemetry/sdk-trace-base</span>
1322
- <span class="version">2.11.0</span>
1322
+ <span class="version">2.12.0</span>
1323
1323
  <span class="badge">Apache-2.0</span>
1324
1324
  <span class="badge badge-runtime">runtime</span>
1325
1325
  <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>
@@ -1794,7 +1794,7 @@ SOFTWARE.</pre></details>
1794
1794
  <li class="package">
1795
1795
  <div class="head">
1796
1796
  <span class="name">@postalsys/templates</span>
1797
- <span class="version">2.0.3</span>
1797
+ <span class="version">2.0.4</span>
1798
1798
  <span class="badge">ISC</span>
1799
1799
  <span class="badge badge-runtime">runtime</span>
1800
1800
  <span class="links"><a href="https://npmjs.com/package/@postalsys/templates" rel="noopener noreferrer">npm</a> <a href="https://github.com/postalsys/templates" rel="noopener noreferrer">website</a></span>
@@ -1864,7 +1864,7 @@ SOFTWARE.</pre></details>
1864
1864
  <li class="package">
1865
1865
  <div class="head">
1866
1866
  <span class="name">@sentry/core</span>
1867
- <span class="version">10.76.0</span>
1867
+ <span class="version">10.76.1</span>
1868
1868
  <span class="badge">MIT</span>
1869
1869
  <span class="badge badge-runtime">runtime</span>
1870
1870
  <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>
@@ -1894,7 +1894,7 @@ SOFTWARE.</pre></details>
1894
1894
  <li class="package">
1895
1895
  <div class="head">
1896
1896
  <span class="name">@sentry/node-core</span>
1897
- <span class="version">10.76.0</span>
1897
+ <span class="version">10.76.1</span>
1898
1898
  <span class="badge">MIT</span>
1899
1899
  <span class="badge badge-runtime">runtime</span>
1900
1900
  <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>
@@ -1924,7 +1924,7 @@ SOFTWARE.</pre></details>
1924
1924
  <li class="package">
1925
1925
  <div class="head">
1926
1926
  <span class="name">@sentry/opentelemetry</span>
1927
- <span class="version">10.76.0</span>
1927
+ <span class="version">10.76.1</span>
1928
1928
  <span class="badge">MIT</span>
1929
1929
  <span class="badge badge-runtime">runtime</span>
1930
1930
  <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>
@@ -3585,7 +3585,7 @@ THE SOFTWARE IS PROVIDED &#x27;AS IS&#x27;, WITHOUT WARRANTY OF ANY KIND, EXPRES
3585
3585
  <li class="package">
3586
3586
  <div class="head">
3587
3587
  <span class="name">dotenv</span>
3588
- <span class="version">18.0.5</span>
3588
+ <span class="version">18.0.6</span>
3589
3589
  <span class="badge">BSD-2-Clause</span>
3590
3590
  <span class="badge badge-runtime">runtime</span>
3591
3591
  <span class="links"><a href="https://npmjs.com/package/dotenv" rel="noopener noreferrer">npm</a> <a href="https://github.com/motdotla/dotenv#readme" rel="noopener noreferrer">website</a></span>
@@ -4312,7 +4312,7 @@ THE SOFTWARE.</pre></details>
4312
4312
  <li class="package">
4313
4313
  <div class="head">
4314
4314
  <span class="name">handlebars</span>
4315
- <span class="version">4.7.9</span>
4315
+ <span class="version">4.7.10</span>
4316
4316
  <span class="badge">MIT</span>
4317
4317
  <span class="badge badge-runtime">runtime</span>
4318
4318
  <span class="links"><a href="https://npmjs.com/package/handlebars" rel="noopener noreferrer">npm</a> <a href="https://handlebarsjs.com/" rel="noopener noreferrer">website</a></span>
@@ -4932,7 +4932,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS &#x22;AS IS&
4932
4932
  <li class="package">
4933
4933
  <div class="head">
4934
4934
  <span class="name">imapflow</span>
4935
- <span class="version">2.2.5</span>
4935
+ <span class="version">2.3.0</span>
4936
4936
  <span class="badge">MIT</span>
4937
4937
  <span class="badge badge-runtime">runtime</span>
4938
4938
  <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>
@@ -5509,7 +5509,7 @@ THE SOFTWARE IS PROVIDED &#x22;AS IS&#x22;, WITHOUT WARRANTY OF ANY KIND, EXPRES
5509
5509
  <li class="package">
5510
5510
  <div class="head">
5511
5511
  <span class="name">mailparser</span>
5512
- <span class="version">3.9.36</span>
5512
+ <span class="version">3.9.37</span>
5513
5513
  <span class="badge">MIT</span>
5514
5514
  <span class="badge badge-runtime">runtime</span>
5515
5515
  <span class="links"><a href="https://npmjs.com/package/mailparser" rel="noopener noreferrer">npm</a> <a href="https://github.com/nodemailer/mailparser" rel="noopener noreferrer">website</a></span>
@@ -6108,7 +6108,7 @@ THE SOFTWARE IS PROVIDED &#x22;AS IS&#x22;, WITHOUT WARRANTY OF ANY KIND, EXPRES
6108
6108
  <li class="package">
6109
6109
  <div class="head">
6110
6110
  <span class="name">nodemailer</span>
6111
- <span class="version">10.0.15</span>
6111
+ <span class="version">10.0.16</span>
6112
6112
  <span class="badge">MIT-0</span>
6113
6113
  <span class="badge badge-runtime">runtime</span>
6114
6114
  <span class="links"><a href="https://npmjs.com/package/nodemailer" rel="noopener noreferrer">npm</a> <a href="https://nodemailer.com/" rel="noopener noreferrer">website</a></span>
@@ -6132,16 +6132,6 @@ SOFTWARE.</pre></details>
6132
6132
  </li>
6133
6133
  <li class="package">
6134
6134
  <div class="head">
6135
- <span class="name">nodemailer</span>
6136
- <span class="version">10.0.14</span>
6137
- <span class="badge">MIT-0</span>
6138
- <span class="badge badge-runtime">runtime</span>
6139
- <span class="links"><a href="https://npmjs.com/package/nodemailer" rel="noopener noreferrer">npm</a> <a href="https://nodemailer.com/" rel="noopener noreferrer">website</a></span>
6140
- </div>
6141
- <p class="no-text">Same license text as <a href="#lic-144">nodemailer</a>.</p>
6142
- </li>
6143
- <li class="package">
6144
- <div class="head">
6145
6135
  <span class="name">nth-check</span>
6146
6136
  <span class="version">2.1.1</span>
6147
6137
  <span class="badge">BSD-2-Clause</span>
@@ -6916,7 +6906,7 @@ SOFTWARE.</pre></details>
6916
6906
  <li class="package">
6917
6907
  <div class="head">
6918
6908
  <span class="name">readable-stream</span>
6919
- <span class="version">4.7.0</span>
6909
+ <span class="version">4.8.0</span>
6920
6910
  <span class="badge">MIT</span>
6921
6911
  <span class="badge badge-runtime">runtime</span>
6922
6912
  <span class="links"><a href="https://npmjs.com/package/readable-stream" rel="noopener noreferrer">npm</a> <a href="https://github.com/nodejs/readable-stream" rel="noopener noreferrer">website</a></span>
@@ -7348,7 +7338,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</pre>
7348
7338
  <li class="package">
7349
7339
  <div class="head">
7350
7340
  <span class="name">smtp-server</span>
7351
- <span class="version">3.19.17</span>
7341
+ <span class="version">3.19.18</span>
7352
7342
  <span class="badge">MIT-0</span>
7353
7343
  <span class="badge badge-runtime">runtime</span>
7354
7344
  <span class="links"><a href="https://npmjs.com/package/smtp-server" rel="noopener noreferrer">npm</a> <a href="https://github.com/nodemailer/smtp-server" rel="noopener noreferrer">website</a></span>
@@ -7763,7 +7753,7 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTH
7763
7753
  <li class="package">
7764
7754
  <div class="head">
7765
7755
  <span class="name">tldts-core</span>
7766
- <span class="version">7.4.16</span>
7756
+ <span class="version">7.4.18</span>
7767
7757
  <span class="badge">MIT</span>
7768
7758
  <span class="badge badge-runtime">runtime</span>
7769
7759
  <span class="links"><a href="https://npmjs.com/package/tldts-core" rel="noopener noreferrer">npm</a> <a href="https://github.com/remusao/tldts#readme" rel="noopener noreferrer">website</a></span>
@@ -1,7 +1,24 @@
1
1
  msgid ""
2
2
  msgstr ""
3
3
  "Content-Type: text/plain; charset=ascii\n"
4
- "POT-Creation-Date: 2026-10-05 12:02+0000\n"
4
+ "POT-Creation-Date: 2026-10-08 14:37+0000\n"
5
+
6
+ #: views/error.hbs:6
7
+ #: workers/api.js:3177
8
+ msgid "Something went wrong"
9
+ msgstr ""
10
+
11
+ #: views/error.hbs:8
12
+ msgid "Error code: %s"
13
+ msgstr ""
14
+
15
+ #: views/error.hbs:20
16
+ msgid "Go back"
17
+ msgstr ""
18
+
19
+ #: views/error.hbs:28
20
+ msgid "Dashboard"
21
+ msgstr ""
5
22
 
6
23
  #: views/account-workspace-error.hbs:7
7
24
  msgid "Work Account Required"
@@ -30,25 +47,8 @@ msgstr ""
30
47
  msgid "Try Again"
31
48
  msgstr ""
32
49
 
33
- #: views/error.hbs:6
34
- #: workers/api.js:3175
35
- msgid "Something went wrong"
36
- msgstr ""
37
-
38
- #: views/error.hbs:8
39
- msgid "Error code: %s"
40
- msgstr ""
41
-
42
- #: views/error.hbs:20
43
- msgid "Go back"
44
- msgstr ""
45
-
46
- #: views/error.hbs:28
47
- msgid "Dashboard"
48
- msgstr ""
49
-
50
50
  #: views/config/license.hbs:20
51
- #: lib/ui-routes/oauth-config-routes.js:283
51
+ #: lib/ui-routes/oauth-config-routes.js:275
52
52
  msgid "%d day"
53
53
  msgid_plural "%d days"
54
54
  msgstr[0] ""
@@ -60,6 +60,10 @@ msgid_plural "%d certificates"
60
60
  msgstr[0] ""
61
61
  msgstr[1] ""
62
62
 
63
+ #: views/redirect.hbs:1
64
+ msgid "Click <a href=\"%s\">here</a> to continue&mldr;"
65
+ msgstr ""
66
+
63
67
  #: views/oauth-scope-error.hbs:5
64
68
  msgid "Insufficient Permissions"
65
69
  msgstr ""
@@ -80,10 +84,6 @@ msgid ""
80
84
  "the Google consent screen."
81
85
  msgstr ""
82
86
 
83
- #: views/redirect.hbs:1
84
- msgid "Click <a href=\"%s\">here</a> to continue&mldr;"
85
- msgstr ""
86
-
87
87
  #: views/unsubscribe.hbs:7
88
88
  #: views/unsubscribe.hbs:60
89
89
  #: views/unsubscribe.hbs:76
@@ -175,6 +175,38 @@ msgstr ""
175
175
  msgid "Standard IMAP"
176
176
  msgstr ""
177
177
 
178
+ #: views/accounts/register/validating.hbs:35
179
+ msgid "Checking your mail server"
180
+ msgstr ""
181
+
182
+ #: views/accounts/register/validating.hbs:40
183
+ msgid "Still checking. This can take up to a minute."
184
+ msgstr ""
185
+
186
+ #: views/accounts/register/validating.hbs:47
187
+ msgid "Enter server settings manually"
188
+ msgstr ""
189
+
190
+ #: views/accounts/register/validating.hbs:53
191
+ msgid "We couldn't sign in to your mail server"
192
+ msgstr ""
193
+
194
+ #: views/accounts/register/validating.hbs:54
195
+ msgid "Check the settings on the next page and try again."
196
+ msgstr ""
197
+
198
+ #: views/accounts/register/validating.hbs:61
199
+ msgid "Continue to server settings"
200
+ msgstr ""
201
+
202
+ #: views/accounts/register/validating.hbs:69
203
+ msgid "Almost there"
204
+ msgstr ""
205
+
206
+ #: views/accounts/register/validating.hbs:70
207
+ msgid "Continue to review your mail server settings."
208
+ msgstr ""
209
+
178
210
  #: views/accounts/register/imap-server.hbs:23
179
211
  msgid ""
180
212
  "Server settings could not be detected automatically for %s. Enter them "
@@ -279,38 +311,6 @@ msgstr ""
279
311
  msgid "We couldn't connect with these settings. Check the errors below."
280
312
  msgstr ""
281
313
 
282
- #: views/accounts/register/validating.hbs:35
283
- msgid "Checking your mail server"
284
- msgstr ""
285
-
286
- #: views/accounts/register/validating.hbs:40
287
- msgid "Still checking. This can take up to a minute."
288
- msgstr ""
289
-
290
- #: views/accounts/register/validating.hbs:47
291
- msgid "Enter server settings manually"
292
- msgstr ""
293
-
294
- #: views/accounts/register/validating.hbs:53
295
- msgid "We couldn't sign in to your mail server"
296
- msgstr ""
297
-
298
- #: views/accounts/register/validating.hbs:54
299
- msgid "Check the settings on the next page and try again."
300
- msgstr ""
301
-
302
- #: views/accounts/register/validating.hbs:61
303
- msgid "Continue to server settings"
304
- msgstr ""
305
-
306
- #: views/accounts/register/validating.hbs:69
307
- msgid "Almost there"
308
- msgstr ""
309
-
310
- #: views/accounts/register/validating.hbs:70
311
- msgid "Continue to review your mail server settings."
312
- msgstr ""
313
-
314
314
  #: views/partials/public_test_labels.hbs:9
315
315
  msgid "Error"
316
316
  msgstr ""
@@ -363,19 +363,19 @@ msgid ""
363
363
  "connect your account."
364
364
  msgstr ""
365
365
 
366
- #: lib/tools.js:1609
366
+ #: lib/tools.js:1658
367
367
  #: lib/ui-routes/unsubscribe-routes.js:31
368
368
  #: lib/ui-routes/unsubscribe-routes.js:99
369
369
  msgid "Invalid input"
370
370
  msgstr ""
371
371
 
372
- #: lib/tools.js:2490
372
+ #: lib/tools.js:2539
373
373
  msgid "Signature validation failed"
374
374
  msgstr ""
375
375
 
376
- #: lib/tools.js:2513
377
- #: lib/tools.js:2519
378
- #: lib/tools.js:2524
376
+ #: lib/tools.js:2562
377
+ #: lib/tools.js:2568
378
+ #: lib/tools.js:2573
379
379
  #: lib/ui-routes/account-routes.js:1324
380
380
  msgid "Invalid or expired account setup URL"
381
381
  msgstr ""
@@ -388,9 +388,9 @@ msgstr ""
388
388
  #: lib/ui-routes/account-routes.js:984
389
389
  #: lib/ui-routes/account-routes.js:1200
390
390
  #: lib/ui-routes/account-routes.js:1391
391
- #: lib/ui-routes/route-helpers.js:362
392
- #: workers/api.js:2305
393
- #: workers/api.js:2380
391
+ #: lib/ui-routes/route-helpers.js:350
392
+ #: workers/api.js:2307
393
+ #: workers/api.js:2382
394
394
  msgid "Email Account Setup"
395
395
  msgstr ""
396
396
 
@@ -465,41 +465,41 @@ msgstr ""
465
465
  msgid "Invalid API key for OpenAI"
466
466
  msgstr ""
467
467
 
468
- #: lib/ui-routes/oauth-config-routes.js:276
468
+ #: lib/ui-routes/oauth-config-routes.js:268
469
469
  msgid "Unknown"
470
470
  msgstr ""
471
471
 
472
- #: lib/ui-routes/oauth-config-routes.js:285
472
+ #: lib/ui-routes/oauth-config-routes.js:277
473
473
  msgid "Indefinite"
474
474
  msgstr ""
475
475
 
476
- #: lib/ui-routes/route-helpers.js:68
476
+ #: lib/ui-routes/route-helpers.js:69
477
477
  msgid "The server unexpectedly closed the connection."
478
478
  msgstr ""
479
479
 
480
- #: lib/ui-routes/route-helpers.js:70
480
+ #: lib/ui-routes/route-helpers.js:71
481
481
  msgid ""
482
482
  "The server unexpectedly closed the connection. This usually happens when "
483
483
  "attempting to connect to a TLS port without TLS enabled."
484
484
  msgstr ""
485
485
 
486
- #: lib/ui-routes/route-helpers.js:125
486
+ #: lib/ui-routes/route-helpers.js:126
487
487
  msgid ""
488
488
  "Connection timed out. This usually occurs if you are behind a firewall or "
489
489
  "connecting to the wrong port."
490
490
  msgstr ""
491
491
 
492
- #: lib/ui-routes/route-helpers.js:132
492
+ #: lib/ui-routes/route-helpers.js:133
493
493
  msgid ""
494
494
  "The server refused the connection. This typically occurs if the server is "
495
495
  "not running, is overloaded, or you are connecting to the wrong host or port."
496
496
  msgstr ""
497
497
 
498
- #: lib/ui-routes/route-helpers.js:186
498
+ #: lib/ui-routes/route-helpers.js:187
499
499
  msgid "Delegated"
500
500
  msgstr ""
501
501
 
502
- #: lib/ui-routes/route-helpers.js:187
502
+ #: lib/ui-routes/route-helpers.js:188
503
503
  msgid "Using credentials from \"%s\""
504
504
  msgstr ""
505
505
 
@@ -545,7 +545,7 @@ msgid ""
545
545
  "valid"
546
546
  msgstr ""
547
547
 
548
- #: workers/api.js:3174
549
- #: workers/api.js:3289
548
+ #: workers/api.js:3176
549
+ #: workers/api.js:3291
550
550
  msgid "Requested page not found"
551
551
  msgstr ""
@@ -351,7 +351,7 @@
351
351
  <dd>
352
352
 
353
353
  {{#*inline "outlookWatchBadge"}}
354
- <span class="badge badge-{{#if account.outlookSubscription.isValid}}success{{else}}{{#if account.outlookSubscription.state.error}}error{{else}}warning{{/if}}{{/if}}">
354
+ <span class="badge badge-{{account.outlookSubscription.variant}}">
355
355
  {{account.outlookSubscription.stateLabel}}
356
356
  </span>
357
357
  {{/inline}}
@@ -368,8 +368,11 @@
368
368
  {{/if}}
369
369
 
370
370
  {{#if account.outlookSubscription.state.error}}
371
- <div class="alert alert-soft alert-error">
371
+ <div class="alert alert-soft alert-{{account.outlookSubscription.variant}}">
372
372
  {{account.outlookSubscription.state.error}}
373
+ {{#if account.outlookSubscription.polling}}
374
+ <p class="mt-1">New messages are still found by a periodic check, but changes to and deletions of existing messages are not reported until a subscription can be created.</p>
375
+ {{/if}}
373
376
 
374
377
  {{#if account.outlookSubscription.state.time}}
375
378
  <small>(last checked <span class="local-date-time"
@@ -108,7 +108,7 @@
108
108
 
109
109
  <div class="card-body space-y-4">
110
110
 
111
- {{#> ui/form-field id="proxy" label="Proxy URL" error=errors.proxy hint="Use a custom proxy for this account. Start the URL with http://, https://, socks://, socks4://, or socks5://."}}
111
+ {{#> ui/form-field id="proxy" label="Proxy URL" error=errors.proxy hint="Use a custom proxy for this account, instead of the instance-wide proxy. It carries the IMAP and SMTP connections and, for an OAuth2 account, its token requests and Gmail API or MS Graph API calls. Start the URL with http://, https://, socks://, socks4://, or socks5://."}}
112
112
  <input type="text" class="input or-else-all{{#if errors.proxy}} is-invalid{{/if}}" id="proxy"
113
113
  placeholder="Connection URL like &quot;socks://localhost:1080&quot;&mldr;" value="{{values.proxy}}"
114
114
  name="proxy" data-target="proxy-status">
@@ -62,7 +62,7 @@
62
62
  {{> ui/setting-ref name="imapProxyServerProxy"}}
63
63
  {{> ui/checkbox id="imapProxyServerProxy" name="imapProxyServerProxy" label="Enable PROXY Protocol"
64
64
  checked=values.imapProxyServerProxy error=errors.imapProxyServerProxy}}
65
- <span class="helper-text">Required when using HAProxy with <code>send-proxy</code>.</span>
65
+ <span class="helper-text">Required when using HAProxy with <code>send-proxy</code>. The PROXY header is trusted from any peer, so only enable this when the port is reachable through the load balancer alone.</span>
66
66
  </div>
67
67
  </div>
68
68
  </div>
@@ -86,19 +86,20 @@
86
86
  <table class="table">
87
87
  <thead>
88
88
  <tr>
89
- <th>Protocol</th>
89
+ <th>Traffic</th>
90
90
  <th>Selection Method</th>
91
91
  </tr>
92
92
  </thead>
93
93
  <tbody>
94
94
  <tr>
95
95
  <td>
96
- <span>IMAP</span>
96
+ <span class="block">Mailbox access</span>
97
+ <small class="text-base-content/60">IMAP sessions, Gmail API and MS Graph requests, and OAuth2 token requests. One address per account under Dedicated</small>
97
98
  </td>
98
99
  <td>
99
100
  {{> ui/setting-ref name="imapStrategy"}}
100
101
  <select class="select max-w-xs{{#if errors.imapStrategy}} is-invalid{{/if}}"
101
- name="imapStrategy" aria-label="IMAP IP selection method">
102
+ name="imapStrategy" aria-label="Mailbox access IP selection method">
102
103
  {{#each imapStrategies}}
103
104
  <option value="{{key}}" {{#if selected}}selected{{/if}}>{{title}}</option>
104
105
  {{/each}}
@@ -111,12 +112,13 @@
111
112
 
112
113
  <tr>
113
114
  <td>
114
- <span>SMTP</span>
115
+ <span class="block">Sending over SMTP</span>
116
+ <small class="text-base-content/60">SMTP delivery of submitted messages</small>
115
117
  </td>
116
118
  <td>
117
119
  {{> ui/setting-ref name="smtpStrategy"}}
118
120
  <select class="select max-w-xs{{#if errors.smtpStrategy}} is-invalid{{/if}}"
119
- name="smtpStrategy" aria-label="SMTP IP selection method">
121
+ name="smtpStrategy" aria-label="Sending over SMTP IP selection method">
120
122
  {{#each smtpStrategies}}
121
123
  <option value="{{key}}" {{#if selected}}selected{{/if}}>{{title}}</option>
122
124
  {{/each}}
@@ -130,6 +130,8 @@
130
130
  <dd>
131
131
  {{#if authMethodIsExternalAccount}}
132
132
  Workload Identity Federation
133
+ {{else if authMethodIsMetadataServer}}
134
+ Attached service account (metadata server)
133
135
  {{else}}
134
136
  Service account key
135
137
  {{/if}}
@@ -56,7 +56,7 @@
56
56
  {{> ui/setting-ref name="smtpServerProxy"}}
57
57
  {{> ui/checkbox id="smtpServerProxy" name="smtpServerProxy" label="Enable PROXY Protocol"
58
58
  checked=values.smtpServerProxy error=errors.smtpServerProxy}}
59
- <span class="helper-text">Required when using HAProxy with <code>send-proxy</code>.</span>
59
+ <span class="helper-text">Required when using HAProxy with <code>send-proxy</code>. The PROXY header is trusted from any peer, so only enable this when the port is reachable through the load balancer alone.</span>
60
60
  </div>
61
61
  </div>
62
62
  </div>
@@ -498,7 +498,7 @@ Generate a self-signed certificate for every configured name now, instead of the
498
498
  let hostname = rowHostname(btn);
499
499
  showReason(hostname, 'info', `Checking whether ${hostname} reaches this server...`);
500
500
 
501
- uiBusyAction(btn, uiPostJson('/admin/config/tls/preflight', { hostname }).then(data => {
501
+ uiBusyAction(btn, () => uiPostJson('/admin/config/tls/preflight', { hostname }).then(data => {
502
502
  showReason(hostname, data && data.success ? 'success' : 'error', (data && (data.message || data.error)) || 'The check failed');
503
503
  }).catch(err => {
504
504
  showReason(hostname, 'error', err.message);
@@ -513,7 +513,7 @@ Generate a self-signed certificate for every configured name now, instead of the
513
513
  showReason(hostname, 'info', `Requesting a certificate for ${hostname}...`);
514
514
  }
515
515
 
516
- uiBusyAction(btn, uiPostJson('/admin/config/tls/request', hostname ? { hostname } : {}).then(data => {
516
+ uiBusyAction(btn, () => uiPostJson('/admin/config/tls/request', hostname ? { hostname } : {}).then(data => {
517
517
  if (hostname) {
518
518
  if (!data || !data.success) {
519
519
  showReason(hostname, 'error', (data && data.error) || 'The request failed');
@@ -106,7 +106,7 @@ class="mb-1"}}
106
106
  {{#> ui/details summary="Custom Headers" summarySmall="(Default webhook only)"
107
107
  class="card bg-base-100 shadow-md mb-6" open=values.customHeaders}}
108
108
 
109
- <p class="mb-4">Add authentication tokens or other headers to webhook requests.</p>
109
+ <p class="mb-4">Add authentication tokens or other headers to requests sent to the webhook URL above. An account that overrides the URL is sent its own account-level headers instead of these.</p>
110
110
 
111
111
  <div>
112
112
  {{> ui/setting-ref name="webhooksCustomHeaders"}}