emailengine-app 2.84.0 → 2.84.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/.dockerignore +6 -0
  2. package/.release-please-manifest.json +1 -1
  3. package/CHANGELOG.md +35 -0
  4. package/Dockerfile +2 -2
  5. package/bin/emailengine.js +15 -0
  6. package/data/google-crawlers.json +1 -1
  7. package/docker-compose.yml +1 -1
  8. package/lib/account/own-account-key.js +42 -0
  9. package/lib/account-assignment.js +1 -33
  10. package/lib/account.js +32 -19
  11. package/lib/add-trackers.js +11 -4
  12. package/lib/api-routes/account-routes.js +67 -14
  13. package/lib/api-routes/gateway-routes.js +9 -3
  14. package/lib/api-routes/message-routes.js +7 -1
  15. package/lib/api-routes/mint-bounds.js +11 -0
  16. package/lib/api-routes/route-helpers.js +125 -3
  17. package/lib/api-routes/submit-routes.js +4 -2
  18. package/lib/auth-token.js +23 -10
  19. package/lib/bounce-detect.js +17 -5
  20. package/lib/consts.js +34 -0
  21. package/lib/create-imap-client.js +41 -2
  22. package/lib/email-client/base-client.js +20 -10
  23. package/lib/email-client/gmail-client.js +21 -7
  24. package/lib/email-client/imap/mailbox.js +10 -4
  25. package/lib/email-client/imap/response-metrics.js +75 -0
  26. package/lib/email-client/imap-client.js +5 -2
  27. package/lib/email-client/message-builder.js +7 -2
  28. package/lib/email-client/outlook/graph-api.js +17 -2
  29. package/lib/email-client/outlook-client.js +6 -3
  30. package/lib/email-client/smtp-pool-manager.js +6 -0
  31. package/lib/encrypt.js +9 -0
  32. package/lib/export.js +3 -1
  33. package/lib/get-raw-email.js +4 -2
  34. package/lib/imap-proxy-auth.js +14 -1
  35. package/lib/imapproxy/imap-core/lib/commands/authenticate-plain.js +1 -0
  36. package/lib/imapproxy/imap-core/lib/commands/login.js +1 -0
  37. package/lib/imapproxy/imap-core/lib/imap-command.js +86 -43
  38. package/lib/imapproxy/imap-core/lib/imap-stream.js +58 -13
  39. package/lib/imapproxy/imap-core/lib/indexer/indexer.js +3 -1
  40. package/lib/mcp/listen.js +10 -1
  41. package/lib/oauth/external-account-config.js +3 -1
  42. package/lib/oauth/gmail.js +21 -48
  43. package/lib/oauth/mail-ru.js +5 -38
  44. package/lib/oauth/outlook.js +26 -44
  45. package/lib/pbkdf2-phc.js +18 -1
  46. package/lib/privileged-settings.js +6 -3
  47. package/lib/redis-scan-delete.js +15 -1
  48. package/lib/schemas.js +78 -32
  49. package/lib/settings.js +13 -1
  50. package/lib/smtp-auth.js +23 -0
  51. package/lib/tools.js +245 -56
  52. package/lib/ui-routes/account-routes.js +16 -37
  53. package/lib/ui-routes/admin-config-routes.js +10 -38
  54. package/lib/ui-routes/admin-entities-routes.js +22 -24
  55. package/lib/ui-routes/auth-routes.js +47 -24
  56. package/lib/ui-routes/connection-security-form.js +74 -0
  57. package/lib/ui-routes/form-lists.js +46 -0
  58. package/lib/ui-routes/mcp-consent-routes.js +5 -1
  59. package/lib/ui-routes/oauth-config-routes.js +9 -18
  60. package/lib/ui-routes/sign-in-helpers.js +59 -0
  61. package/lib/ui-routes/unsubscribe-routes.js +6 -3
  62. package/lib/utils/map-concurrent.js +36 -0
  63. package/lib/utils/network.js +28 -0
  64. package/lib/utils/provider-id.js +27 -0
  65. package/lib/utils/require-tls.js +33 -0
  66. package/lib/web-safe-html.js +5 -6
  67. package/lib/webhook-penalty.js +75 -0
  68. package/lib/webhook-routing.js +22 -2
  69. package/package.json +21 -21
  70. package/sbom.json +1 -1
  71. package/server.js +74 -38
  72. package/static/js/ace/ace.js +1 -1
  73. package/static/js/ace/mode-handlebars.js +1 -1
  74. package/static/js/ace/mode-html.js +1 -1
  75. package/static/js/ace/mode-javascript.js +1 -1
  76. package/static/js/ace/mode-markdown.js +1 -1
  77. package/static/js/ace/worker-html.js +1 -1
  78. package/static/js/ace/worker-javascript.js +1 -1
  79. package/static/js/ace/worker-json.js +1 -1
  80. package/static/js/ee-client.js +5 -0
  81. package/static/licenses.html +23 -23
  82. package/translations/messages.pot +66 -66
  83. package/views/account/security.hbs +10 -0
  84. package/views/accounts/account.hbs +11 -11
  85. package/views/accounts/edit.hbs +6 -2
  86. package/views/partials/gateway_form.hbs +3 -1
  87. package/workers/api.js +43 -3
  88. package/workers/webhooks.js +39 -3
  89. package/config/test.toml +0 -46
  90. package/install.sh +0 -428
  91. package/setup-production.sh +0 -215
  92. package/systemd/emailengine.service +0 -97
  93. package/systemd/nginx-proxy.conf +0 -77
