emailengine-app 2.76.0 → 2.78.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 (165) hide show
  1. package/.github/workflows/release.yaml +24 -19
  2. package/.github/workflows/test.yml +80 -0
  3. package/.ncurc.js +14 -2
  4. package/.release-please-manifest.json +3 -0
  5. package/CHANGELOG.md +54 -0
  6. package/README.md +1 -1
  7. package/bin/emailengine.js +1 -1
  8. package/data/google-crawlers.json +1 -1
  9. package/encrypt.js +72 -5
  10. package/lib/account/expected-identity.js +88 -0
  11. package/lib/account.js +75 -26
  12. package/lib/address-strategies.js +18 -0
  13. package/lib/api-reference/code-samples.js +194 -0
  14. package/lib/api-reference/format.js +193 -0
  15. package/lib/api-reference/index.js +222 -0
  16. package/lib/api-reference/model.js +338 -0
  17. package/lib/api-reference/schema-tree.js +366 -0
  18. package/lib/api-routes/account-routes.js +136 -39
  19. package/lib/api-routes/behavior-notes.js +57 -0
  20. package/lib/api-routes/blocklist-routes.js +9 -9
  21. package/lib/api-routes/changes-routes.js +6 -4
  22. package/lib/api-routes/chat-routes.js +3 -3
  23. package/lib/api-routes/delivery-test-routes.js +24 -6
  24. package/lib/api-routes/export-routes.js +14 -12
  25. package/lib/api-routes/gateway-routes.js +11 -11
  26. package/lib/api-routes/license-routes.js +7 -7
  27. package/lib/api-routes/mailbox-routes.js +18 -9
  28. package/lib/api-routes/message-routes.js +55 -35
  29. package/lib/api-routes/oauth2-app-routes.js +22 -16
  30. package/lib/api-routes/outbox-routes.js +7 -7
  31. package/lib/api-routes/pubsub-routes.js +3 -3
  32. package/lib/api-routes/settings-routes.js +10 -9
  33. package/lib/api-routes/stats-routes.js +3 -3
  34. package/lib/api-routes/submit-routes.js +58 -8
  35. package/lib/api-routes/template-routes.js +13 -13
  36. package/lib/api-routes/token-routes.js +15 -10
  37. package/lib/api-routes/webhook-route-routes.js +5 -5
  38. package/lib/append-list.js +3 -14
  39. package/lib/arf-detect.js +23 -1
  40. package/lib/autodetect-imap-settings.js +40 -16
  41. package/lib/base32.js +30 -0
  42. package/lib/bounce-detect.js +182 -62
  43. package/lib/consts.js +7 -0
  44. package/lib/egress-filter.js +89 -8
  45. package/lib/email-client/base-client.js +72 -82
  46. package/lib/email-client/gmail-client.js +3 -3
  47. package/lib/email-client/imap/listing-diff.js +3 -3
  48. package/lib/email-client/imap/mailbox.js +5 -69
  49. package/lib/email-client/imap-client.js +3 -2
  50. package/lib/email-client/message-builder.js +13 -13
  51. package/lib/email-client/outlook-client.js +1 -1
  52. package/lib/enum-descriptions.js +130 -0
  53. package/lib/export.js +1 -1
  54. package/lib/gateway.js +1 -1
  55. package/lib/get-raw-email.js +1 -1
  56. package/lib/imapproxy/imap-core/lib/imap-connection.js +2 -2
  57. package/lib/imapproxy/imap-core/lib/imap-server.js +2 -2
  58. package/lib/imapproxy/imap-server.js +42 -28
  59. package/lib/imapproxy/upstream-client.js +38 -0
  60. package/lib/license-beacon.js +1 -1
  61. package/lib/llm-pre-process.js +1 -1
  62. package/lib/msgpack.js +62 -0
  63. package/lib/oauth/decode-jwt-payload.js +39 -0
  64. package/lib/oauth/outlook-identity.js +61 -0
  65. package/lib/oauth/retry-setup.js +38 -0
  66. package/lib/oauth2-apps.js +10 -4
  67. package/lib/openapi/build-document.js +318 -0
  68. package/lib/openapi/index.js +95 -0
  69. package/lib/openapi/joi-schema.js +523 -0
  70. package/lib/outbox.js +66 -3
  71. package/lib/pre-process.js +1 -1
  72. package/lib/read-env-value.js +37 -0
  73. package/lib/routes-ui.js +5 -1
  74. package/lib/schemas.js +88 -17
  75. package/lib/swagger-options.js +173 -0
  76. package/lib/templates.js +1 -1
  77. package/lib/tokens.js +70 -6
  78. package/lib/tools.js +117 -48
  79. package/lib/totp.js +67 -0
  80. package/lib/ui-routes/account-routes.js +91 -15
  81. package/lib/ui-routes/admin-config-routes.js +2 -7
  82. package/lib/ui-routes/admin-entities-routes.js +3 -0
  83. package/lib/ui-routes/auth-routes.js +6 -24
  84. package/lib/ui-routes/dashboard-routes.js +2 -26
  85. package/lib/ui-routes/reference-routes.js +198 -0
  86. package/lib/ui-routes/route-helpers.js +39 -0
  87. package/lib/utils/is-email.js +34 -0
  88. package/lib/utils/to-camel-case.js +17 -0
  89. package/lib/webhook-egress.js +37 -0
  90. package/lib/webhooks.js +1 -1
  91. package/package.json +27 -31
  92. package/prepare-bundle-deps.sh +28 -0
  93. package/release-please-config.json +11 -0
  94. package/sbom.json +1 -1
  95. package/server.js +11 -3
  96. package/static/css/flyonui.css +1 -1
  97. package/static/css/public.css +3 -0
  98. package/static/css/src/app.tailwind.css +113 -0
  99. package/static/js/app.js +69 -0
  100. package/static/js/ee-client.js +238 -8
  101. package/static/js/reference.js +1021 -0
  102. package/static/js/ui.js +61 -33
  103. package/static/licenses.html +658 -1560
  104. package/translations/README.md +64 -0
  105. package/translations/de.mo +0 -0
  106. package/translations/de.po +164 -120
  107. package/translations/en.po +200 -161
  108. package/translations/et.mo +0 -0
  109. package/translations/et.po +163 -120
  110. package/translations/fr.mo +0 -0
  111. package/translations/fr.po +163 -120
  112. package/translations/ja.mo +0 -0
  113. package/translations/ja.po +163 -120
  114. package/translations/messages.pot +84 -54
  115. package/translations/nl.mo +0 -0
  116. package/translations/nl.po +164 -120
  117. package/translations/pl.mo +0 -0
  118. package/translations/pl.po +163 -120
  119. package/views/account-identity-error.hbs +34 -0
  120. package/views/accounts/edit.hbs +1 -0
  121. package/views/accounts/register/imap.hbs +12 -2
  122. package/views/config/ai.hbs +1 -1
  123. package/views/config/document-store/chat.hbs +5 -5
  124. package/views/config/document-store/index.hbs +2 -2
  125. package/views/config/document-store/pre-processing/index.hbs +1 -1
  126. package/views/config/email-processing.hbs +1 -1
  127. package/views/config/imap-proxy.hbs +1 -1
  128. package/views/config/license.hbs +1 -1
  129. package/views/config/oauth/index.hbs +3 -3
  130. package/views/config/security.hbs +1 -1
  131. package/views/config/smtp.hbs +2 -2
  132. package/views/dashboard.hbs +1 -1
  133. package/views/layout/app.hbs +43 -8
  134. package/views/oauth-scope-error.hbs +1 -1
  135. package/views/partials/oauth_form.hbs +4 -4
  136. package/views/partials/reference/anchor-link.hbs +20 -0
  137. package/views/partials/reference/disclosure.hbs +37 -0
  138. package/views/partials/reference/nav.hbs +120 -0
  139. package/views/partials/reference/operation.hbs +127 -0
  140. package/views/partials/reference/params.hbs +20 -0
  141. package/views/partials/reference/schema-node.hbs +99 -0
  142. package/views/partials/reference/schema.hbs +19 -0
  143. package/views/partials/reference/section-heading.hbs +16 -0
  144. package/views/partials/reference/token-alert.hbs +49 -0
  145. package/views/partials/reference/try-field.hbs +31 -0
  146. package/views/partials/reference/try-it.hbs +78 -0
  147. package/views/partials/side_menu.hbs +1 -1
  148. package/views/partials/ui/badge.hbs +4 -2
  149. package/views/partials/ui/page-header.hbs +1 -1
  150. package/views/partials/ui/search-input.hbs +31 -0
  151. package/views/partials/ui/setting-ref.hbs +1 -1
  152. package/views/partials/ui/stat-card.hbs +4 -2
  153. package/views/partials/ui/tab.hbs +6 -1
  154. package/views/partials/ui/tabs.hbs +2 -2
  155. package/views/reference/index.hbs +76 -0
  156. package/views/reference/redirect.hbs +49 -0
  157. package/views/reference/tag.hbs +28 -0
  158. package/views/reference/token.hbs +49 -0
  159. package/views/tokens/index.hbs +9 -1
  160. package/views/webhooks/index.hbs +3 -3
  161. package/workers/api.js +194 -302
  162. package/workers/imap.js +1 -1
  163. package/workers/submit.js +1 -1
  164. package/workers/webhooks.js +2 -13
  165. package/views/swagger/index.hbs +0 -82
