emailengine-app 2.77.0 → 2.79.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 (189) hide show
  1. package/.github/workflows/test.yml +80 -0
  2. package/.ncurc.js +23 -13
  3. package/.release-please-manifest.json +1 -1
  4. package/CHANGELOG.md +60 -0
  5. package/bin/emailengine.js +1 -1
  6. package/config/e2e.toml +2 -1
  7. package/config/test.toml +2 -1
  8. package/data/google-crawlers.json +1 -1
  9. package/encrypt.js +1 -1
  10. package/lib/account/expected-identity.js +88 -0
  11. package/lib/account.js +145 -61
  12. package/lib/api-reference/format.js +105 -4
  13. package/lib/api-reference/index.js +24 -7
  14. package/lib/api-reference/model.js +148 -21
  15. package/lib/api-reference/schema-tree.js +282 -28
  16. package/lib/api-routes/account-routes.js +99 -36
  17. package/lib/api-routes/behavior-notes.js +3 -0
  18. package/lib/api-routes/blocklist-routes.js +21 -47
  19. package/lib/api-routes/chat-routes.js +10 -12
  20. package/lib/api-routes/delivery-test-routes.js +6 -26
  21. package/lib/api-routes/export-routes.js +2 -0
  22. package/lib/api-routes/gateway-routes.js +52 -11
  23. package/lib/api-routes/license-routes.js +2 -0
  24. package/lib/api-routes/mailbox-routes.js +29 -26
  25. package/lib/api-routes/message-routes.js +27 -21
  26. package/lib/api-routes/oauth2-app-routes.js +11 -29
  27. package/lib/api-routes/operation-impact.js +80 -0
  28. package/lib/api-routes/outbox-routes.js +15 -5
  29. package/lib/api-routes/permission-map.js +397 -0
  30. package/lib/api-routes/route-helpers.js +223 -9
  31. package/lib/api-routes/route-metadata.js +28 -0
  32. package/lib/api-routes/settings-routes.js +30 -25
  33. package/lib/api-routes/stats-routes.js +2 -2
  34. package/lib/api-routes/submit-routes.js +53 -31
  35. package/lib/api-routes/template-routes.js +3 -0
  36. package/lib/api-routes/token-routes.js +319 -33
  37. package/lib/api-routes/webhook-route-routes.js +14 -4
  38. package/lib/append-list.js +3 -14
  39. package/lib/arf-detect.js +23 -1
  40. package/lib/auth-token.js +80 -8
  41. package/lib/autodetect-imap-settings.js +40 -16
  42. package/lib/base32.js +30 -0
  43. package/lib/bounce-detect.js +182 -62
  44. package/lib/consts.js +10 -0
  45. package/lib/db.js +20 -2
  46. package/lib/delivery-error.js +30 -1
  47. package/lib/egress-filter.js +89 -8
  48. package/lib/email-client/base-client.js +35 -113
  49. package/lib/email-client/gmail-client.js +22 -13
  50. package/lib/email-client/imap/listing-diff.js +3 -3
  51. package/lib/email-client/imap/mailbox.js +28 -93
  52. package/lib/email-client/imap/subconnection.js +10 -7
  53. package/lib/email-client/imap/sync-operations.js +46 -46
  54. package/lib/email-client/imap-client.js +39 -28
  55. package/lib/email-client/message-builder.js +15 -15
  56. package/lib/email-client/notification-handler.js +1 -1
  57. package/lib/email-client/outlook/graph-api.js +10 -4
  58. package/lib/email-client/outlook-client.js +54 -55
  59. package/lib/email-client/smtp-pool-manager.js +1 -1
  60. package/lib/enum-descriptions.js +92 -2
  61. package/lib/export.js +2 -2
  62. package/lib/field-usage.js +133 -0
  63. package/lib/gateway.js +2 -2
  64. package/lib/get-raw-email.js +1 -1
  65. package/lib/imapproxy/imap-core/lib/commands/authenticate-plain.js +3 -3
  66. package/lib/imapproxy/imap-core/lib/commands/id.js +2 -13
  67. package/lib/imapproxy/imap-core/lib/commands/starttls.js +1 -1
  68. package/lib/imapproxy/imap-core/lib/imap-command.js +21 -5
  69. package/lib/imapproxy/imap-core/lib/imap-connection.js +17 -7
  70. package/lib/imapproxy/imap-core/lib/imap-server.js +2 -2
  71. package/lib/imapproxy/imap-server.js +40 -10
  72. package/lib/license-beacon.js +5 -10
  73. package/lib/lists.js +49 -1
  74. package/lib/llm-pre-process.js +6 -6
  75. package/lib/logger.js +5 -1
  76. package/lib/metrics-collector.js +2 -2
  77. package/lib/msgpack.js +62 -0
  78. package/lib/oauth/decode-jwt-payload.js +39 -0
  79. package/lib/oauth/gmail.js +9 -12
  80. package/lib/oauth/mail-ru.js +5 -7
  81. package/lib/oauth/outlook-identity.js +61 -0
  82. package/lib/oauth/outlook.js +9 -9
  83. package/lib/oauth/pubsub/google.js +25 -10
  84. package/lib/oauth/retry-setup.js +38 -0
  85. package/lib/oauth/scope-checker.js +1 -1
  86. package/lib/oauth2-apps.js +224 -295
  87. package/lib/openapi/build-document.js +15 -7
  88. package/lib/openapi/joi-schema.js +20 -0
  89. package/lib/outbox.js +145 -14
  90. package/lib/pre-process.js +9 -9
  91. package/lib/queue-stats.js +49 -0
  92. package/lib/read-env-value.js +37 -0
  93. package/lib/reconnection-manager.js +2 -2
  94. package/lib/rewrite-text-nodes.js +4 -3
  95. package/lib/routes-ui.js +4 -0
  96. package/lib/schemas.js +223 -155
  97. package/lib/settings.js +84 -5
  98. package/lib/sub-script.js +2 -1
  99. package/lib/swagger-options.js +2 -1
  100. package/lib/templates.js +5 -5
  101. package/lib/threads.js +2 -2
  102. package/lib/token-audit-log.js +208 -0
  103. package/lib/token-permission-view.js +219 -0
  104. package/lib/token-permissions.js +172 -0
  105. package/lib/tokens.js +100 -16
  106. package/lib/tools.js +259 -85
  107. package/lib/totp.js +67 -0
  108. package/lib/ui-routes/account-routes.js +122 -26
  109. package/lib/ui-routes/admin-config-routes.js +20 -17
  110. package/lib/ui-routes/admin-entities-routes.js +66 -22
  111. package/lib/ui-routes/auth-routes.js +36 -48
  112. package/lib/ui-routes/export-routes.js +10 -4
  113. package/lib/ui-routes/oauth-config-routes.js +5 -5
  114. package/lib/ui-routes/reference-routes.js +11 -8
  115. package/lib/ui-routes/route-helpers.js +79 -2
  116. package/lib/ui-routes/settings-page.js +1 -1
  117. package/lib/ui-routes/smtp-test-routes.js +1 -1
  118. package/lib/ui-routes/suppression-list-routes.js +294 -0
  119. package/lib/ui-routes/unsubscribe-routes.js +19 -29
  120. package/lib/utils/is-email.js +34 -0
  121. package/lib/utils/network.js +2 -2
  122. package/lib/utils/to-camel-case.js +17 -0
  123. package/lib/web-safe-html.js +1 -1
  124. package/lib/webhook-egress.js +37 -0
  125. package/lib/webhook-routing.js +80 -0
  126. package/lib/webhooks.js +21 -15
  127. package/package.json +26 -27
  128. package/sbom.json +1 -0
  129. package/server.js +81 -42
  130. package/static/css/flyonui.css +1 -1
  131. package/static/css/public.css +3 -0
  132. package/static/css/src/app.tailwind.css +159 -9
  133. package/static/js/app.js +69 -0
  134. package/static/js/reference.js +741 -10
  135. package/static/js/ui.js +43 -0
  136. package/static/licenses.html +698 -1590
  137. package/translations/README.md +64 -0
  138. package/translations/de.mo +0 -0
  139. package/translations/de.po +164 -120
  140. package/translations/en.po +200 -161
  141. package/translations/et.mo +0 -0
  142. package/translations/et.po +163 -120
  143. package/translations/fr.mo +0 -0
  144. package/translations/fr.po +163 -120
  145. package/translations/ja.mo +0 -0
  146. package/translations/ja.po +163 -120
  147. package/translations/messages.pot +94 -64
  148. package/translations/nl.mo +0 -0
  149. package/translations/nl.po +164 -120
  150. package/translations/pl.mo +0 -0
  151. package/translations/pl.po +163 -120
  152. package/views/account-identity-error.hbs +34 -0
  153. package/views/accounts/account.hbs +69 -7
  154. package/views/accounts/browse.hbs +18 -35
  155. package/views/accounts/edit.hbs +1 -0
  156. package/views/accounts/register/imap.hbs +12 -2
  157. package/views/config/logging.hbs +6 -0
  158. package/views/config/oauth/app.hbs +0 -2
  159. package/views/config/security.hbs +13 -0
  160. package/views/layout/app.hbs +29 -5
  161. package/views/oauth-scope-error.hbs +1 -1
  162. package/views/partials/oauth_form.hbs +0 -15
  163. package/views/partials/reference/disclosure.hbs +8 -2
  164. package/views/partials/reference/nav.hbs +36 -9
  165. package/views/partials/reference/operation.hbs +48 -14
  166. package/views/partials/reference/params.hbs +17 -1
  167. package/views/partials/reference/schema-node.hbs +112 -54
  168. package/views/partials/reference/schema-tools.hbs +25 -0
  169. package/views/partials/reference/token-alert.hbs +35 -10
  170. package/views/partials/reference/try-it.hbs +84 -11
  171. package/views/partials/side_menu.hbs +1 -0
  172. package/views/partials/ui/checkbox.hbs +2 -2
  173. package/views/partials/ui/tabs.hbs +7 -1
  174. package/views/reference/index.hbs +1 -1
  175. package/views/reference/token.hbs +4 -0
  176. package/views/suppression-lists/index.hbs +85 -0
  177. package/views/suppression-lists/list.hbs +87 -0
  178. package/views/templates/index.hbs +8 -2
  179. package/views/tokens/index.hbs +31 -4
  180. package/views/tokens/new.hbs +324 -2
  181. package/workers/api.js +299 -140
  182. package/workers/documents.js +46 -26
  183. package/workers/export.js +20 -8
  184. package/workers/imap-proxy.js +2 -2
  185. package/workers/imap.js +13 -7
  186. package/workers/smtp.js +13 -7
  187. package/workers/submit.js +41 -31
  188. package/workers/webhooks.js +60 -37
  189. package/lib/feature-flags.js +0 -48