@@ -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.83.2</h1>
32
+ <h1>EmailEngine v2.84.1</h1>
33
33
  <p class="intro">EmailEngine includes code from the following open source packages. Entries marked <em>asset</em> are build-time packages whose output is embedded in the UI assets, or bundled fonts and scripts.</p>
34
34
  <ul>
35
35
  <li class="package">
@@ -1529,7 +1529,7 @@ SOFTWARE.</pre></details>
1529
1529
  <li class="package">
1530
1530
  <div class="head">
1531
1531
  <span class="name">@peculiar/x509</span>
1532
- <span class="version">2.1.0</span>
1532
+ <span class="version">2.2.0</span>
1533
1533
  <span class="badge">MIT</span>
1534
1534
  <span class="badge badge-runtime">runtime</span>
1535
1535
  <span class="links"><a href="https://npmjs.com/package/@peculiar/x509" rel="noopener noreferrer">npm</a> <a href="https://github.com/PeculiarVentures/x509#readme" rel="noopener noreferrer">website</a></span>
@@ -1619,7 +1619,7 @@ SOFTWARE.</pre></details>
1619
1619
  <li class="package">
1620
1620
  <div class="head">
1621
1621
  <span class="name">@postalsys/certs</span>
1622
- <span class="version">1.4.4</span>
1622
+ <span class="version">1.4.6</span>
1623
1623
  <span class="badge">ISC</span>
1624
1624
  <span class="badge badge-runtime">runtime</span>
1625
1625
  <span class="links"><a href="https://npmjs.com/package/@postalsys/certs" rel="noopener noreferrer">npm</a> <a href="https://github.com/postalsys/certs" rel="noopener noreferrer">website</a></span>
@@ -1629,7 +1629,7 @@ SOFTWARE.</pre></details>
1629
1629
  <li class="package">
1630
1630
  <div class="head">
1631
1631
  <span class="name">@postalsys/ee-client</span>
1632
- <span class="version">1.8.1</span>
1632
+ <span class="version">1.8.2</span>
1633
1633
  <span class="badge">MIT</span>
1634
1634
  <span class="badge badge-assets">asset</span>