@@ -1,10 +1,10 @@
1
1
  msgid ""
2
2
  msgstr ""
3
3
  "Content-Type: text/plain; charset=ascii\n"
4
- "POT-Creation-Date: 2026-07-29 19:18+0000\n"
4
+ "POT-Creation-Date: 2026-08-12 07:25+0000\n"
5
5
 
6
6
  #: views/error.hbs:6
7
- #: workers/api.js:3019
7
+ #: workers/api.js:2913
8
8
  msgid "Something went wrong"
9
9
  msgstr ""
10
10
 
@@ -52,6 +52,7 @@ msgid ""
52
52
  msgstr ""
53
53
 
54
54
  #: views/oauth-scope-error.hbs:28
55
+ #: views/account-identity-error.hbs:32
55
56
  msgid "Try Again"
56
57
  msgstr ""
57
58
 
@@ -95,10 +96,40 @@ msgid "Your email address <em>%s</em> was re-subscribed."
95
96
  msgstr ""
96
97
 
97
98
  #: views/unsubscribe.hbs:70
98
- #: views/accounts/register/imap.hbs:23
99
+ #: views/accounts/register/imap.hbs:25
99
100
  msgid "Email address"
100
101
  msgstr ""
101
102
 
103
+ #: views/accounts/register/imap.hbs:13
104
+ msgid "Your name"
105
+ msgstr ""
106
+
107
+ #: views/accounts/register/imap.hbs:19
108
+ msgid "Enter your full name"
109
+ msgstr ""
110
+
111
+ #: views/accounts/register/imap.hbs:35
112
+ msgid "This setup link is restricted to this email address"
113
+ msgstr ""
114
+
115
+ #: views/accounts/register/imap.hbs:37
116
+ msgid "Enter your email address"
117
+ msgstr ""
118
+
119
+ #: views/accounts/register/imap.hbs:43
120
+ #: views/accounts/register/imap-server.hbs:39
121
+ #: views/accounts/register/imap-server.hbs:146
122
+ msgid "Password"
123
+ msgstr ""
124
+
125
+ #: views/accounts/register/imap.hbs:49
126
+ msgid "Enter your account password"
127
+ msgstr ""
128
+
129
+ #: views/accounts/register/imap.hbs:55
130
+ msgid "Continue"
131
+ msgstr ""
132
+
102
133
  #: views/accounts/register/index.hbs:6
