emailengine-app 2.79.7 → 2.79.8

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 (94) hide show
  1. package/.release-please-manifest.json +1 -1
  2. package/CHANGELOG.md +17 -0
  3. package/DOCKER_DEPLOYMENT.md +2 -0
  4. package/bin/emailengine.js +29 -13
  5. package/config/default.toml +13 -3
  6. package/data/google-crawlers.json +7 -1
  7. package/docker-compose.yml +12 -3
  8. package/install.sh +2 -0
  9. package/lib/api-routes/account-routes.js +14 -3
  10. package/lib/api-routes/mailbox-routes.js +4 -1
  11. package/lib/api-routes/message-routes.js +6 -5
  12. package/lib/api-routes/outbox-routes.js +7 -4
  13. package/lib/api-routes/settings-routes.js +34 -25
  14. package/lib/api-routes/stats-routes.js +8 -1
  15. package/lib/api-routes/submit-routes.js +2 -1
  16. package/lib/api-routes/template-routes.js +3 -2
  17. package/lib/bounce-detect.js +45 -0
  18. package/lib/consts.js +5 -1
  19. package/lib/egress-filter.js +39 -4
  20. package/lib/email-client/base-client.js +274 -24
  21. package/lib/email-client/gmail/gmail-api.js +15 -7
  22. package/lib/email-client/gmail-client.js +121 -64
  23. package/lib/email-client/imap/mailbox.js +18 -59
  24. package/lib/email-client/imap-client.js +53 -29
  25. package/lib/email-client/notification-handler.js +11 -2
  26. package/lib/email-client/outlook/graph-api.js +106 -90
  27. package/lib/email-client/outlook-client.js +222 -106
  28. package/lib/generate-text-preview.js +10 -5
  29. package/lib/headers-rewriter.js +1 -1
  30. package/lib/llm-pre-process.js +4 -1
  31. package/lib/mcp/json-schema.js +50 -2
  32. package/lib/outbox.js +22 -5
  33. package/lib/pre-process.js +4 -1
  34. package/lib/rewrite-text-nodes.js +12 -1
  35. package/lib/schemas.js +27 -5
  36. package/lib/settings.js +19 -1
  37. package/lib/sso.js +13 -3
  38. package/lib/submit-progress.js +29 -0
  39. package/lib/templates.js +11 -0
  40. package/lib/tools.js +96 -53
  41. package/lib/ui-routes/account-routes.js +70 -11
  42. package/lib/ui-routes/admin-config-routes.js +7 -21
  43. package/lib/ui-routes/admin-entities-routes.js +42 -12
  44. package/lib/ui-routes/auth-routes.js +87 -28
  45. package/lib/ui-routes/dashboard-routes.js +1 -1
  46. package/lib/ui-routes/internals-routes.js +2 -0
  47. package/lib/ui-routes/mcp-consent-routes.js +5 -2
  48. package/lib/ui-routes/network-config-routes.js +2 -2
  49. package/lib/ui-routes/oauth-config-routes.js +12 -1
  50. package/lib/ui-routes/route-helpers.js +41 -6
  51. package/lib/ui-routes/settings-page.js +10 -0
  52. package/lib/ui-routes/suppression-list-routes.js +16 -5
  53. package/lib/ui-routes/unsubscribe-routes.js +22 -3
  54. package/lib/webhooks.js +14 -2
  55. package/package.json +11 -11
  56. package/sbom.json +1 -1
  57. package/server.js +63 -35
  58. package/static/css/flyonui.css +1 -1
  59. package/static/licenses.html +17 -17
  60. package/translations/messages.pot +49 -49
  61. package/views/account/passkeys.hbs +8 -0
  62. package/views/account/password.hbs +11 -0
  63. package/views/account/security.hbs +18 -7
  64. package/views/accounts/account.hbs +6 -1
  65. package/views/accounts/register/imap-server.hbs +10 -2
  66. package/views/config/ai.hbs +2 -0
  67. package/views/config/branding.hbs +2 -0
  68. package/views/config/email-processing.hbs +2 -0
  69. package/views/config/imap-proxy.hbs +2 -0
  70. package/views/config/logging.hbs +3 -1
  71. package/views/config/mcp.hbs +2 -0
  72. package/views/config/network.hbs +2 -0
  73. package/views/config/oauth/app.hbs +2 -2
  74. package/views/config/security.hbs +2 -0
  75. package/views/config/service.hbs +2 -0
  76. package/views/config/smtp.hbs +2 -0
  77. package/views/config/webhooks.hbs +2 -0
  78. package/views/error.hbs +6 -0
  79. package/views/layout/app.hbs +6 -3
  80. package/views/layout/login.hbs +1 -1
  81. package/views/layout/prompt.hbs +1 -1
  82. package/views/layout/public.hbs +1 -1
  83. package/views/legal.hbs +1 -1
  84. package/views/partials/filter_editor_js.hbs +1 -1
  85. package/views/partials/oauth_form.hbs +5 -5
  86. package/views/partials/ui/env-managed-alert.hbs +19 -0
  87. package/views/partials/webhook_form.hbs +1 -1
  88. package/views/unsubscribe.hbs +6 -0
  89. package/workers/api.js +137 -63
  90. package/workers/imap.js +32 -3
  91. package/workers/smtp.js +7 -0
  92. package/workers/submit.js +25 -1
  93. package/workers/webhooks.js +13 -17
  94. package/lib/reconnection-manager.js +0 -106