1635
1635
  <span class="links"><a href="https://npmjs.com/package/@postalsys/ee-client" rel="noopener noreferrer">npm</a> <a href="https://github.com/postalsys/ee-client#readme" rel="noopener noreferrer">website</a></span>
@@ -1659,7 +1659,7 @@ SOFTWARE.</pre></details>
1659
1659
  <li class="package">
1660
1660
  <div class="head">
1661
1661
  <span class="name">@postalsys/email-ai-tools</span>
1662
- <span class="version">2.2.2</span>
1662
+ <span class="version">2.2.7</span>
1663
1663
  <span class="badge">MIT</span>
1664
1664
  <span class="badge badge-runtime">runtime</span>
1665
1665
  <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>
@@ -1689,7 +1689,7 @@ SOFTWARE.</pre></details>
1689
1689
  <li class="package">
1690
1690
  <div class="head">
1691
1691
  <span class="name">@postalsys/email-content</span>
1692
- <span class="version">0.1.12</span>
1692
+ <span class="version">0.1.16</span>
1693
1693
  <span class="badge">MIT</span>
1694
1694
  <span class="badge badge-runtime">runtime</span>
1695
1695
  <span class="links"><a href="https://npmjs.com/package/@postalsys/email-content" rel="noopener noreferrer">npm</a> <a href="https://github.com/postalsys/email-content#readme" rel="noopener noreferrer">website</a></span>
@@ -1719,7 +1719,7 @@ SOFTWARE.</pre></details>
1719
1719
  <li class="package">
1720
1720
  <div class="head">
1721
1721
  <span class="name">@postalsys/email-text-tools</span>
1722
- <span class="version">2.4.19</span>
1722
+ <span class="version">2.4.25</span>
1723
1723
  <span class="badge">MIT</span>
1724
1724
  <span class="badge badge-runtime">runtime</span>
1725
1725
  <span class="links"><a href="https://npmjs.com/package/@postalsys/email-text-tools" rel="noopener noreferrer">npm</a> <a href="https://github.com/postalsys/email-text-tools#readme" rel="noopener noreferrer">website</a></span>
@@ -2029,7 +2029,7 @@ SOFTWARE.</pre></details>
2029
2029
  <li class="package">
2030
2030
  <div class="head">
2031
2031
  <span class="name">@zone-eu/mailsplit</span>
2032
- <span class="version">5.4.21</span>
2032
+ <span class="version">5.4.26</span>
2033
2033
  <span class="badge">(MIT OR EUPL-1.1+)</span>
2034
2034
  <span class="badge badge-runtime">runtime</span>
2035
2035
  <span class="links"><a href="https://npmjs.com/package/@zone-eu/mailsplit" rel="noopener noreferrer">npm</a> <a href="https://github.com/zone-eu/mailsplit" rel="noopener noreferrer">website</a></span>
@@ -2191,7 +2191,7 @@ K&#xF5;igi muude k&#xE4;esoleva liite muudatuste v&#xF5;i t&#xE4;ienduste jaoks
2191
2191
  <li class="package">
2192
2192
  <div class="head">
2193
2193
  <span class="name">@zone-eu/wild-config</span>
2194
- <span class="version">1.7.8</span>
2194
+ <span class="version">1.7.9</span>
2195
2195
  <span class="badge">(MIT OR EUPL-1.1+)</span>
2196
2196
  <span class="badge badge-runtime">runtime</span>
2197
2197
  <span class="links"><a href="https://npmjs.com/package/@zone-eu/wild-config" rel="noopener noreferrer">npm</a> <a href="https://github.com/zone-eu/wild-config#readme" rel="noopener noreferrer">website</a></span>
@@ -2291,7 +2291,7 @@ SOFTWARE.</pre></details>
2291
2291
  <li class="package">
2292
2292
  <div class="head">
2293
2293
  <span class="name">ace-builds</span>
2294
- <span class="version">1.44.0</span>
2294
+ <span class="version">1.45.0</span>
2295
2295
  <span class="badge">BSD-3-Clause</span>