103
134
  msgid "Choose your email account provider"
104
135
  msgstr ""
@@ -116,12 +147,6 @@ msgstr ""
116
147
  msgid "Username"
117
148
  msgstr ""
118
149
 
119
- #: views/accounts/register/imap-server.hbs:39
120
- #: views/accounts/register/imap-server.hbs:146
121
- #: views/accounts/register/imap.hbs:33
122
- msgid "Password"
123
- msgstr ""
124
-
125
150
  #: views/accounts/register/imap-server.hbs:51
126
151
  #: views/accounts/register/imap-server.hbs:158
127
152
  msgid "Important"
@@ -226,27 +251,31 @@ msgstr ""
226
251
  msgid "Request failed."
227
252
  msgstr ""
228
253
 
229
- #: views/accounts/register/imap.hbs:13
230
- msgid "Your name"
254
+ #: views/account-identity-error.hbs:7
255
+ msgid "Wrong Email Account"
231
256
  msgstr ""
232
257
 
233
- #: views/accounts/register/imap.hbs:19
234
- msgid "Enter your full name"
258
+ #: views/account-identity-error.hbs:12
259
+ msgid ""
260
+ "This setup link can only be used with one specific email account, and a "
261
+ "different one was used."
235
262
  msgstr ""
236
263
 