@@ -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.79.6</h1>
32
+ <h1>EmailEngine v2.79.7</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">
@@ -126,7 +126,7 @@ OTHER DEALINGS IN THE SOFTWARE.</pre></details>
126
126
  <li class="package">
127
127
  <div class="head">
128
128
  <span class="name">@bull-board/api</span>
129
- <span class="version">9.6.0</span>
129
+ <span class="version">9.6.1</span>
130
130
  <span class="badge">MIT</span>
131
131
  <span class="badge badge-runtime">runtime</span>
132
132
  <span class="links"><a href="https://npmjs.com/package/@bull-board/api" rel="noopener noreferrer">npm</a> <a href="https://github.com/felixmosh/bull-board" rel="noopener noreferrer">website</a></span>
@@ -136,7 +136,7 @@ OTHER DEALINGS IN THE SOFTWARE.</pre></details>
136
136
  <li class="package">
137
137
  <div class="head">
138
138
  <span class="name">@bull-board/hapi</span>
139
- <span class="version">9.6.0</span>
139
+ <span class="version">9.6.1</span>
140
140
  <span class="badge">MIT</span>
141
141
  <span class="badge badge-runtime">runtime</span>
142
142
  <span class="links"><a href="https://npmjs.com/package/@bull-board/hapi" rel="noopener noreferrer">npm</a> <a href="https://github.com/felixmosh/bull-board" rel="noopener noreferrer">website</a></span>
@@ -146,7 +146,7 @@ OTHER DEALINGS IN THE SOFTWARE.</pre></details>
146
146
  <li class="package">
147
147
  <div class="head">
148
148
  <span class="name">@bull-board/ui</span>
149
- <span class="version">9.6.0</span>
149
+ <span class="version">9.6.1</span>
150
150
  <span class="badge">MIT</span>
151
151
  <span class="badge badge-runtime">runtime</span>
152
152
  <span class="links"><a href="https://npmjs.com/package/@bull-board/ui" rel="noopener noreferrer">npm</a> <a href="https://github.com/felixmosh/bull-board" rel="noopener noreferrer">website</a></span>
@@ -232,7 +232,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</pre>
232
232
  <li class="package">
233
233
  <div class="head">
234
234
  <span class="name">@csstools/css-syntax-patches-for-csstree</span>
235
- <span class="version">1.1.11</span>
235
+ <span class="version">1.1.12</span>
236
236
  <span class="badge">MIT-0</span>
237
237
  <span class="badge badge-runtime">runtime</span>
238
238
  <span class="links"><a href="https://npmjs.com/package/@csstools/css-syntax-patches-for-csstree" rel="noopener noreferrer">npm</a> <a href="https://github.com/csstools/postcss-plugins/tree/main/packages/css-syntax-patches-for-csstree#readme" rel="noopener noreferrer">website</a></span>
@@ -2159,7 +2159,7 @@ SOFTWARE.</pre></details>
2159
2159
  <li class="package">
2160
2160
  <div class="head">
2161
2161
  <span class="name">@postalsys/email-ai-tools</span>
2162
- <span class="version">1.13.23</span>
2162
+ <span class="version">1.13.24</span>
2163
2163
  <span class="badge">MIT</span>
2164
2164
  <span class="badge badge-runtime">runtime</span>
2165
2165
  <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>
@@ -3139,7 +3139,7 @@ SOFTWARE.</pre></details>
3139
3139
  <li class="package">
3140
3140
  <div class="head">
3141
3141
  <span class="name">@sentry/core</span>
3142
- <span class="version">10.72.0</span>
3142
+ <span class="version">10.73.0</span>
3143
3143
  <span class="badge">MIT</span>
3144
3144
  <span class="badge badge-runtime">runtime</span>
3145
3145
  <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>
@@ -3169,7 +3169,7 @@ SOFTWARE.</pre></details>
3169
3169
  <li class="package">
3170
3170
  <div class="head">
3171
3171
  <span class="name">@sentry/node</span>
3172
- <span class="version">10.72.0</span>
3172
+ <span class="version">10.73.0</span>
3173
3173
  <span class="badge">MIT</span>
3174
3174
  <span class="badge badge-runtime">runtime</span>