2296
2296
  <span class="badge badge-assets">asset</span>
2297
2297
  <span class="links"><a href="https://npmjs.com/package/ace-builds" rel="noopener noreferrer">npm</a> <a href="https://github.com/ajaxorg/ace-builds" rel="noopener noreferrer">website</a></span>
@@ -2415,7 +2415,7 @@ SOFTWARE.</pre></details>
2415
2415
  <li class="package">
2416
2416
  <div class="head">
2417
2417
  <span class="name">asn1js</span>
2418
- <span class="version">3.0.10</span>
2418
+ <span class="version">3.1.0</span>
2419
2419
  <span class="badge">BSD-3-Clause</span>
2420
2420
  <span class="badge badge-runtime">runtime</span>
2421
2421
  <span class="links"><a href="https://npmjs.com/package/asn1js" rel="noopener noreferrer">npm</a> <a href="https://github.com/PeculiarVentures/ASN1.js" rel="noopener noreferrer">website</a></span>
@@ -2613,7 +2613,7 @@ THE SOFTWARE.</pre></details>
2613
2613
  <li class="package">
2614
2614
  <div class="head">
2615
2615
  <span class="name">bullmq</span>
2616
- <span class="version">6.3.15</span>
2616
+ <span class="version">6.3.16</span>
2617
2617
  <span class="badge">MIT</span>
2618
2618
  <span class="badge badge-runtime">runtime</span>
2619
2619
  <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>
@@ -4892,7 +4892,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS &#x22;AS IS&
4892
4892
  <li class="package">
4893
4893
  <div class="head">
4894
4894
  <span class="name">imapflow</span>
4895
- <span class="version">2.4.3</span>
4895
+ <span class="version">2.5.5</span>
4896
4896
  <span class="badge">MIT</span>
4897
4897
  <span class="badge badge-runtime">runtime</span>
4898
4898
  <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>
@@ -5073,7 +5073,7 @@ THE SOFTWARE.</pre></details>
5073
5073
  <li class="package">
5074
5074
  <div class="head">
5075
5075
  <span class="name">joi</span>
5076
- <span class="version">18.2.9</span>
5076
+ <span class="version">18.3.0</span>
5077
5077
  <span class="badge">BSD-3-Clause</span>
5078
5078
  <span class="badge badge-runtime">runtime</span>
5079
5079
  <span class="links"><a href="https://npmjs.com/package/joi" rel="noopener noreferrer">npm</a> <a href="https://github.com/hapijs/joi" rel="noopener noreferrer">website</a></span>
@@ -5194,7 +5194,7 @@ SOFTWARE.</pre></details>
5194
5194
  <li class="package">
5195
5195
  <div class="head">
5196
5196
  <span class="name">libbase64</span>
5197
- <span class="version">1.3.3</span>
5197
+ <span class="version">1.4.1</span>
5198
5198
  <span class="badge">MIT</span>
5199
5199
  <span class="badge badge-runtime">runtime</span>
5200
5200
  <span class="links"><a href="https://npmjs.com/package/libbase64" rel="noopener noreferrer">npm</a> <a href="https://github.com/nodemailer/libbase64" rel="noopener noreferrer">website</a></span>
@@ -5222,7 +5222,7 @@ THE SOFTWARE.</pre></details>
5222
5222
  <li class="package">
5223
5223
  <div class="head">
5224
5224
  <span class="name">libmime</span>
5225
- <span class="version">5.4.8</span>
5225
+ <span class="version">5.5.1</span>
5226
5226
  <span class="badge">MIT</span>
5227
5227
  <span class="badge badge-runtime">runtime</span>
5228
5228
  <span class="links"><a href="https://npmjs.com/package/libmime" rel="noopener noreferrer">npm</a> <a href="https://github.com/nodemailer/libmime" rel="noopener noreferrer">website</a></span>