237
- #: views/accounts/register/imap.hbs:29
238
- msgid "Enter your email address"
264
+ #: views/account-identity-error.hbs:18
265
+ msgid "Expected account"
239
266
  msgstr ""
240
267
 
241
- #: views/accounts/register/imap.hbs:39
242
- msgid "Enter your account password"
268
+ #: views/account-identity-error.hbs:21
269
+ msgid "Account used"
243
270
  msgstr ""
244
271
 
245
- #: views/accounts/register/imap.hbs:45
246
- msgid "Continue"
272
+ #: views/account-identity-error.hbs:27
273
+ msgid ""
274
+ "Try again and use the expected account. If you believe this is a mistake, "
275
+ "contact the service that sent you this link."
247
276
  msgstr ""
248
277
 
249
- #: lib/autodetect-imap-settings.js:90
278
+ #: lib/autodetect-imap-settings.js:109
250
279
  msgid ""
251
280
  "Microsoft has disabled password-based sign-ins (including app passwords) "
252
281
  "for Outlook.com, Hotmail.com, and Microsoft 365 email accounts. To "
@@ -254,98 +283,99 @@ msgid ""
254
283
  "connect your account."
255
284
  msgstr ""
256
285
 
257
- #: lib/tools.js:1056
286
+ #: lib/tools.js:1157
258
287
  #: lib/ui-routes/unsubscribe-routes.js:28
259
288
  #: lib/ui-routes/unsubscribe-routes.js:92
260
289
  msgid "Invalid input"
261
290
  msgstr ""
262
291
 
263
- #: lib/tools.js:1893
292
+ #: lib/tools.js:1978
264
293
  msgid "Signature validation failed"
265
294
  msgstr ""
266
295
 
267
- #: lib/tools.js:1916
268
- #: lib/tools.js:1922
269
- #: lib/tools.js:1927
270
- #: lib/ui-routes/account-routes.js:976
296
+ #: lib/tools.js:2001
297
+ #: lib/tools.js:2007
298
+ #: lib/tools.js:2012
299
+ #: lib/ui-routes/account-routes.js:1056
271
300
  msgid "Invalid or expired account setup URL"
272
301
  msgstr ""
273
302
 
274
- #: lib/ui-routes/account-routes.js:414
275
- #: lib/ui-routes/account-routes.js:455
276
- #: lib/ui-routes/account-routes.js:695
277
- #: lib/ui-routes/account-routes.js:748
278
- #: lib/ui-routes/account-routes.js:1006
279
- #: lib/ui-routes/account-routes.js:1098
280
- #: workers/api.js:2292
281
- #: workers/api.js:2646
303
+ #: lib/ui-routes/account-routes.js:424
304
+ #: lib/ui-routes/account-routes.js:468
305
+ #: lib/ui-routes/account-routes.js:712
306
+ #: lib/ui-routes/account-routes.js:763
307
+ #: lib/ui-routes/account-routes.js:816
308
+ #: lib/ui-routes/account-routes.js:1169
309
+ #: lib/ui-routes/route-helpers.js:353
310
+ #: workers/api.js:2088
311
+ #: workers/api.js:2158
282
312
  msgid "Email Account Setup"
283
313
  msgstr ""
284
314
 
285
- #: lib/ui-routes/account-routes.js:480
286
- #: lib/ui-routes/account-routes.js:512
315
+ #: lib/ui-routes/account-routes.js:493
316
+ #: lib/ui-routes/account-routes.js:525
287
317
  #: lib/ui-routes/unsubscribe-routes.js:68
288
318
  msgid "Invalid request. Check your input and try again."