3175
3175
  <span class="links"><a href="https://npmjs.com/package/@sentry/node" rel="noopener noreferrer">npm</a> <a href="https://github.com/getsentry/sentry-javascript/tree/master/packages/node" rel="noopener noreferrer">website</a></span>
@@ -3199,7 +3199,7 @@ SOFTWARE.</pre></details>
3199
3199
  <li class="package">
3200
3200
  <div class="head">
3201
3201
  <span class="name">@sentry/node-core</span>
3202
- <span class="version">10.72.0</span>
3202
+ <span class="version">10.73.0</span>
3203
3203
  <span class="badge">MIT</span>
3204
3204
  <span class="badge badge-runtime">runtime</span>
3205
3205
  <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>
@@ -3229,7 +3229,7 @@ SOFTWARE.</pre></details>
3229
3229
  <li class="package">
3230
3230
  <div class="head">
3231
3231
  <span class="name">@sentry/opentelemetry</span>
3232
- <span class="version">10.72.0</span>
3232
+ <span class="version">10.73.0</span>
3233
3233
  <span class="badge">MIT</span>
3234
3234
  <span class="badge badge-runtime">runtime</span>
3235
3235
  <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>
@@ -3239,7 +3239,7 @@ SOFTWARE.</pre></details>
3239
3239
  <li class="package">
3240
3240
  <div class="head">
3241
3241
  <span class="name">@sentry/server-utils</span>
3242
- <span class="version">10.72.0</span>
3242
+ <span class="version">10.73.0</span>
3243
3243
  <span class="badge">MIT</span>
3244
3244
  <span class="badge badge-runtime">runtime</span>
3245
3245
  <span class="links"><a href="https://npmjs.com/package/@sentry/server-utils" rel="noopener noreferrer">npm</a> <a href="https://github.com/getsentry/sentry-javascript/tree/master/packages/server-utils" rel="noopener noreferrer">website</a></span>
@@ -4112,7 +4112,7 @@ THE SOFTWARE.</pre></details>
4112
4112
  <li class="package">
4113
4113
  <div class="head">
4114
4114
  <span class="name">bullmq</span>
4115
- <span class="version">6.3.3</span>
4115
+ <span class="version">6.3.4</span>
4116
4116
  <span class="badge">MIT</span>
4117
4117
  <span class="badge badge-runtime">runtime</span>
4118
4118
  <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>
@@ -6686,7 +6686,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS &#x22;AS IS&
6686
6686
  <li class="package">
6687
6687
  <div class="head">
6688
6688
  <span class="name">imapflow</span>
6689
- <span class="version">1.7.7</span>
6689
+ <span class="version">1.7.8</span>
6690
6690
  <span class="badge">MIT</span>
6691
6691
  <span class="badge badge-runtime">runtime</span>
6692
6692
  <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>
@@ -7307,7 +7307,7 @@ THE SOFTWARE IS PROVIDED &#x22;AS IS&#x22;, WITHOUT WARRANTY OF ANY KIND, EXPRES
7307
7307
  <li class="package">
7308
7308
  <div class="head">
7309
7309
  <span class="name">mailparser</span>
7310
- <span class="version">3.9.19</span>
7310
+ <span class="version">3.9.20</span>
7311
7311
  <span class="badge">MIT</span>
7312
7312
  <span class="badge badge-runtime">runtime</span>
7313
7313
  <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>
@@ -8031,7 +8031,7 @@ THE SOFTWARE IS PROVIDED &#x22;AS IS&#x22;, WITHOUT WARRANTY OF ANY KIND, EXPRES
8031
8031
  <li class="package">
8032
8032
  <div class="head">
8033
8033
  <span class="name">nodemailer</span>
8034
- <span class="version">9.1.0</span>
8034
+ <span class="version">9.1.1</span>
8035
8035
  <span class="badge">MIT-0</span>
8036
8036
  <span class="badge badge-runtime">runtime</span>
8037
8037
  <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>
@@ -8770,7 +8770,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.</pre></details>
8770
8770
  <li class="package">
8771
8771
  <div class="head">
8772
8772
  <span class="name">pubface</span>
8773
- <span class="version">1.1.8</span>
8773
+ <span class="version">1.1.9</span>
8774
8774
  <span class="badge">MIT-0</span>
8775
8775
  <span class="badge badge-runtime">runtime</span>
8776
8776
  <span class="links"><a href="https://npmjs.com/package/pubface" rel="noopener noreferrer">npm</a> <a href="https://github.com/postalsys/pubface" rel="noopener noreferrer">website</a></span>
@@ -9480,7 +9480,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</pre>
9480
9480
  <li class="package">
9481
9481
  <div class="head">
9482
9482
  <span class="name">smtp-server</span>
9483
- <span class="version">3.19.5</span>
9483
+ <span class="version">3.19.6</span>
9484
9484
  <span class="badge">MIT-0</span>