@@ -5250,7 +5250,7 @@ THE SOFTWARE.</pre></details>
5250
5250
  <li class="package">
5251
5251
  <div class="head">
5252
5252
  <span class="name">libqp</span>
5253
- <span class="version">2.1.2</span>
5253
+ <span class="version">3.0.1</span>
5254
5254
  <span class="badge">MIT</span>
5255
5255
  <span class="badge badge-runtime">runtime</span>
5256
5256
  <span class="links"><a href="https://npmjs.com/package/libqp" rel="noopener noreferrer">npm</a> <a href="https://github.com/nodemailer/libqp" rel="noopener noreferrer">website</a></span>
@@ -5413,7 +5413,7 @@ THE SOFTWARE IS PROVIDED &#x22;AS IS&#x22;, WITHOUT WARRANTY OF ANY KIND, EXPRES
5413
5413
  <li class="package">
5414
5414
  <div class="head">
5415
5415
  <span class="name">mailparser</span>
5416
- <span class="version">3.9.39</span>
5416
+ <span class="version">3.9.46</span>
5417
5417
  <span class="badge">MIT</span>
5418
5418
  <span class="badge badge-runtime">runtime</span>
5419
5419
  <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>
@@ -6012,7 +6012,7 @@ THE SOFTWARE IS PROVIDED &#x22;AS IS&#x22;, WITHOUT WARRANTY OF ANY KIND, EXPRES
6012
6012
  <li class="package">
6013
6013
  <div class="head">
6014
6014
  <span class="name">nodemailer</span>
6015
- <span class="version">10.1.1</span>
6015
+ <span class="version">10.1.7</span>
6016
6016
  <span class="badge">MIT-0</span>
6017
6017
  <span class="badge badge-runtime">runtime</span>
6018
6018
  <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>
@@ -7232,10 +7232,10 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</pre>
7232
7232
  <li class="package">
7233
7233
  <div class="head">
7234
7234
  <span class="name">smtp-server</span>
7235
- <span class="version">3.19.22</span>
7235
+ <span class="version">3.20.2</span>
7236
7236
  <span class="badge">MIT-0</span>
7237
7237
  <span class="badge badge-runtime">runtime</span>
7238
- <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>
7238
+ <span class="links"><a href="https://npmjs.com/package/smtp-server" rel="noopener noreferrer">npm</a> <a href="https://nodemailer.com/extras/smtp-server/" rel="noopener noreferrer">website</a></span>
7239
7239
  </div>
7240
7240
  <details id="lic-170"><summary>Show license text</summary><pre>Copyright (c) 2015-2025 Andris Reinman
7241
7241
 
@@ -7867,7 +7867,7 @@ SUCH DAMAGE.</pre></details>
7867
7867
  <li class="package">
7868
7868
  <div class="head">
7869
7869
  <span class="name">undici</span>
7870
- <span class="version">7.30.0</span>
7870
+ <span class="version">7.30.1</span>
7871
7871
  <span class="badge">MIT</span>
7872
7872
  <span class="badge badge-runtime">runtime</span>
7873
7873
  <span class="links"><a href="https://npmjs.com/package/undici" rel="noopener noreferrer">npm</a> <a href="https://undici.nodejs.org" rel="noopener noreferrer">website</a></span>
@@ -7897,7 +7897,7 @@ SOFTWARE.</pre></details>
7897
7897
  <li class="package">
7898
7898
  <div class="head">
7899
7899
  <span class="name">undici</span>
7900
- <span class="version">6.29.0</span>
7900
+ <span class="version">6.29.1</span>
7901
7901
  <span class="badge">MIT</span>
7902
7902
  <span class="badge badge-runtime">runtime</span>
7903
7903
  <span class="links"><a href="https://npmjs.com/package/undici" rel="noopener noreferrer">npm</a> <a href="https://undici.nodejs.org" rel="noopener noreferrer">website</a></span>
@@ -1,7 +1,7 @@
1
1
  msgid ""