289
319
  msgstr ""
290
320
 
291
- #: lib/ui-routes/account-routes.js:645
321
+ #: lib/ui-routes/account-routes.js:658
292
322
  msgid "Too many attempts for this setup link. Request a new setup link to continue."
293
323
  msgstr ""
294
324
 
295
- #: lib/ui-routes/account-routes.js:735
296
- #: lib/ui-routes/account-routes.js:1035
325
+ #: lib/ui-routes/account-routes.js:803
326
+ #: lib/ui-routes/account-routes.js:1106
297
327
  msgid "Couldn't set up account. Try again."
298
328
  msgstr ""
299
329
 
300
- #: lib/ui-routes/account-routes.js:818
301
- #: lib/ui-routes/account-routes.js:829
330
+ #: lib/ui-routes/account-routes.js:886
331
+ #: lib/ui-routes/account-routes.js:897
302
332
  #: lib/ui-routes/admin-entities-routes.js:2045
303
333
  msgid "Server hostname was not found"
304
334
  msgstr ""
305
335
 
306
- #: lib/ui-routes/account-routes.js:821
307
- #: lib/ui-routes/account-routes.js:832
336
+ #: lib/ui-routes/account-routes.js:889
337
+ #: lib/ui-routes/account-routes.js:900
308
338
  #: lib/ui-routes/admin-entities-routes.js:2048
309
339
  msgid "Invalid username or password"
310
340
  msgstr ""
311
341
 
312
- #: lib/ui-routes/account-routes.js:835
342
+ #: lib/ui-routes/account-routes.js:903
313
343
  #: lib/ui-routes/admin-entities-routes.js:2051
314
344
  msgid "Authentication credentials were not provided"
315
345
  msgstr ""
316
346
 
317
- #: lib/ui-routes/account-routes.js:838
347
+ #: lib/ui-routes/account-routes.js:906
318
348
  #: lib/ui-routes/admin-entities-routes.js:2054
319
349
  msgid "OAuth2 authentication failed"
320
350
  msgstr ""
321
351
 
322
- #: lib/ui-routes/account-routes.js:841
323
- #: lib/ui-routes/account-routes.js:845
352
+ #: lib/ui-routes/account-routes.js:909
353
+ #: lib/ui-routes/account-routes.js:913
324
354
  #: lib/ui-routes/admin-entities-routes.js:2057
325
355
  #: lib/ui-routes/admin-entities-routes.js:2061
326
356
  msgid "TLS protocol error"
327
357
  msgstr ""
328
358
 
329
- #: lib/ui-routes/account-routes.js:849
359
+ #: lib/ui-routes/account-routes.js:917
330
360
  #: lib/ui-routes/admin-entities-routes.js:2065
331
361
  msgid "Connection timed out"
332
362
  msgstr ""
333
363
 
334
- #: lib/ui-routes/account-routes.js:852
364
+ #: lib/ui-routes/account-routes.js:920
335
365
  #: lib/ui-routes/admin-entities-routes.js:2068
336
366
  msgid "Could not connect to server"
337
367
  msgstr ""
338
368
 
339
- #: lib/ui-routes/account-routes.js:855
369
+ #: lib/ui-routes/account-routes.js:923
340
370
  #: lib/ui-routes/admin-entities-routes.js:2071
341
371
  msgid "Unexpected server response"
342
372
  msgstr ""
343
373
 
344
- #: lib/ui-routes/account-routes.js:964
374
+ #: lib/ui-routes/account-routes.js:1044
345
375
  msgid "Temporary error, please try again"
346
376
  msgstr ""
347
377
 
348
- #: lib/ui-routes/admin-config-routes.js:173
378
+ #: lib/ui-routes/admin-config-routes.js:168
349
379
  msgid "Invalid API key for OpenAI"
350
380
  msgstr ""
351
381
 
@@ -399,7 +429,7 @@ msgstr ""
399
429
  msgid "Couldn't process request. Try again."
400
430
  msgstr ""
401
431
 
402
- #: workers/api.js:3018
403
- #: workers/api.js:3119
432
+ #: workers/api.js:2912
433
+ #: workers/api.js:3013
404
434
  msgid "Requested page not found"
405
435
  msgstr ""
Binary file