9485
9485
  <span class="badge badge-runtime">runtime</span>
9486
9486
  <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>
@@ -1,7 +1,7 @@
1
1
  msgid ""
2
2
  msgstr ""
3
3
  "Content-Type: text/plain; charset=ascii\n"
4
- "POT-Creation-Date: 2026-08-31 16:45+0000\n"
4
+ "POT-Creation-Date: 2026-09-01 19:01+0000\n"
5
5
 
6
6
  #: views/error.hbs:6
7
7
  #: workers/api.js:3160
@@ -56,48 +56,12 @@ msgstr ""
56
56
  msgid "Try Again"
57
57
  msgstr ""
58
58
 
59
- #: views/unsubscribe.hbs:7
60
- #: views/unsubscribe.hbs:60
61
- #: views/unsubscribe.hbs:75
62
- msgid "Unsubscribe"
63
- msgstr ""
64
-
65
- #: views/unsubscribe.hbs:9
66
- msgid "Your email address was unsubscribed."
67
- msgstr ""
68
-
69
- #: views/unsubscribe.hbs:11
70
- msgid "Was this a mistake? Click <a%s>here</a> to re-subscribe."
71
- msgstr ""
72
-
73
- #: views/unsubscribe.hbs:18
74
- msgid "Re-subscribe"
75
- msgstr ""
76
-
77
- #: views/unsubscribe.hbs:24
78
- msgid "Are you sure you want to re-subscribe your email address <em>%s</em>?"
79
- msgstr ""
80
-
81
- #: views/unsubscribe.hbs:33
82
- #: views/accounts/register/imap-server.hbs:278
83
- msgid "Close"
84
- msgstr ""
85
-
86
- #: views/unsubscribe.hbs:35
87
- msgid "Subscribe"
88
- msgstr ""
89
-
90
- #: views/unsubscribe.hbs:54
91
- msgid "Subscription resumed"
92
- msgstr ""
93
-
94
- #: views/unsubscribe.hbs:56
95
- msgid "Your email address <em>%s</em> was re-subscribed."
59
+ #: views/accounts/register/index.hbs:6
60
+ msgid "Choose your email account provider"
96
61
  msgstr ""
97
62
 
98
- #: views/unsubscribe.hbs:70
99
- #: views/accounts/register/imap.hbs:25
100
- msgid "Email address"
63
+ #: views/accounts/register/index.hbs:19
64
+ msgid "Standard IMAP"
101
65
  msgstr ""
102
66
 
103
67
  #: views/accounts/register/imap.hbs:13
@@ -108,6 +72,11 @@ msgstr ""
108
72
  msgid "Enter your full name"
109
73
  msgstr ""
110
74
 
75
+ #: views/accounts/register/imap.hbs:25
76
+ #: views/unsubscribe.hbs:70
77
+ msgid "Email address"
78
+ msgstr ""
79
+
111
80
  #: views/accounts/register/imap.hbs:35
112
81
  msgid "This setup link is restricted to this email address"
113
82
  msgstr ""
@@ -130,14 +99,6 @@ msgstr ""
130
99
  msgid "Continue"
131
100
  msgstr ""
132
101
 
133
- #: views/accounts/register/index.hbs:6
134
- msgid "Choose your email account provider"
135
- msgstr ""
136
-
137
- #: views/accounts/register/index.hbs:19
138
- msgid "Standard IMAP"
139
- msgstr ""
140
-
141
102
  #: views/accounts/register/imap-server.hbs:22
142
103
  msgid "IMAP"
143
104
  msgstr ""
@@ -226,6 +187,11 @@ msgstr ""
226
187
  msgid "We couldn't connect with these settings. Check the errors below."
227
188
  msgstr ""
228
189
 
190
+ #: views/accounts/register/imap-server.hbs:278
191
+ #: views/unsubscribe.hbs:33
192
+ msgid "Close"
193
+ msgstr ""
194
+
229
195
  #: views/accounts/register/imap-server.hbs:405
230
196
  msgid "Error"
231
197
  msgstr ""
@@ -251,6 +217,40 @@ msgstr ""
251
217
  msgid "Request failed."
252
218
  msgstr ""
253
219
 