@@ -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-30 07:33+0000\n"
4
+ "POT-Creation-Date: 2026-08-17 09:37+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,18 @@ 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/index.hbs:6
104
+ msgid "Choose your email account provider"
105
+ msgstr ""
106
+
107
+ #: views/accounts/register/index.hbs:19
108
+ msgid "Standard IMAP"
109
+ msgstr ""
110
+
102
111
  #: views/accounts/register/imap.hbs:13
103
112
  msgid "Your name"
104
113
  msgstr ""
@@ -107,21 +116,25 @@ msgstr ""
107
116
  msgid "Enter your full name"
108
117
  msgstr ""
109
118
 
110
- #: views/accounts/register/imap.hbs:29
119
+ #: views/accounts/register/imap.hbs:35
120
+ msgid "This setup link is restricted to this email address"
121
+ msgstr ""
122
+
123
+ #: views/accounts/register/imap.hbs:37
111
124
  msgid "Enter your email address"
112
125
  msgstr ""
113
126
 
114
- #: views/accounts/register/imap.hbs:33
127
+ #: views/accounts/register/imap.hbs:43
115
128
  #: views/accounts/register/imap-server.hbs:39
116
129
  #: views/accounts/register/imap-server.hbs:146
117
130
  msgid "Password"
118
131
  msgstr ""