2
2
  msgstr ""
3
3
  "Content-Type: text/plain; charset=ascii\n"
4
- "POT-Creation-Date: 2026-10-15 06:31+0000\n"
4
+ "POT-Creation-Date: 2026-10-18 16:36+0000\n"
5
5
 
6
6
  #: lib/autodetect-imap-settings.js:160
7
7
  msgid ""
@@ -11,101 +11,101 @@ msgid ""
11
11
  "connect your account."
12
12
  msgstr ""
13
13
 
14
- #: lib/tools.js:1672
15
- #: lib/ui-routes/unsubscribe-routes.js:31
16
- #: lib/ui-routes/unsubscribe-routes.js:99
14
+ #: lib/tools.js:1738
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:2553
20
+ #: lib/tools.js:2738
21
21
  msgid "Signature validation failed"
22
22
  msgstr ""
23
23
 
24
- #: lib/tools.js:2576
25
- #: lib/tools.js:2582
26
- #: lib/tools.js:2587
27
- #: lib/ui-routes/account-routes.js:1326
24
+ #: lib/tools.js:2761
25
+ #: lib/tools.js:2767
26
+ #: lib/tools.js:2772
27
+ #: lib/ui-routes/account-routes.js:1327
28
28
  msgid "Invalid or expired account setup URL"
29
29
  msgstr ""
30
30
 
31
- #: lib/ui-routes/account-routes.js:485
32
- #: lib/ui-routes/account-routes.js:529
33
- #: lib/ui-routes/account-routes.js:849
34
- #: lib/ui-routes/account-routes.js:926
35
- #: lib/ui-routes/account-routes.js:939
36
- #: lib/ui-routes/account-routes.js:986
37
- #: lib/ui-routes/account-routes.js:1202
38
- #: lib/ui-routes/account-routes.js:1393
31
+ #: lib/ui-routes/account-routes.js:486
32
+ #: lib/ui-routes/account-routes.js:530
33
+ #: lib/ui-routes/account-routes.js:850
34
+ #: lib/ui-routes/account-routes.js:927
35
+ #: lib/ui-routes/account-routes.js:940
36
+ #: lib/ui-routes/account-routes.js:987
37
+ #: lib/ui-routes/account-routes.js:1203
38
+ #: lib/ui-routes/account-routes.js:1394
39
39
  #: lib/ui-routes/route-helpers.js:350
40
- #: workers/api.js:2306
41
- #: workers/api.js:2381
40
+ #: workers/api.js:2346
41
+ #: workers/api.js:2421
42
42
  msgid "Email Account Setup"
43
43
  msgstr ""
44
44
 
45
- #: lib/ui-routes/account-routes.js:554
46
- #: lib/ui-routes/account-routes.js:586
47
- #: lib/ui-routes/unsubscribe-routes.js:71
45
+ #: lib/ui-routes/account-routes.js:555
46
+ #: lib/ui-routes/account-routes.js:587
47
+ #: lib/ui-routes/unsubscribe-routes.js:74
48
48
  msgid "Invalid request. Check your input and try again."
49
49
  msgstr ""
50
50
 
51
- #: lib/ui-routes/account-routes.js:730
51
+ #: lib/ui-routes/account-routes.js:731
52
52
  msgid "Too many attempts for this setup link. Request a new setup link to continue."
53
53
  msgstr ""
54
54
 
55
- #: lib/ui-routes/account-routes.js:973
56
- #: lib/ui-routes/account-routes.js:1376
55
+ #: lib/ui-routes/account-routes.js:974
56
+ #: lib/ui-routes/account-routes.js:1377
57
57
  msgid "Couldn't set up account. Try again."
58
58
  msgstr ""
59
59
 