220
+ #: views/unsubscribe.hbs:7
221
+ #: views/unsubscribe.hbs:60
222
+ #: views/unsubscribe.hbs:75
223
+ msgid "Unsubscribe"
224
+ msgstr ""
225
+
226
+ #: views/unsubscribe.hbs:9
227
+ msgid "Your email address was unsubscribed."
228
+ msgstr ""
229
+
230
+ #: views/unsubscribe.hbs:11
231
+ msgid "Was this a mistake? Click <a%s>here</a> to re-subscribe."
232
+ msgstr ""
233
+
234
+ #: views/unsubscribe.hbs:18
235
+ msgid "Re-subscribe"
236
+ msgstr ""
237
+
238
+ #: views/unsubscribe.hbs:24
239
+ msgid "Are you sure you want to re-subscribe your email address <em>%s</em>?"
240
+ msgstr ""
241
+
242
+ #: views/unsubscribe.hbs:35
243
+ msgid "Subscribe"
244
+ msgstr ""
245
+
246
+ #: views/unsubscribe.hbs:54
247
+ msgid "Subscription resumed"
248
+ msgstr ""
249
+
250
+ #: views/unsubscribe.hbs:56
251
+ msgid "Your email address <em>%s</em> was re-subscribed."
252
+ msgstr ""
253
+
254
254
  #: views/account-identity-error.hbs:7
255
255
  msgid "Wrong Email Account"
256
256
  msgstr ""
@@ -11,6 +11,14 @@
11
11
  <h6 class="card-title text-primary">Passkeys</h6>
12
12
  <p class="text-base-content/60 mb-0 text-sm">Sign in with Touch ID, Windows Hello or a security key. A
13
13
  passkey is a complete sign-in on its own - no password and no verification code.</p>