119
132
 
120
- #: views/accounts/register/imap.hbs:39
133
+ #: views/accounts/register/imap.hbs:49
121
134
  msgid "Enter your account password"
122
135
  msgstr ""
123
136
 
124
- #: views/accounts/register/imap.hbs:45
137
+ #: views/accounts/register/imap.hbs:55
125
138
  msgid "Continue"
126
139
  msgstr ""
127
140
 
@@ -238,15 +251,31 @@ msgstr ""
238
251
  msgid "Request failed."
239
252
  msgstr ""
240
253
 
241
- #: views/accounts/register/index.hbs:6
242
- msgid "Choose your email account provider"
254
+ #: views/account-identity-error.hbs:7
255
+ msgid "Wrong Email Account"
243
256
  msgstr ""
244
257
 
245
- #: views/accounts/register/index.hbs:19
246
- msgid "Standard IMAP"
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."
262
+ msgstr ""
263
+
264
+ #: views/account-identity-error.hbs:18
265
+ msgid "Expected account"
266
+ msgstr ""
267
+
268
+ #: views/account-identity-error.hbs:21
269
+ msgid "Account used"
270
+ msgstr ""
271
+
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
258
- #: lib/ui-routes/unsubscribe-routes.js:28
259
- #: lib/ui-routes/unsubscribe-routes.js:92
286
+ #: lib/tools.js:1228
287
+ #: lib/ui-routes/unsubscribe-routes.js:29
288
+ #: lib/ui-routes/unsubscribe-routes.js:93
260
289
  msgid "Invalid input"
261
290
  msgstr ""
262
291
 