60
- #: lib/ui-routes/account-routes.js:1061
61
- #: lib/ui-routes/account-routes.js:1101
62
- #: lib/ui-routes/admin-entities-routes.js:1941
60
+ #: lib/ui-routes/account-routes.js:1062
61
+ #: lib/ui-routes/account-routes.js:1102
62
+ #: lib/ui-routes/admin-entities-routes.js:1953
63
63
  msgid "Server hostname was not found"
64
64
  msgstr ""
65
65
 
66
- #: lib/ui-routes/account-routes.js:1064
67
- #: lib/ui-routes/account-routes.js:1104
68
- #: lib/ui-routes/admin-entities-routes.js:1944
66
+ #: lib/ui-routes/account-routes.js:1065
67
+ #: lib/ui-routes/account-routes.js:1105
68
+ #: lib/ui-routes/admin-entities-routes.js:1956
69
69
  msgid "Invalid username or password"
70
70
  msgstr ""
71
71
 
72
- #: lib/ui-routes/account-routes.js:1069
73
- #: lib/ui-routes/account-routes.js:1121
74
- #: lib/ui-routes/admin-entities-routes.js:1961
72
+ #: lib/ui-routes/account-routes.js:1070
73
+ #: lib/ui-routes/account-routes.js:1122
74
+ #: lib/ui-routes/admin-entities-routes.js:1973
75
75
  msgid "Connection timed out"
76
76
  msgstr ""
77
77
 
78
- #: lib/ui-routes/account-routes.js:1075
79
- #: lib/ui-routes/account-routes.js:1124
80
- #: lib/ui-routes/admin-entities-routes.js:1964
78
+ #: lib/ui-routes/account-routes.js:1076
79
+ #: lib/ui-routes/account-routes.js:1125
80
+ #: lib/ui-routes/admin-entities-routes.js:1976
81
81
  msgid "Could not connect to server"
82
82
  msgstr ""
83
83
 
84
- #: lib/ui-routes/account-routes.js:1088
85
- #: lib/ui-routes/account-routes.js:1092
86
- #: lib/ui-routes/account-routes.js:1113
87
- #: lib/ui-routes/account-routes.js:1117
88
- #: lib/ui-routes/admin-entities-routes.js:1953
89
- #: lib/ui-routes/admin-entities-routes.js:1957
84
+ #: lib/ui-routes/account-routes.js:1089
85
+ #: lib/ui-routes/account-routes.js:1093
86
+ #: lib/ui-routes/account-routes.js:1114
87
+ #: lib/ui-routes/account-routes.js:1118
88
+ #: lib/ui-routes/admin-entities-routes.js:1965
89
+ #: lib/ui-routes/admin-entities-routes.js:1969
90
90
  msgid "TLS protocol error"
91
91
  msgstr ""
92
92
 
93
- #: lib/ui-routes/account-routes.js:1107
94
- #: lib/ui-routes/admin-entities-routes.js:1947
93
+ #: lib/ui-routes/account-routes.js:1108
94
+ #: lib/ui-routes/admin-entities-routes.js:1959
95
95
  msgid "Authentication credentials were not provided"
96
96
  msgstr ""
97
97
 
98
- #: lib/ui-routes/account-routes.js:1110
99
- #: lib/ui-routes/admin-entities-routes.js:1950
98
+ #: lib/ui-routes/account-routes.js:1111
99
+ #: lib/ui-routes/admin-entities-routes.js:1962
100
100
  msgid "OAuth2 authentication failed"
101
101
  msgstr ""
102
102
 
103
- #: lib/ui-routes/account-routes.js:1127
104
- #: lib/ui-routes/admin-entities-routes.js:1967
103
+ #: lib/ui-routes/account-routes.js:1128
104
+ #: lib/ui-routes/admin-entities-routes.js:1979
105
105
  msgid "Unexpected server response"
106
106
  msgstr ""
107
107
 
108
- #: lib/ui-routes/account-routes.js:1314
108
+ #: lib/ui-routes/account-routes.js:1315
109
109
  msgid "Temporary error, please try again"
110
110
  msgstr ""
