emailengine-app 2.79.1 → 2.79.3
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.
- package/.github/workflows/deploy.yml +92 -39
- package/.github/workflows/release.yaml +94 -34
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +85 -0
- package/bin/emailengine.js +8 -1
- package/config/default.toml +6 -0
- package/copy-static-files.sh +23 -2
- package/data/google-crawlers.json +1 -1
- package/lib/account.js +138 -18
- package/lib/api-routes/account-routes.js +13 -1
- package/lib/api-routes/index.js +12 -0
- package/lib/api-routes/mailbox-routes.js +6 -0
- package/lib/api-routes/mcp-oauth-routes.js +259 -0
- package/lib/api-routes/mcp-routes.js +172 -0
- package/lib/api-routes/message-routes.js +125 -4
- package/lib/api-routes/outbox-routes.js +7 -0
- package/lib/api-routes/permission-map.js +97 -1
- package/lib/api-routes/route-helpers.js +16 -4
- package/lib/api-routes/route-metadata.js +24 -4
- package/lib/api-routes/submit-routes.js +41 -0
- package/lib/api-routes/template-routes.js +7 -0
- package/lib/api-routes/token-routes.js +4 -2
- package/lib/consts.js +30 -1
- package/lib/email-client/base-client.js +235 -163
- package/lib/email-client/gmail-client.js +99 -22
- package/lib/email-client/imap/mailbox.js +140 -66
- package/lib/email-client/imap-client.js +74 -68
- package/lib/email-client/outlook-client.js +29 -14
- package/lib/enum-descriptions.js +2 -1
- package/lib/field-usage.js +17 -1
- package/lib/logger.js +43 -3
- package/lib/lua/s-list-accounts.lua +5 -2
- package/lib/mcp/index.js +29 -0
- package/lib/mcp/inject.js +70 -0
- package/lib/mcp/json-schema.js +120 -0
- package/lib/mcp/listen.js +171 -0
- package/lib/mcp/oauth.js +324 -0
- package/lib/mcp/protocol.js +489 -0
- package/lib/mcp/resources.js +139 -0
- package/lib/mcp/tools.js +655 -0
- package/lib/openapi/index.js +3 -1
- package/lib/response-stream.js +52 -21
- package/lib/routes-ui.js +4 -0
- package/lib/schemas.js +24 -3
- package/lib/token-permission-view.js +104 -8
- package/lib/tokens.js +34 -5
- package/lib/tools.js +96 -0
- package/lib/ui-routes/account-routes.js +43 -1
- package/lib/ui-routes/admin-config-routes.js +114 -1
- package/lib/ui-routes/admin-entities-routes.js +54 -5
- package/lib/ui-routes/auth-routes.js +13 -0
- package/lib/ui-routes/mcp-consent-routes.js +330 -0
- package/lib/ui-routes/route-helpers.js +116 -1
- package/lib/utils/network.js +9 -1
- package/lib/web-safe-html.js +61 -0
- package/lib/webhooks.js +3 -8
- package/package.json +15 -14
- package/sbom.json +1 -1
- package/scripts/README.md +25 -0
- package/scripts/build-icon.js +77 -0
- package/server.js +21 -9
- package/static/css/flyonui.css +1 -1
- package/static/css/src/app.tailwind.css +98 -0
- package/static/emailengine.ico +0 -0
- package/static/js/ui.js +465 -1
- package/static/licenses.html +85 -135
- package/translations/messages.pot +103 -103
- package/views/config/mcp.hbs +361 -0
- package/views/config/oauth/index.hbs +7 -0
- package/views/layout/prompt.hbs +62 -0
- package/views/mcp/authorize.hbs +136 -0
- package/views/partials/head_assets.hbs +3 -3
- package/views/partials/mcp_access_levels.hbs +13 -0
- package/views/partials/mcp_account_limit.hbs +14 -0
- package/views/partials/mcp_tool_count.hbs +19 -0
- package/views/partials/side_menu.hbs +1 -0
- package/views/partials/ui/account-picker.hbs +59 -0
- package/views/partials/ui/code-block.hbs +26 -0
- package/views/partials/ui/menu-item.hbs +5 -0
- package/views/partials/ui/radio.hbs +41 -0
- package/views/partials/ui/tab.hbs +15 -10
- package/views/partials/ui/tabs.hbs +8 -5
- package/views/templates/template.hbs +4 -3
- package/views/tokens/index.hbs +8 -2
- package/views/tokens/new.hbs +514 -243
- package/winconf.js +148 -48
- package/workers/api.js +198 -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-08-
|
|
4
|
+
"POT-Creation-Date: 2026-08-24 13:48+0000\n"
|
|
5
5
|
|
|
6
6
|
#: views/error.hbs:6
|
|
7
|
-
#: workers/api.js:
|
|
7
|
+
#: workers/api.js:3134
|
|
8
8
|
msgid "Something went wrong"
|
|
9
9
|
msgstr ""
|
|
10
10
|
|
|
@@ -27,35 +27,6 @@ msgid_plural "%d days"
|
|
|
27
27
|
msgstr[0] ""
|
|
28
28
|
msgstr[1] ""
|
|
29
29
|
|
|
30
|
-
#: views/redirect.hbs:1
|
|
31
|
-
msgid "Click <a href=\"%s\">here</a> to continue…"
|
|
32
|
-
msgstr ""
|
|
33
|
-
|
|
34
|
-
#: views/oauth-scope-error.hbs:5
|
|
35
|
-
msgid "Insufficient Permissions"
|
|
36
|
-
msgstr ""
|
|
37
|
-
|
|
38
|
-
#: views/oauth-scope-error.hbs:10
|
|
39
|
-
msgid ""
|
|
40
|
-
"All requested permissions are required for this service to function "
|
|
41
|
-
"properly. Some required permissions were not granted during sign-in."
|
|
42
|
-
msgstr ""
|
|
43
|
-
|
|
44
|
-
#: views/oauth-scope-error.hbs:14
|
|
45
|
-
msgid "The following permissions were not granted:"
|
|
46
|
-
msgstr ""
|
|
47
|
-
|
|
48
|
-
#: views/oauth-scope-error.hbs:23
|
|
49
|
-
msgid ""
|
|
50
|
-
"Please try again and make sure all permission checkboxes are selected on "
|
|
51
|
-
"the Google consent screen."
|
|
52
|
-
msgstr ""
|
|
53
|
-
|
|
54
|
-
#: views/oauth-scope-error.hbs:28
|
|
55
|
-
#: views/account-identity-error.hbs:32
|
|
56
|
-
msgid "Try Again"
|
|
57
|
-
msgstr ""
|
|
58
|
-
|
|
59
30
|
#: views/unsubscribe.hbs:7
|
|
60
31
|
#: views/unsubscribe.hbs:60
|
|
61
32
|
#: views/unsubscribe.hbs:75
|
|
@@ -100,42 +71,41 @@ msgstr ""
|
|
|
100
71
|
msgid "Email address"
|
|
101
72
|
msgstr ""
|
|
102
73
|
|
|
103
|
-
#: views/
|
|
104
|
-
msgid "
|
|
105
|
-
msgstr ""
|
|
106
|
-
|
|
107
|
-
#: views/accounts/register/index.hbs:19
|
|
108
|
-
msgid "Standard IMAP"
|
|
74
|
+
#: views/redirect.hbs:1
|
|
75
|
+
msgid "Click <a href=\"%s\">here</a> to continue…"
|
|
109
76
|
msgstr ""
|
|
110
77
|
|
|
111
|
-
#: views/
|
|
112
|
-
msgid "
|
|
78
|
+
#: views/oauth-scope-error.hbs:5
|
|
79
|
+
msgid "Insufficient Permissions"
|
|
113
80
|
msgstr ""
|
|
114
81
|
|
|
115
|
-
#: views/
|
|
116
|
-
msgid "
|
|
82
|
+
#: views/oauth-scope-error.hbs:10
|
|
83
|
+
msgid ""
|
|
84
|
+
"All requested permissions are required for this service to function "
|
|
85
|
+
"properly. Some required permissions were not granted during sign-in."
|
|
117
86
|
msgstr ""
|
|
118
87
|
|
|
119
|
-
#: views/
|
|
120
|
-
msgid "
|
|
88
|
+
#: views/oauth-scope-error.hbs:14
|
|
89
|
+
msgid "The following permissions were not granted:"
|
|
121
90
|
msgstr ""
|
|
122
91
|
|
|
123
|
-
#: views/
|
|
124
|
-
msgid "
|
|
92
|
+
#: views/oauth-scope-error.hbs:23
|
|
93
|
+
msgid ""
|
|
94
|
+
"Please try again and make sure all permission checkboxes are selected on "
|
|
95
|
+
"the Google consent screen."
|
|
125
96
|
msgstr ""
|
|
126
97
|
|
|
127
|
-
#: views/
|
|
128
|
-
#: views/
|
|
129
|
-
|
|
130
|
-
msgid "Password"
|
|
98
|
+
#: views/oauth-scope-error.hbs:28
|
|
99
|
+
#: views/account-identity-error.hbs:32
|
|
100
|
+
msgid "Try Again"
|
|
131
101
|
msgstr ""
|
|
132
102
|
|
|
133
|
-
#: views/accounts/register/
|
|
134
|
-
msgid "
|
|
103
|
+
#: views/accounts/register/index.hbs:6
|
|
104
|
+
msgid "Choose your email account provider"
|
|
135
105
|
msgstr ""
|
|
136
106
|
|
|
137
|
-
#: views/accounts/register/
|
|
138
|
-
msgid "
|
|
107
|
+
#: views/accounts/register/index.hbs:19
|
|
108
|
+
msgid "Standard IMAP"
|
|
139
109
|
msgstr ""
|
|
140
110
|
|
|
141
111
|
#: views/accounts/register/imap-server.hbs:22
|
|
@@ -147,6 +117,12 @@ msgstr ""
|
|
|
147
117
|
msgid "Username"
|
|
148
118
|
msgstr ""
|
|
149
119
|
|
|
120
|
+
#: views/accounts/register/imap-server.hbs:39
|
|
121
|
+
#: views/accounts/register/imap-server.hbs:146
|
|
122
|
+
#: views/accounts/register/imap.hbs:43
|
|
123
|
+
msgid "Password"
|
|
124
|
+
msgstr ""
|
|
125
|
+
|
|
150
126
|
#: views/accounts/register/imap-server.hbs:51
|
|
151
127
|
#: views/accounts/register/imap-server.hbs:158
|
|
152
128
|
msgid "Important"
|
|
@@ -251,6 +227,30 @@ msgstr ""
|
|
|
251
227
|
msgid "Request failed."
|
|
252
228
|
msgstr ""
|
|
253
229
|
|
|
230
|
+
#: views/accounts/register/imap.hbs:13
|
|
231
|
+
msgid "Your name"
|
|
232
|
+
msgstr ""
|
|
233
|
+
|
|
234
|
+
#: views/accounts/register/imap.hbs:19
|
|
235
|
+
msgid "Enter your full name"
|
|
236
|
+
msgstr ""
|
|
237
|
+
|
|
238
|
+
#: views/accounts/register/imap.hbs:35
|
|
239
|
+
msgid "This setup link is restricted to this email address"
|
|
240
|
+
msgstr ""
|
|
241
|
+
|
|
242
|
+
#: views/accounts/register/imap.hbs:37
|
|
243
|
+
msgid "Enter your email address"
|
|
244
|
+
msgstr ""
|
|
245
|
+
|
|
246
|
+
#: views/accounts/register/imap.hbs:49
|
|
247
|
+
msgid "Enter your account password"
|
|
248
|
+
msgstr ""
|
|
249
|
+
|
|
250
|
+
#: views/accounts/register/imap.hbs:55
|
|
251
|
+
msgid "Continue"
|
|
252
|
+
msgstr ""
|
|
253
|
+
|
|
254
254
|
#: views/account-identity-error.hbs:7
|
|
255
255
|
msgid "Wrong Email Account"
|
|
256
256
|
msgstr ""
|
|
@@ -283,99 +283,99 @@ msgid ""
|
|
|
283
283
|
"connect your account."
|
|
284
284
|
msgstr ""
|
|
285
285
|
|
|
286
|
-
#: lib/tools.js:
|
|
286
|
+
#: lib/tools.js:1329
|
|
287
287
|
#: lib/ui-routes/unsubscribe-routes.js:29
|
|
288
288
|
#: lib/ui-routes/unsubscribe-routes.js:93
|
|
289
289
|
msgid "Invalid input"
|
|
290
290
|
msgstr ""
|
|
291
291
|
|
|
292
|
-
#: lib/tools.js:
|
|
292
|
+
#: lib/tools.js:2179
|
|
293
293
|
msgid "Signature validation failed"
|
|
294
294
|
msgstr ""
|
|
295
295
|
|
|
296
|
-
#: lib/tools.js:
|
|
297
|
-
#: lib/tools.js:
|
|
298
|
-
#: lib/tools.js:
|
|
299
|
-
#: lib/ui-routes/account-routes.js:
|
|
296
|
+
#: lib/tools.js:2202
|
|
297
|
+
#: lib/tools.js:2208
|
|
298
|
+
#: lib/tools.js:2213
|
|
299
|
+
#: lib/ui-routes/account-routes.js:1100
|
|
300
300
|
msgid "Invalid or expired account setup URL"
|
|
301
301
|
msgstr ""
|
|
302
302
|
|
|
303
|
-
#: lib/ui-routes/account-routes.js:
|
|
304
|
-
#: lib/ui-routes/account-routes.js:
|
|
305
|
-
#: lib/ui-routes/account-routes.js:
|
|
306
|
-
#: lib/ui-routes/account-routes.js:
|
|
307
|
-
#: lib/ui-routes/account-routes.js:
|
|
308
|
-
#: lib/ui-routes/account-routes.js:
|
|
309
|
-
#: lib/ui-routes/route-helpers.js:
|
|
310
|
-
#: workers/api.js:
|
|
311
|
-
#: workers/api.js:
|
|
303
|
+
#: lib/ui-routes/account-routes.js:468
|
|
304
|
+
#: lib/ui-routes/account-routes.js:512
|
|
305
|
+
#: lib/ui-routes/account-routes.js:756
|
|
306
|
+
#: lib/ui-routes/account-routes.js:807
|
|
307
|
+
#: lib/ui-routes/account-routes.js:860
|
|
308
|
+
#: lib/ui-routes/account-routes.js:1213
|
|
309
|
+
#: lib/ui-routes/route-helpers.js:368
|
|
310
|
+
#: workers/api.js:2319
|
|
311
|
+
#: workers/api.js:2389
|
|
312
312
|
msgid "Email Account Setup"
|
|
313
313
|
msgstr ""
|
|
314
314
|
|
|
315
|
-
#: lib/ui-routes/account-routes.js:
|
|
316
|
-
#: lib/ui-routes/account-routes.js:
|
|
315
|
+
#: lib/ui-routes/account-routes.js:537
|
|
316
|
+
#: lib/ui-routes/account-routes.js:569
|
|
317
317
|
#: lib/ui-routes/unsubscribe-routes.js:69
|
|
318
318
|
msgid "Invalid request. Check your input and try again."
|
|
319
319
|
msgstr ""
|
|
320
320
|
|
|
321
|
-
#: lib/ui-routes/account-routes.js:
|
|
321
|
+
#: lib/ui-routes/account-routes.js:702
|
|
322
322
|
msgid "Too many attempts for this setup link. Request a new setup link to continue."
|
|
323
323
|
msgstr ""
|
|
324
324
|
|
|
325
|
-
#: lib/ui-routes/account-routes.js:
|
|
326
|
-
#: lib/ui-routes/account-routes.js:
|
|
325
|
+
#: lib/ui-routes/account-routes.js:847
|
|
326
|
+
#: lib/ui-routes/account-routes.js:1150
|
|
327
327
|
msgid "Couldn't set up account. Try again."
|
|
328
328
|
msgstr ""
|
|
329
329
|
|
|
330
|
-
#: lib/ui-routes/account-routes.js:
|
|
331
|
-
#: lib/ui-routes/account-routes.js:
|
|
332
|
-
#: lib/ui-routes/admin-entities-routes.js:
|
|
330
|
+
#: lib/ui-routes/account-routes.js:930
|
|
331
|
+
#: lib/ui-routes/account-routes.js:941
|
|
332
|
+
#: lib/ui-routes/admin-entities-routes.js:2058
|
|
333
333
|
msgid "Server hostname was not found"
|
|
334
334
|
msgstr ""
|
|
335
335
|
|
|
336
|
-
#: lib/ui-routes/account-routes.js:
|
|
337
|
-
#: lib/ui-routes/account-routes.js:
|
|
338
|
-
#: lib/ui-routes/admin-entities-routes.js:
|
|
336
|
+
#: lib/ui-routes/account-routes.js:933
|
|
337
|
+
#: lib/ui-routes/account-routes.js:944
|
|
338
|
+
#: lib/ui-routes/admin-entities-routes.js:2061
|
|
339
339
|
msgid "Invalid username or password"
|
|
340
340
|
msgstr ""
|
|
341
341
|
|
|
342
|
-
#: lib/ui-routes/account-routes.js:
|
|
343
|
-
#: lib/ui-routes/admin-entities-routes.js:
|
|
342
|
+
#: lib/ui-routes/account-routes.js:947
|
|
343
|
+
#: lib/ui-routes/admin-entities-routes.js:2064
|
|
344
344
|
msgid "Authentication credentials were not provided"
|
|
345
345
|
msgstr ""
|
|
346
346
|
|
|
347
|
-
#: lib/ui-routes/account-routes.js:
|
|
348
|
-
#: lib/ui-routes/admin-entities-routes.js:
|
|
347
|
+
#: lib/ui-routes/account-routes.js:950
|
|
348
|
+
#: lib/ui-routes/admin-entities-routes.js:2067
|
|
349
349
|
msgid "OAuth2 authentication failed"
|
|
350
350
|
msgstr ""
|
|
351
351
|
|
|
352
|
-
#: lib/ui-routes/account-routes.js:
|
|
353
|
-
#: lib/ui-routes/account-routes.js:
|
|
354
|
-
#: lib/ui-routes/admin-entities-routes.js:
|
|
355
|
-
#: lib/ui-routes/admin-entities-routes.js:
|
|
352
|
+
#: lib/ui-routes/account-routes.js:953
|
|
353
|
+
#: lib/ui-routes/account-routes.js:957
|
|
354
|
+
#: lib/ui-routes/admin-entities-routes.js:2070
|
|
355
|
+
#: lib/ui-routes/admin-entities-routes.js:2074
|
|
356
356
|
msgid "TLS protocol error"
|
|
357
357
|
msgstr ""
|
|
358
358
|
|
|
359
|
-
#: lib/ui-routes/account-routes.js:
|
|
360
|
-
#: lib/ui-routes/admin-entities-routes.js:
|
|
359
|
+
#: lib/ui-routes/account-routes.js:961
|
|
360
|
+
#: lib/ui-routes/admin-entities-routes.js:2078
|
|
361
361
|
msgid "Connection timed out"
|
|
362
362
|
msgstr ""
|
|
363
363
|
|
|
364
|
-
#: lib/ui-routes/account-routes.js:
|
|
365
|
-
#: lib/ui-routes/admin-entities-routes.js:
|
|
364
|
+
#: lib/ui-routes/account-routes.js:964
|
|
365
|
+
#: lib/ui-routes/admin-entities-routes.js:2081
|
|
366
366
|
msgid "Could not connect to server"
|
|
367
367
|
msgstr ""
|
|
368
368
|
|
|
369
|
-
#: lib/ui-routes/account-routes.js:
|
|
370
|
-
#: lib/ui-routes/admin-entities-routes.js:
|
|
369
|
+
#: lib/ui-routes/account-routes.js:967
|
|
370
|
+
#: lib/ui-routes/admin-entities-routes.js:2084
|
|
371
371
|
msgid "Unexpected server response"
|
|
372
372
|
msgstr ""
|
|
373
373
|
|
|
374
|
-
#: lib/ui-routes/account-routes.js:
|
|
374
|
+
#: lib/ui-routes/account-routes.js:1088
|
|
375
375
|
msgid "Temporary error, please try again"
|
|
376
376
|
msgstr ""
|
|
377
377
|
|
|
378
|
-
#: lib/ui-routes/admin-config-routes.js:
|
|
378
|
+
#: lib/ui-routes/admin-config-routes.js:173
|
|
379
379
|
msgid "Invalid API key for OpenAI"
|
|
380
380
|
msgstr ""
|
|
381
381
|
|
|
@@ -387,33 +387,33 @@ msgstr ""
|
|
|
387
387
|
msgid "Indefinite"
|
|
388
388
|
msgstr ""
|
|
389
389
|
|
|
390
|
-
#: lib/ui-routes/route-helpers.js:
|
|
390
|
+
#: lib/ui-routes/route-helpers.js:132
|
|
391
391
|
msgid ""
|
|
392
392
|
"Connection timed out. This usually occurs if you are behind a firewall or "
|
|
393
393
|
"connecting to the wrong port."
|
|
394
394
|
msgstr ""
|
|
395
395
|
|
|
396
|
-
#: lib/ui-routes/route-helpers.js:
|
|
396
|
+
#: lib/ui-routes/route-helpers.js:135
|
|
397
397
|
msgid "The server unexpectedly closed the connection."
|
|
398
398
|
msgstr ""
|
|
399
399
|
|
|
400
|
-
#: lib/ui-routes/route-helpers.js:
|
|
400
|
+
#: lib/ui-routes/route-helpers.js:138
|
|
401
401
|
msgid ""
|
|
402
402
|
"The server unexpectedly closed the connection. This usually happens when "
|
|
403
403
|
"attempting to connect to a TLS port without TLS enabled."
|
|
404
404
|
msgstr ""
|
|
405
405
|
|
|
406
|
-
#: lib/ui-routes/route-helpers.js:
|
|
406
|
+
#: lib/ui-routes/route-helpers.js:143
|
|
407
407
|
msgid ""
|
|
408
408
|
"The server refused the connection. This typically occurs if the server is "
|
|
409
409
|
"not running, is overloaded, or you are connecting to the wrong host or port."
|
|
410
410
|
msgstr ""
|
|
411
411
|
|
|
412
|
-
#: lib/ui-routes/route-helpers.js:
|
|
412
|
+
#: lib/ui-routes/route-helpers.js:197
|
|
413
413
|
msgid "Delegated"
|
|
414
414
|
msgstr ""
|
|
415
415
|
|
|
416
|
-
#: lib/ui-routes/route-helpers.js:
|
|
416
|
+
#: lib/ui-routes/route-helpers.js:198
|
|
417
417
|
msgid "Using credentials from \"%s\""
|
|
418
418
|
msgstr ""
|
|
419
419
|
|
|
@@ -429,7 +429,7 @@ msgstr ""
|
|
|
429
429
|
msgid "Couldn't process request. Try again."
|
|
430
430
|
msgstr ""
|
|
431
431
|
|
|
432
|
-
#: workers/api.js:
|
|
433
|
-
#: workers/api.js:
|
|
432
|
+
#: workers/api.js:3133
|
|
433
|
+
#: workers/api.js:3237
|
|
434
434
|
msgid "Requested page not found"
|
|
435
435
|
msgstr ""
|