263
- #: lib/tools.js:1893
292
+ #: lib/tools.js:2094
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:2117
297
+ #: lib/tools.js:2123
298
+ #: lib/tools.js:2128
299
+ #: lib/ui-routes/account-routes.js:1058
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:426
304
+ #: lib/ui-routes/account-routes.js:470
305
+ #: lib/ui-routes/account-routes.js:714
306
+ #: lib/ui-routes/account-routes.js:765
307
+ #: lib/ui-routes/account-routes.js:818
308
+ #: lib/ui-routes/account-routes.js:1171
309
+ #: lib/ui-routes/route-helpers.js:366
310
+ #: workers/api.js:2089
311
+ #: workers/api.js:2159
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
287
- #: lib/ui-routes/unsubscribe-routes.js:68
315
+ #: lib/ui-routes/account-routes.js:495
316
+ #: lib/ui-routes/account-routes.js:527
317
+ #: lib/ui-routes/unsubscribe-routes.js:69
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:660
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:805
326
+ #: lib/ui-routes/account-routes.js:1108
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
302
- #: lib/ui-routes/admin-entities-routes.js:2045
330
+ #: lib/ui-routes/account-routes.js:888
331
+ #: lib/ui-routes/account-routes.js:899
332
+ #: lib/ui-routes/admin-entities-routes.js:2051
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
308
- #: lib/ui-routes/admin-entities-routes.js:2048
336
+ #: lib/ui-routes/account-routes.js:891
337
+ #: lib/ui-routes/account-routes.js:902
338
+ #: lib/ui-routes/admin-entities-routes.js:2054
309
339
  msgid "Invalid username or password"
310
340
  msgstr ""
311
341
 
312
- #: lib/ui-routes/account-routes.js:835
313
- #: lib/ui-routes/admin-entities-routes.js:2051
342
+ #: lib/ui-routes/account-routes.js:905
343
+ #: lib/ui-routes/admin-entities-routes.js:2057
314
344
  msgid "Authentication credentials were not provided"
315
345
  msgstr ""
316
346
 
317
- #: lib/ui-routes/account-routes.js:838
318
- #: lib/ui-routes/admin-entities-routes.js:2054
347
+ #: lib/ui-routes/account-routes.js:908
348
+ #: lib/ui-routes/admin-entities-routes.js:2060
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
324
- #: lib/ui-routes/admin-entities-routes.js:2057
325
- #: lib/ui-routes/admin-entities-routes.js:2061
352
+ #: lib/ui-routes/account-routes.js:911
353
+ #: lib/ui-routes/account-routes.js:915
354
+ #: lib/ui-routes/admin-entities-routes.js:2063
355
+ #: lib/ui-routes/admin-entities-routes.js:2067
326
356
  msgid "TLS protocol error"
327
357
  msgstr ""
328
358
 
329
- #: lib/ui-routes/account-routes.js:849
330
- #: lib/ui-routes/admin-entities-routes.js:2065
359
+ #: lib/ui-routes/account-routes.js:919
360
+ #: lib/ui-routes/admin-entities-routes.js:2071
331
361
  msgid "Connection timed out"
332
362
  msgstr ""
333
363
 
334
- #: lib/ui-routes/account-routes.js:852
335
- #: lib/ui-routes/admin-entities-routes.js:2068
364
+ #: lib/ui-routes/account-routes.js:922
365
+ #: lib/ui-routes/admin-entities-routes.js:2074
336
366
  msgid "Could not connect to server"
337
367
  msgstr ""
338
368
 
339
- #: lib/ui-routes/account-routes.js:855
340
- #: lib/ui-routes/admin-entities-routes.js:2071
369
+ #: lib/ui-routes/account-routes.js:925
370
+ #: lib/ui-routes/admin-entities-routes.js:2077
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:1046
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
 
@@ -387,19 +417,19 @@ msgstr ""
387
417
  msgid "Using credentials from \"%s\""
388
418
  msgstr ""
389
419
 
390
- #: lib/ui-routes/unsubscribe-routes.js:38
391
- #: lib/ui-routes/unsubscribe-routes.js:173
392
- #: lib/ui-routes/unsubscribe-routes.js:198
393
- #: lib/ui-routes/unsubscribe-routes.js:233
420
+ #: lib/ui-routes/unsubscribe-routes.js:39
421
+ #: lib/ui-routes/unsubscribe-routes.js:161
422
+ #: lib/ui-routes/unsubscribe-routes.js:188
423
+ #: lib/ui-routes/unsubscribe-routes.js:223
394
424
  msgid "Subscription Management"
395
425
  msgstr ""
396
426
 
397
- #: lib/ui-routes/unsubscribe-routes.js:192
398
- #: lib/ui-routes/unsubscribe-routes.js:226
427
+ #: lib/ui-routes/unsubscribe-routes.js:180
428
+ #: lib/ui-routes/unsubscribe-routes.js:216
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