111
111
 
@@ -119,7 +119,7 @@ msgstr ""
119
119
 
120
120
  #: lib/ui-routes/oauth-config-routes.js:274
121
121
  #: views/config/license.hbs:20
122
- #: views/partials/queue_retention_note.hbs:11
122
+ #: views/partials/queue_retention_note.hbs:10
123
123
  #: views/queues/index.hbs:54
124
124
  #: views/queues/index.hbs:78
125
125
  msgid "%d day"
@@ -161,15 +161,15 @@ msgstr ""
161
161
  msgid "Using credentials from \"%s\""
162
162
  msgstr ""
163
163
 
164
- #: lib/ui-routes/unsubscribe-routes.js:41
165
- #: lib/ui-routes/unsubscribe-routes.js:167
166
- #: lib/ui-routes/unsubscribe-routes.js:197
167
- #: lib/ui-routes/unsubscribe-routes.js:242
164
+ #: lib/ui-routes/unsubscribe-routes.js:44
165
+ #: lib/ui-routes/unsubscribe-routes.js:170
166
+ #: lib/ui-routes/unsubscribe-routes.js:200
167
+ #: lib/ui-routes/unsubscribe-routes.js:245
168
168
  msgid "Subscription Management"
169
169
  msgstr ""
170
170
 
171
- #: lib/ui-routes/unsubscribe-routes.js:186
172
- #: lib/ui-routes/unsubscribe-routes.js:235
171
+ #: lib/ui-routes/unsubscribe-routes.js:189
172
+ #: lib/ui-routes/unsubscribe-routes.js:238
173
173
  msgid "Couldn't process request. Try again."
174
174
  msgstr ""
175
175
 
@@ -414,7 +414,7 @@ msgstr[0] ""
414
414
  msgstr[1] ""
415
415
 
416
416
  #: views/error.hbs:6
417
- #: workers/api.js:3176
417
+ #: workers/api.js:3216
418
418
  msgid "Something went wrong"
419
419
  msgstr ""
420
420
 
@@ -530,37 +530,37 @@ msgid ""
530
530
  "received."
531
531
  msgstr ""
532
532
 
533
- #: workers/api.js:2233
533
+ #: workers/api.js:2273
534
534
  msgid ""
535
535
  "The sign-in was cancelled or the requested access was not granted. Open the "
536
536
  "account setup link again to retry."
537
537
  msgstr ""
538
538
 
539
- #: workers/api.js:2242
539
+ #: workers/api.js:2282
540
540
  msgid "Sign-in with the email provider failed: %s"
541
541
  msgstr ""
542
542
 
543
- #: workers/api.js:2246
543
+ #: workers/api.js:2286
544
544
  msgid "Sign-in with the email provider failed: no authorization code was received"
545
545
  msgstr ""
546
546
 
547
- #: workers/api.js:2252
547
+ #: workers/api.js:2292
548
548
  msgid "Sign-in with the email provider failed: the request state is not valid"
549
549
  msgstr ""
550
550
 
551
- #: workers/api.js:2258
551
+ #: workers/api.js:2298
552
552
  msgid ""
553
553
  "The account setup session has expired or was already used. Open the account "
554
554
  "setup link again to retry."
555
555
  msgstr ""
556
556
 
557
- #: workers/api.js:2265
557
+ #: workers/api.js:2305
558
558
  msgid ""
559
559
  "Sign-in with the email provider failed: the stored setup session is not "
560
560
  "valid"
561
561
  msgstr ""
562
562
 
563
- #: workers/api.js:3175
564
- #: workers/api.js:3287
563
+ #: workers/api.js:3215
564
+ #: workers/api.js:3327
565
565
  msgid "Requested page not found"
566
566
  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
  });
@@ -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 uses STARTTLS if the server supports it."}}
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 uses STARTTLS if the server supports it."}}
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
 
@@ -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 uses STARTTLS if the server supports it."}}
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>