14
+ {{#if passkeys.length}}
15
+ {{!-- The RP ID is read from the Service URL on every ceremony, so a changed hostname
16
+ strands every passkey below while the login page still offers the button - this
17
+ is where an operator learns why --}}
18
+ <p class="text-base-content/60 mb-0 mt-1 text-sm">Registered for <strong>{{rpId}}</strong>, the hostname
19
+ of the Service URL. If that hostname changes, these passkeys stop working and have to be registered
20
+ again.</p>
21
+ {{/if}}
14
22
  </div>
15
23
  {{!-- ui/tooltip renders bare when the text is empty, so the same call covers both the
16
24
  live button and the one disabled with the reason on it --}}
@@ -29,6 +29,17 @@
29
29
  {{/ui/form-field}}
30
30
  </div>
31
31
 
32
+ {{#if passkeyCount}}
33
+ {{!-- The route removes every passkey with the old password (see the POST handler for
34
+ why), which the person at this form has to know before they submit it --}}
35
+ <div class="alert alert-soft alert-warning text-sm">
36
+ <span class="icon-[tabler--alert-triangle] size-5 shrink-0"></span>
37
+ <span>Changing the password removes {{#equals passkeyCount 1}}the registered passkey{{else}}all
38
+ {{passkeyCount}} registered passkeys{{/equals}}. Register them again afterwards to keep signing in
39
+ with them.</span>
40
+ </div>
41
+ {{/if}}
42
+
32
43
  {{#if authData.enabled}}
33
44
  <div>
34
45
  {{#> ui/form-field id="password0" label="Current password" error=errors.password0}}
@@ -140,17 +140,28 @@
140
140
  </div>
141
141
 
142
142
  {{#> ui/modal id="disableTfaModal" title="Disable two-factor authentication" titleId="disableTfaModalLabel"}}
143
- <div class="modal-body">
144
- <p>Disabling two-factor authentication will make your account less secure. Are you sure you want to continue?</p>
145
- </div>
146
- <div class="modal-footer">
147
- <form method="post" action="/admin/account/tfa/disable" class="flex gap-2">
143
+ <form method="post" action="/admin/account/tfa/disable">
144
+ <div class="modal-body space-y-4">
145
+ <p>Disabling two-factor authentication will make your account less secure. Are you sure you want to continue?</p>
146
+
147
+ <div>
148
+ {{!-- The route verifies this server-side: switching the second factor off is a step
149
+ down that a live session alone must not be able to take, the same rule the
150
+ password change and passkey registration follow --}}
151
+ {{#> ui/form-field id="tfa-disable-password" label="Current password"}}
152
+ <input type="password" class="input" id="tfa-disable-password" name="password" maxlength="256"
153
+ autocomplete="current-password" required />
154
+ <span class="helper-text">Confirm your identity before switching off two-factor authentication.</span>
155
+ {{/ui/form-field}}
156
+ </div>
157
+ </div>
158
+ <div class="modal-footer">
148
159
  <input type="hidden" name="crumb" value="{{crumb}}" />
149
160
  <input type="hidden" name="type" value="totp" />
150
161
  {{> ui/btn label="Cancel" variant="neutral" style="soft" overlay="#disableTfaModal"}}
151
162
  {{> ui/btn label="Disable 2FA" variant="error" type="submit"}}
152
- </form>
153
- </div>
163
+ </div>
164
+ </form>
154
165
  {{/ui/modal}}
155
166
 
156
167
  {{#> ui/modal id="enableTfaModal" title="Enable two-factor authentication" titleId="enableTfaModalLabel"}}
@@ -280,7 +280,7 @@
280
280
 
281
281
  {{#if account.oauth2.generatedStr}}
282
282
  <span class="local-date-time code-link" data-time="{{account.oauth2.generatedStr}}"
283
- title="{{account.oauth2.generatedStr}}"></span> &mdash;
283
+ title="{{account.oauth2.generatedStr}}"></span> -
284
284
  {{else}}
285
285
  To
286
286
  {{/if}}
@@ -1449,6 +1449,11 @@ submitLabel="Delete account"}}
1449
1449
  uiModal.open('#testSendModal');
1450
1450
 
1451
1451
  createSmtpTestAccount(testData.account, testData.gateway).then((result) => {
1452
+ if (result.error) {
1453
+ // the route answers 200 with { error } when the account could not be loaded or
1454
+ // the probe could not be queued - polling with no user would only report "Not Found"
1455
+ throw new Error(result.error);
1456
+ }
1452
1457
  return waitForTestResults(result.user);
1453
1458
  }).then(results => {
1454
1459
  document.getElementById('test-send-pending-message').classList.add('hidden');
@@ -17,6 +17,14 @@ dropdown allows skipping the test. --}}
17
17
 
18
18
  <input type="hidden" id="tz" name="tz" value="{{values.tz}}">
19
19
 
20
+ {{#if autodetectFailed}}
21
+ <div class="ee-alert ee-alert-info">
22
+ <span class="ee-icon ee-icon-alert-circle"></span>
23
+ <span>{{_ "Server settings could not be detected automatically for %s. Enter them below." templateLocale
24
+ (escapeHtml autodetectDomain) }}</span>
25
+ </div>
26
+ {{/if}}
27
+
20
28
  <div class="ee-form-grid">
21
29
  <div class="ee-form-col">
22
30
  <h6>{{_ "IMAP" templateLocale }}</h6>
@@ -548,8 +556,8 @@ focus ring on) the corner close button --}}
548
556
  // enable TLS checkbox
549
557
  document.getElementById(`${proto}_secure`).checked = true;
550
558
  }
551
- if (portNr === 110) {
552
- // enable TLS checkbox
559
+ if (portNr === 143) {
560
+ // plaintext IMAP port (STARTTLS), so clear the TLS checkbox
553
561
  document.getElementById(`${proto}_secure`).checked = false;
554
562
  }
555
563
  break;
@@ -4,6 +4,8 @@
4
4
  content to OpenAI and adds the AI response to your webhooks.
5
5
  </p>
6
6
 
7
+ {{> ui/env-managed-alert}}
8
+
7
9
  <form method="post" id="settings-form" action="/admin/config/ai">
8
10
  {{!-- no id: the layout already renders the #crumb element the script reads --}}
9
11
  <input type="hidden" name="crumb" value="{{crumb}}" />
@@ -2,6 +2,8 @@
2
2
 
3
3
  <p class="mb-6">Customize public pages like authentication forms, error pages, and unsubscribe pages.</p>
4
4
 
5
+ {{> ui/env-managed-alert}}
6
+
5
7
  <form method="post" id="settings-form" action="/admin/config/branding">
6
8
  {{!-- no id: the layout already renders the #crumb element the script reads --}}
7
9
  <input type="hidden" name="crumb" value="{{crumb}}" />
@@ -2,6 +2,8 @@
2
2
 
3
3
  <p class="mb-6">Control how EmailEngine delivers, indexes, and tracks email messages.</p>
4
4
 
5
+ {{> ui/env-managed-alert}}
6
+
5
7
  <form method="post" action="/admin/config/email-processing">
6
8
  {{!-- no id: the layout already renders the #crumb element the script reads --}}
7
9
  <input type="hidden" name="crumb" value="{{crumb}}" />
@@ -15,6 +15,8 @@
15
15
 
16
16
  <p class="mb-6">Configure your IMAP proxy server below.</p>
17
17
 
18
+ {{> ui/env-managed-alert}}
19
+
18
20
  <form method="post" action="/admin/config/imap-proxy">
19
21
  {{!-- no id: the layout already renders the #crumb element the script reads --}}
20
22
  <input type="hidden" name="crumb" value="{{crumb}}" />
@@ -5,6 +5,8 @@
5
5
  activity (credentials and message content are never logged). Download logs anytime for troubleshooting.
6
6
  </p>
7
7
 
8
+ {{> ui/env-managed-alert}}
9
+
8
10
  <form method="post" action="/admin/config/logging">
9
11
  {{!-- no id: the layout already renders the #crumb element scripts read --}}
10
12
  <input type="hidden" name="crumb" value="{{crumb}}" />
@@ -14,7 +16,7 @@
14
16
  {{> ui/setting-ref name="logs.all"}}
15
17
  {{> ui/checkbox id="settingsLogsAll" name="all" label="Enable Logging for All Accounts"
16
18
  checked=values.all error=errors.all}}
17
- <span class="helper-text">Turn on logging for every connected account. Use with caution-this can impact
19
+ <span class="helper-text">Turn on logging for every connected account. Use with caution, this can impact
18
20
  performance with many accounts.<br>
19
21
  <strong>Restart required</strong> after changing this setting.</span>
20
22
  </div>
@@ -33,6 +33,8 @@
33
33
 
34
34
  <div id="mcp-settings" role="tabpanel" aria-labelledby="mcp-settings-tab">
35
35
 
36
+ {{> ui/env-managed-alert}}
37
+
36
38
  <form method="post" action="/admin/config/mcp">
37
39
  {{!-- no id: the layout already renders the #crumb element scripts read --}}
38
40
  <input type="hidden" name="crumb" value="{{crumb}}" />
@@ -2,6 +2,8 @@
2
2
 
3
3
  <p class="mb-6">Control how EmailEngine connects to email servers and routes traffic.</p>
4
4
 
5
+ {{> ui/env-managed-alert}}
6
+
5
7
  <form method="post" action="/admin/config/network">
6
8
  {{!-- no id: the layout already renders the #crumb element the script reads --}}
7
9
  <input type="hidden" name="crumb" value="{{crumb}}" />
@@ -88,7 +88,7 @@
88
88
 
89
89
  {{#if app.cloudData}}
90
90
  <dt>Cloud environment</dt>
91
- <dd>{{app.cloudData.name}} <em>&mdash;
91
+ <dd>{{app.cloudData.name}} <em>-
92
92
  {{app.cloudData.description}}</em></dd>
93
93
  {{/if}}
94
94
 
@@ -170,7 +170,7 @@
170
170
  {{#if app.pubSubAppData}}
171
171
  <a href="/admin/config/oauth/app/{{app.pubSubAppData.id}}"
172
172
  class="link link-animated">{{app.pubSubAppData.name}}{{#if
173
- app.pubSubAppData.description}} &mdash; <em>{{app.pubSubAppData.description}}</em>{{/if}}</a>
173
+ app.pubSubAppData.description}} - <em>{{app.pubSubAppData.description}}</em>{{/if}}</a>
174
174
  {{else}}
175
175
  <em>App set but not found</em>
176
176
  {{/if}}
@@ -2,6 +2,8 @@
2
2
 
3
3
  <p class="mb-6">Control API authentication, secrets, and connection security for this EmailEngine instance.</p>
4
4
 
5
+ {{> ui/env-managed-alert}}
6
+
5
7
  <form method="post" action="/admin/config/security">
6
8
  {{!-- no id: the layout already renders the #crumb element the script reads --}}
7
9
  <input type="hidden" name="crumb" value="{{crumb}}" />
@@ -2,6 +2,8 @@
2
2
 
3
3
  <p class="mb-6">Configure core settings for your EmailEngine instance.</p>
4
4
 
5
+ {{> ui/env-managed-alert}}
6
+
5
7
  <form method="post" action="/admin/config/service">
6
8
  {{!-- no id: the layout already renders the #crumb element the script reads --}}
7
9
  <input type="hidden" name="crumb" value="{{crumb}}" />
@@ -9,6 +9,8 @@
9
9
  interface supports legacy systems that require traditional email sending.</p>
10
10
  <p class="mb-6">Configure your SMTP server settings below.</p>
11
11
 
12
+ {{> ui/env-managed-alert}}
13
+
12
14
  <form method="post" action="/admin/config/smtp">
13
15
  {{!-- no id: the layout already renders the #crumb element the script reads --}}
14
16
  <input type="hidden" name="crumb" value="{{crumb}}" />
@@ -27,6 +27,8 @@ class="mb-1"}}
27
27
  {{/if}}
28
28
  {{/if}}
29
29
 
30
+ {{> ui/env-managed-alert}}
31
+
30
32
  <form method="post" id="settings-form" action="/admin/config/webhooks">
31
33
  {{!-- no id: the layout already renders the #crumb element the script reads --}}
32
34
  <input type="hidden" name="crumb" value="{{crumb}}" />
package/views/error.hbs CHANGED
@@ -17,9 +17,15 @@ pages, blocked access, failed form submissions without a friendlier page). --}}
17
17
  <a href="javascript:history.back()" class="ee-btn ee-btn-neutral ee-btn-soft ee-btn-sm">
18
18
  <span class="ee-icon ee-icon-arrow-left"></span> {{_ "Go back" templateLocale}}
19
19
  </a>
20
+ {{!-- The dashboard is an admin destination. A mailbox owner on the hosted form or a
21
+ list recipient on an unsubscribe link has no business there, so the button only
22
+ shows for a requester who holds an admin session, or on an instance that has no
23
+ admin login at all (showDashboardLink, set by the view context in workers/api.js). --}}
24
+ {{#if showDashboardLink}}
20
25
  <a href="/admin" class="ee-btn ee-btn-primary ee-btn-sm">
21
26
  <span class="ee-icon ee-icon-home"></span> {{_ "Dashboard" templateLocale}}
22
27
  </a>
28
+ {{/if}}
23
29
  </div>
24
30
  </div>
25
31
  <div class="ee-error-card-icon">
@@ -9,7 +9,7 @@
9
9
  <meta name="description" content="EmailEngine Application page; The Ultimate Email API for Developers" />
10
10
  <meta name="author" content="Postal Systems OÜ">
11
11
 
12
- <title>{{#if pageTitleFull}}{{pageTitleFull}}{{else}}{{pageBrandName}}{{#if pageTitle}} &ndash;
12
+ <title>{{#if pageTitleFull}}{{pageTitleFull}}{{else}}{{pageBrandName}}{{#if pageTitle}} -
13
13
  {{pageTitle}}{{/if}}{{/if}}</title>
14
14
 
15
15
  {{> head_assets}}
@@ -53,7 +53,10 @@
53
53
 
54
54
  <!-- Topbar -->
55
55
  <header class="bg-base-100 border-base-content/20 sticky top-0 z-30 border-b">
56
- <nav class="navbar flex items-center gap-2 px-6 py-2">
56
+ {{!-- flex-wrap: on phones the search form drops to a full-width second row (see its
57
+ max-sm classes) instead of disappearing, so the account search and the state
58
+ filter stay reachable without a redesign of the bar --}}
59
+ <nav class="navbar flex flex-wrap items-center gap-2 px-6 py-2">
57
60
 
58
61
  <button type="button" class="btn btn-text btn-circle btn-sm lg:hidden" aria-haspopup="dialog"
59
62
  aria-expanded="false" aria-controls="layout-sidebar" data-overlay="#layout-sidebar"
@@ -63,7 +66,7 @@
63
66
 
64
67
  {{#if searchTarget}}
65
68
  <!-- Topbar search -->
66
- <form class="hidden sm:flex items-center gap-2 grow max-w-xl" method="get" action="{{searchTarget}}">
69
+ <form class="flex items-center gap-2 grow max-w-xl max-sm:order-last max-sm:w-full max-sm:max-w-none" method="get" action="{{searchTarget}}">
67
70
 
68
71
  {{#if stateOptions}}
69
72
  <div class="dropdown relative inline-flex shrink-0">
@@ -9,7 +9,7 @@
9
9
  <meta name="description" content="EmailEngine Application page; The Ultimate Email API for Developers" />
10
10
  <meta name="author" content="Postal Systems OÜ">
11
11
 
12
- <title>{{#if pageTitleFull}}{{pageTitleFull}}{{else}}{{pageBrandName}}{{#if pageTitle}} &ndash;
12
+ <title>{{#if pageTitleFull}}{{pageTitleFull}}{{else}}{{pageBrandName}}{{#if pageTitle}} -
13
13
  {{pageTitle}}{{/if}}{{/if}}</title>
14
14
 
15
15
  {{> head_assets}}
@@ -9,7 +9,7 @@
9
9
  <meta name="description" content="EmailEngine Application page; The Ultimate Email API for Developers" />
10
10
  <meta name="author" content="Postal Systems OÜ">
11
11
 
12
- <title>{{#if pageTitleFull}}{{pageTitleFull}}{{else}}{{pageBrandName}}{{#if pageTitle}} &ndash;
12
+ <title>{{#if pageTitleFull}}{{pageTitleFull}}{{else}}{{pageBrandName}}{{#if pageTitle}} -
13
13
  {{pageTitle}}{{/if}}{{/if}}</title>
14
14
 
15
15
  {{> head_assets}}
@@ -9,7 +9,7 @@
9
9
  <meta name="description" content="EmailEngine Application page; The Ultimate Email API for Developers" />
10
10
  <meta name="author" content="Postal Systems OÜ">
11
11
 
12
- <title>{{#if pageTitleFull}}{{pageTitleFull}}{{else}}{{pageBrandName}}{{#if pageTitle}} &ndash;
12
+ <title>{{#if pageTitleFull}}{{pageTitleFull}}{{else}}{{pageBrandName}}{{#if pageTitle}} -
13
13
  {{pageTitle}}{{/if}}{{/if}}</title>
14
14
 
15
15
  <link rel="apple-touch-icon" href="/static/favicon/apple-touch-icon.png" sizes="180x180" />
package/views/legal.hbs CHANGED
@@ -38,7 +38,7 @@
38
38
 
39
39
 
40
40
  </strong>
41
- &mdash; <a class="link link-animated" href="/admin/config/license">View license details</a>
41
+ - <a class="link link-animated" href="/admin/config/license">View license details</a>
42
42
  </li>
43
43
 
44
44
  <li class="px-6 py-4">