emailengine-app 2.80.1 → 2.81.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.
- package/.dockerignore +44 -0
- package/.github/docker-smoke-test.sh +16 -0
- package/.github/workflows/deploy.yml +4 -0
- package/.github/workflows/release.yaml +4 -0
- package/.github/workflows/test.yml +2 -0
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +32 -0
- package/Dockerfile +17 -9
- package/data/google-crawlers.json +1 -1
- package/docker-compose.yml +7 -1
- package/lib/api-routes/account-routes.js +158 -72
- package/lib/api-routes/permission-map.js +6 -1
- package/lib/autodetect-imap-settings.js +4 -4
- package/lib/sentry.js +13 -2
- package/lib/tls/provision.js +1 -1
- package/lib/token-permission-view.js +8 -7
- package/lib/tools.js +1 -0
- package/lib/ui-routes/account-routes.js +195 -61
- package/lib/ui-routes/admin-entities-routes.js +9 -9
- package/package.json +13 -13
- package/sbom.json +1 -1
- package/static/css/flyonui.css +1 -1
- package/static/css/public.css +41 -0
- package/static/css/src/app.tailwind.css +135 -4
- package/static/js/public.js +218 -0
- package/static/licenses.html +19 -19
- package/translations/README.md +4 -3
- package/translations/de.mo +0 -0
- package/translations/de.po +296 -185
- package/translations/en.po +220 -128
- package/translations/es.mo +0 -0
- package/translations/es.po +558 -0
- package/translations/et.mo +0 -0
- package/translations/et.po +288 -181
- package/translations/fr.mo +0 -0
- package/translations/fr.po +295 -183
- package/translations/it.mo +0 -0
- package/translations/it.po +558 -0
- package/translations/ja.mo +0 -0
- package/translations/ja.po +268 -192
- package/translations/locales.json +24 -0
- package/translations/messages.pot +124 -78
- package/translations/nl.mo +0 -0
- package/translations/nl.po +288 -175
- package/translations/pl.mo +0 -0
- package/translations/pl.po +294 -181
- package/translations/sv.mo +0 -0
- package/translations/sv.po +555 -0
- package/translations/tr.mo +0 -0
- package/translations/tr.po +555 -0
- package/update-info.sh +12 -6
- package/views/account/login-redirect.hbs +6 -5
- package/views/account/passkeys.hbs +6 -6
- package/views/account/security.hbs +2 -2
- package/views/accounts/account.hbs +17 -19
- package/views/accounts/edit.hbs +14 -14
- package/views/accounts/index.hbs +3 -3
- package/views/accounts/register/imap-server.hbs +26 -172
- package/views/accounts/register/validating.hbs +139 -0
- package/views/config/ai.hbs +14 -16
- package/views/config/branding.hbs +5 -5
- package/views/config/document-store/chat.hbs +8 -7
- package/views/config/document-store/index.hbs +13 -14
- package/views/config/document-store/mappings/index.hbs +5 -6
- package/views/config/document-store/mappings/new.hbs +1 -2
- package/views/config/document-store/pre-processing/index.hbs +4 -4
- package/views/config/email-processing.hbs +6 -6
- package/views/config/imap-proxy.hbs +6 -7
- package/views/config/license.hbs +8 -8
- package/views/config/logging.hbs +5 -7
- package/views/config/mcp.hbs +14 -18
- package/views/config/network.hbs +3 -3
- package/views/config/oauth/app.hbs +10 -10
- package/views/config/oauth/index.hbs +6 -6
- package/views/config/oauth/subscriptions.hbs +9 -9
- package/views/config/security.hbs +5 -7
- package/views/config/service.hbs +10 -9
- package/views/config/smtp.hbs +8 -11
- package/views/config/tls-upload.hbs +3 -3
- package/views/config/tls.hbs +33 -35
- package/views/config/webhooks.hbs +10 -13
- package/views/dashboard.hbs +9 -8
- package/views/gateways/edit.hbs +3 -3
- package/views/gateways/gateway.hbs +3 -3
- package/views/gateways/index.hbs +6 -6
- package/views/gateways/new.hbs +3 -3
- package/views/internals/index.hbs +14 -12
- package/views/layout/login.hbs +27 -14
- package/views/layout/prompt.hbs +12 -15
- package/views/mcp/authorize.hbs +1 -1
- package/views/partials/accounts_table.hbs +5 -5
- package/views/partials/add_account_modal.hbs +3 -3
- package/views/partials/address_list.hbs +4 -4
- package/views/partials/gateway_form.hbs +5 -5
- package/views/partials/mcp_account_limit.hbs +2 -2
- package/views/partials/oauth_config_header.hbs +2 -2
- package/views/partials/oauth_form.hbs +36 -41
- package/views/partials/public_alerts.hbs +1 -1
- package/views/partials/public_test_labels.hbs +15 -0
- package/views/partials/security_header.hbs +2 -2
- package/views/partials/template_form.hbs +3 -3
- package/views/partials/tls_security_card.hbs +4 -1
- package/views/partials/ui/form-field.hbs +6 -1
- package/views/partials/ui/setting-ref.hbs +12 -7
- package/views/partials/ui/stat-card.hbs +4 -1
- package/views/partials/ui/tabs.hbs +3 -7
- package/views/partials/webhook_form.hbs +9 -12
- package/views/reference/index.hbs +2 -2
- package/views/reference/token.hbs +3 -3
- package/views/suppression-lists/index.hbs +8 -6
- package/views/suppression-lists/list.hbs +13 -8
- package/views/templates/edit.hbs +1 -1
- package/views/templates/index.hbs +10 -11
- package/views/templates/template.hbs +4 -4
- package/views/tokens/index.hbs +17 -17
- package/views/tokens/new.hbs +18 -22
- package/views/webhooks/edit.hbs +1 -1
- package/views/webhooks/index.hbs +10 -11
- package/views/webhooks/new.hbs +1 -1
- package/views/webhooks/webhook.hbs +4 -5
package/views/config/ai.hbs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{{> ui/page-header title="AI Processing" icon="icon-[tabler--robot]" class="mb-1"}}
|
|
2
2
|
|
|
3
|
-
<p class="mb-6">
|
|
4
|
-
|
|
3
|
+
<p class="mb-6">Analyze new Inbox emails with AI and include the results in <code>messageNew</code> webhooks.
|
|
4
|
+
EmailEngine sends email content to the AI provider configured below.
|
|
5
5
|
</p>
|
|
6
6
|
|
|
7
7
|
{{> ui/env-managed-alert}}
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
</div>
|
|
30
30
|
{{/if}}
|
|
31
31
|
|
|
32
|
-
<div class="px-6 py-4 border-b border-base-content/10 flex items-start justify-between gap-4">
|
|
32
|
+
<div class="px-6 py-4 border-b border-base-content/10 ee-toggle-row flex items-start justify-between gap-4">
|
|
33
33
|
<div>
|
|
34
34
|
{{#> ui/checkbox id="generateEmailSummary" label="Enable AI Email Processing"
|
|
35
35
|
checked=values.generateEmailSummary error=errors.generateEmailSummary}}
|
|
36
36
|
{{#> ui/tooltip-rich icon="icon-[tabler--info-circle]"}}
|
|
37
37
|
<strong>Privacy Notice</strong><br>
|
|
38
|
-
Email
|
|
39
|
-
|
|
38
|
+
Email content is sent to the configured AI provider. Review that provider's data handling terms
|
|
39
|
+
before enabling processing.
|
|
40
40
|
{{/ui/tooltip-rich}}
|
|
41
41
|
{{/ui/checkbox}}
|
|
42
42
|
<span class="helper-text">Process new emails with AI and include the results in
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
{{#> ui/form-field id="openAiAPIKey" label="API Key" error=errors.openAiAPIKey}}
|
|
61
61
|
{{> ui/secret-field id="openAiAPIKey" value=values.openAiAPIKey error=errors.openAiAPIKey
|
|
62
62
|
toggleId="showOpenAiAPIKey" toggleLabel="Show API key" placeholder=(when hasOpenAiAPIKey "Key is set (hidden for security)")}}
|
|
63
|
-
<span class="helper-text">
|
|
63
|
+
<span class="helper-text">API key for the AI provider configured below.</span>
|
|
64
64
|
{{/ui/form-field}}
|
|
65
65
|
</div>
|
|
66
66
|
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
<div class="flex items-center gap-2">
|
|
71
71
|
<label class="label-text" for="settingsServiceOpenAiModel">AI Model</label>
|
|
72
72
|
|
|
73
|
-
{{> ui/btn label="Refresh
|
|
73
|
+
{{> ui/btn label="Refresh models" style="text" size="sm" id="reload-models-btn"
|
|
74
74
|
icon="icon-[tabler--refresh] reload-icon"}}
|
|
75
75
|
</div>
|
|
76
76
|
|
|
@@ -200,7 +200,7 @@
|
|
|
200
200
|
{{/ui/card}}
|
|
201
201
|
|
|
202
202
|
<div id="prompt_settings" class="card bg-base-100 shadow-md mb-6">
|
|
203
|
-
<div class="card-header flex items-center justify-between">
|
|
203
|
+
<div class="card-header flex flex-wrap items-center justify-between gap-3">
|
|
204
204
|
<h6 class="card-title text-primary">AI Instructions</h6>
|
|
205
205
|
{{> ui/btn label="Reset to default" variant="neutral" style="soft" size="sm"
|
|
206
206
|
icon="icon-[tabler--arrow-back-up]" id="prompt-reset-btn"}}
|
|
@@ -258,15 +258,13 @@
|
|
|
258
258
|
|
|
259
259
|
<div>
|
|
260
260
|
{{> ui/setting-ref name="openAiMaxTokens"}}
|
|
261
|
-
{{#> ui/form-field id="settingsOpenAiMaxTokens" label="
|
|
261
|
+
{{#> ui/form-field id="settingsOpenAiMaxTokens" label="Input token limit" error=errors.openAiMaxTokens}}
|
|
262
262
|
<input type="number" class="input text-list{{#if errors.openAiMaxTokens}} is-invalid{{/if}}"
|
|
263
263
|
id="settingsOpenAiMaxTokens" step="1" min="0" name="openAiMaxTokens"
|
|
264
264
|
value="{{values.openAiMaxTokens}}" />
|
|
265
|
-
<span class="helper-text">Maximum tokens
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
automatically shortens the email content until it fits. Defaults: GPT-5: 18000, GPT-4: 6500,
|
|
269
|
-
GPT-3.5: 3000.</span>
|
|
265
|
+
<span class="helper-text">Maximum tokens in the input prompt, including your instructions, the system prompt, the JSON schema,
|
|
266
|
+
and email data. EmailEngine shortens the email content to fit this limit. Leave blank for
|
|
267
|
+
EmailEngine's model-based default.</span>
|
|
270
268
|
{{/ui/form-field}}
|
|
271
269
|
</div>
|
|
272
270
|
|
|
@@ -274,7 +272,7 @@
|
|
|
274
272
|
</div>
|
|
275
273
|
|
|
276
274
|
<div class="mb-6">
|
|
277
|
-
{{> ui/btn label="Save
|
|
275
|
+
{{> ui/btn label="Save changes" type="submit" icon="icon-[tabler--settings]"}}
|
|
278
276
|
</div>
|
|
279
277
|
|
|
280
278
|
</form>
|
|
@@ -299,7 +297,7 @@
|
|
|
299
297
|
{{> ui/btn label="Close" variant="neutral" style="soft" overlay="#testPromptModal"}}
|
|
300
298
|
<button type="button" id="prompt-test-btn" class="btn btn-primary">
|
|
301
299
|
<span class="icon-[tabler--flask] size-4" id="prompt-test-btn-icon"></span>
|
|
302
|
-
Choose
|
|
300
|
+
Choose file and test
|
|
303
301
|
</button>
|
|
304
302
|
|
|
305
303
|
</div>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{{> ui/page-header title="Branding" icon="icon-[tabler--palette]" class="mb-1"}}
|
|
2
2
|
|
|
3
|
-
<p class="mb-6">
|
|
3
|
+
<p class="mb-6">Add your branding to public pages, including authentication forms, error pages, and unsubscribe pages.</p>
|
|
4
4
|
|
|
5
5
|
{{> ui/env-managed-alert}}
|
|
6
6
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<input type="hidden" name="crumb" value="{{crumb}}" />
|
|
10
10
|
|
|
11
11
|
<div id="templates_settings" class="card bg-base-100 shadow-md mb-6">
|
|
12
|
-
<div class="card-header flex items-center justify-between">
|
|
12
|
+
<div class="card-header flex flex-wrap items-center justify-between gap-3">
|
|
13
13
|
<h6 class="card-title text-primary">Public Page Customization</h6>
|
|
14
14
|
{{> ui/btn label="Preview" variant="neutral" style="soft" size="sm" icon="icon-[tabler--eye]"
|
|
15
15
|
id="preview-header-btn"}}
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
<input type="text" class="input{{#if errors.pageBrandName}} is-invalid{{/if}}"
|
|
23
23
|
id="settingsPageBrandName" name="pageBrandName" value="{{values.pageBrandName}}"
|
|
24
24
|
data-lpignore="true" autocomplete="off" placeholder="EmailEngine" />
|
|
25
|
-
<span class="helper-text">
|
|
25
|
+
<span class="helper-text">Shown in the browser tab title.</span>
|
|
26
26
|
{{/ui/form-field}}
|
|
27
27
|
</div>
|
|
28
28
|
|
|
@@ -58,14 +58,14 @@
|
|
|
58
58
|
<span class="helper-text text-error">{{errors.templateHtmlHead}}</span>
|
|
59
59
|
{{/if}}
|
|
60
60
|
|
|
61
|
-
<span class="helper-text">Add custom CSS, fonts, or analytics scripts
|
|
61
|
+
<span class="helper-text">Add custom CSS, fonts, or analytics scripts to public pages.</span>
|
|
62
62
|
</div>
|
|
63
63
|
|
|
64
64
|
</div>
|
|
65
65
|
</div>
|
|
66
66
|
|
|
67
67
|
<div class="mb-6">
|
|
68
|
-
{{> ui/btn label="Save
|
|
68
|
+
{{> ui/btn label="Save changes" type="submit" icon="icon-[tabler--settings]"}}
|
|
69
69
|
</div>
|
|
70
70
|
|
|
71
71
|
</form>
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
<div class="card bg-base-100 shadow-md mb-6">
|
|
8
8
|
|
|
9
|
-
<div class="px-6 py-4 border-b border-base-content/10 flex items-start justify-between gap-4">
|
|
9
|
+
<div class="px-6 py-4 border-b border-base-content/10 ee-toggle-row flex items-start justify-between gap-4">
|
|
10
10
|
|
|
11
11
|
<div>
|
|
12
12
|
<div class="flex items-center gap-2">
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
<label class="label-text p-0" for="documentStoreGenerateEmbeddings">Enable the "Chat with emails"
|
|
18
18
|
feature</label>
|
|
19
19
|
|
|
20
|
-
{{#> ui/tooltip text="Requires
|
|
20
|
+
{{#> ui/tooltip text="Requires Elasticsearch 8.8.0+"}}<span
|
|
21
21
|
class="icon-[tabler--info-circle] size-4 text-base-content/50"></span>{{/ui/tooltip}}
|
|
22
22
|
|
|
23
23
|
{{#unless documentStoreEnabled}}
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
class="link link-animated">Chat API method</a>.</span>
|
|
38
38
|
<div class="mt-2"><small><strong>Important:</strong> EmailEngine will only create embeddings for emails
|
|
39
39
|
processed when the feature is active. To generate embeddings for previously stored emails,
|
|
40
|
-
|
|
40
|
+
use the <a href="/admin/reference/account#putV1AccountAccountFlush" target="_blank"
|
|
41
41
|
rel="noopener noreferrer" class="link link-animated">Flush API method</a>. This will force
|
|
42
42
|
EmailEngine to re-process all emails in the Document Store.</small>
|
|
43
43
|
</div>
|
|
@@ -49,7 +49,8 @@
|
|
|
49
49
|
<div class="text-end flex flex-col justify-between gap-2">
|
|
50
50
|
|
|
51
51
|
<div class="space-y-1">
|
|
52
|
-
{{
|
|
52
|
+
{{!-- nofloat: stacked reference column, like the two entries under it --}}
|
|
53
|
+
{{> ui/setting-ref name="documentStoreGenerateEmbeddings" nofloat=true class="whitespace-nowrap"}}
|
|
53
54
|
|
|
54
55
|
{{> ui/setting-ref name="Chat with emails" href="/admin/reference/deprecated-endpoints-document-store#postV1ChatAccount"
|
|
55
56
|
nofloat=true class="whitespace-nowrap"}}
|
|
@@ -116,7 +117,7 @@
|
|
|
116
117
|
|
|
117
118
|
|
|
118
119
|
<div class="mb-6">
|
|
119
|
-
{{> ui/btn label="
|
|
120
|
+
{{> ui/btn label="Save changes" type="submit" icon="icon-[tabler--settings]"}}
|
|
120
121
|
</div>
|
|
121
122
|
|
|
122
123
|
</form>
|
|
@@ -129,7 +130,7 @@
|
|
|
129
130
|
{{#> ui/form-field id="inputAccount" label="Account ID"}}
|
|
130
131
|
<input type="text" class="input" name="account" id="inputAccount" aria-describedby="inputAccountHelp"
|
|
131
132
|
value="" required>
|
|
132
|
-
<span class="helper-text">
|
|
133
|
+
<span class="helper-text">ID of the account whose emails you want to search.</span>
|
|
133
134
|
{{/ui/form-field}}
|
|
134
135
|
</div>
|
|
135
136
|
|
|
@@ -137,7 +138,7 @@
|
|
|
137
138
|
{{#> ui/form-field id="question" label="Question"}}
|
|
138
139
|
<input type="text" class="input" name="question" id="question" aria-describedby="questionHelp" value=""
|
|
139
140
|
required>
|
|
140
|
-
<span class="helper-text">
|
|
141
|
+
<span class="helper-text">Ask a question about this account's stored emails.</span>
|
|
141
142
|
{{/ui/form-field}}
|
|
142
143
|
</div>
|
|
143
144
|
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
{{#> ui/stat-card variant="warning" icon="icon-[tabler--alert-triangle]" class="mb-6"}}
|
|
4
4
|
<ul class="list-disc ps-6">
|
|
5
|
-
<li>The Document Store backend only supports
|
|
5
|
+
<li>The Document Store backend only supports Elasticsearch v8+. Older Elasticsearch versions and
|
|
6
6
|
other alternatives like OpenSearch aren't compatible.</li>
|
|
7
|
-
<li>
|
|
8
|
-
might be occasional missed data.</li>
|
|
7
|
+
<li>Syncing uses a best-effort process, so the Document Store may not contain every mailbox change.</li>
|
|
9
8
|
<li>Email attachments won't be saved in the Document Store.</li>
|
|
10
9
|
<li>To index accounts, turn on the Document Store feature first. If it's off, any processed emails
|
|
11
10
|
won't sync to the Document Store. You can force EmailEngine to resync all emails for an account
|
|
@@ -24,18 +23,18 @@
|
|
|
24
23
|
<input type="hidden" name="crumb" value="{{crumb}}" />
|
|
25
24
|
|
|
26
25
|
<div class="card bg-base-100 shadow-md mb-6">
|
|
27
|
-
<div class="card-header flex items-center justify-between">
|
|
26
|
+
<div class="card-header flex flex-wrap items-center justify-between gap-3">
|
|
28
27
|
<h6 class="card-title text-primary">General settings</h6>
|
|
29
28
|
{{> ui/btn label="Test connection" variant="info" style="soft" size="sm" icon="icon-[tabler--link]"
|
|
30
29
|
id="test-payload-btn"}}
|
|
31
30
|
</div>
|
|
32
31
|
|
|
33
|
-
<div class="px-6 py-4 border-b border-base-content/10 flex items-start justify-between gap-4">
|
|
32
|
+
<div class="px-6 py-4 border-b border-base-content/10 ee-toggle-row flex items-start justify-between gap-4">
|
|
34
33
|
<div>
|
|
35
34
|
{{> ui/checkbox id="documentStoreEnabled" name="documentStoreEnabled"
|
|
36
|
-
label="Enable syncing to the Document Store
|
|
35
|
+
label="Enable syncing to the Document Store" checked=values.documentStoreEnabled
|
|
37
36
|
error=errors.documentStoreEnabled
|
|
38
|
-
hint="
|
|
37
|
+
hint="Store structured email content in Elasticsearch, including attachment metadata but not attachment contents."}}
|
|
39
38
|
|
|
40
39
|
<div class="mt-2"><small><strong>Important:</strong> EmailEngine only saves emails to the Document
|
|
41
40
|
Store if processed while the feature is active. To add existing emails, use the <a
|
|
@@ -46,11 +45,11 @@
|
|
|
46
45
|
</div>
|
|
47
46
|
|
|
48
47
|
<div class="text-end space-y-1">
|
|
49
|
-
{{
|
|
48
|
+
{{!-- nofloat: this is a stacked reference column, and a floated first entry collides with the block under it --}}
|
|
49
|
+
{{> ui/setting-ref name="documentStoreEnabled" nofloat=true class="whitespace-nowrap"}}
|
|
50
50
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
rel="noopener noreferrer" class="link link-animated">Request account flush</a>]</div>
|
|
51
|
+
{{> ui/setting-ref name="Request account flush" href="/admin/reference/account#putV1AccountAccountFlush"
|
|
52
|
+
nofloat=true class="whitespace-nowrap"}}
|
|
54
53
|
|
|
55
54
|
{{#if values.documentStoreEnabled}}
|
|
56
55
|
{{> ui/badge label="enabled" variant="success"}}
|
|
@@ -64,10 +63,10 @@
|
|
|
64
63
|
|
|
65
64
|
<div>
|
|
66
65
|
{{> ui/setting-ref name="documentStoreUrl"}}
|
|
67
|
-
{{#> ui/form-field id="documentStoreUrl" label="URL to
|
|
66
|
+
{{#> ui/form-field id="documentStoreUrl" label="URL to Elasticsearch" error=errors.documentStoreUrl}}
|
|
68
67
|
<input type="url" class="input trigger-example-render{{#if errors.documentStoreUrl}} is-invalid{{/if}}"
|
|
69
68
|
id="documentStoreUrl" name="documentStoreUrl" value="{{values.documentStoreUrl}}">
|
|
70
|
-
<span class="helper-text">URL to
|
|
69
|
+
<span class="helper-text">URL to Elasticsearch API, for example "http://localhost:9200".</span>
|
|
71
70
|
{{/ui/form-field}}
|
|
72
71
|
</div>
|
|
73
72
|
|
|
@@ -111,7 +110,7 @@
|
|
|
111
110
|
</div>
|
|
112
111
|
|
|
113
112
|
<div class="mb-6">
|
|
114
|
-
{{> ui/btn label="
|
|
113
|
+
{{> ui/btn label="Save changes" type="submit" icon="icon-[tabler--settings]"}}
|
|
115
114
|
</div>
|
|
116
115
|
|
|
117
116
|
</form>
|
|
@@ -2,16 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
{{#> ui/stat-card variant="info" icon="icon-[tabler--alert-circle]" class="mb-6"}}
|
|
4
4
|
<div class="mb-2">
|
|
5
|
-
You can create custom field type mappings for emails saved in
|
|
5
|
+
You can create custom field type mappings for emails saved in Elasticsearch. While EmailEngine
|
|
6
6
|
automatically maps types for its default fields, it doesn't do this for custom fields you've added
|
|
7
|
-
using the Document Store's pre-processing functions.
|
|
8
|
-
automatic type detection works well, but not always.
|
|
7
|
+
using the Document Store's pre-processing functions. Define a mapping when Elasticsearch's automatic type detection does not match your data.
|
|
9
8
|
</div>
|
|
10
9
|
<div>
|
|
11
10
|
<strong>Important:</strong> Once you've set a field mapping, you can't change it without migrating
|
|
12
|
-
the entire index. This also holds true for fields that
|
|
13
|
-
|
|
14
|
-
Make sure to set your desired mappings before saving data to
|
|
11
|
+
the entire index. This also holds true for fields that Elasticsearch has auto-mapped. If
|
|
12
|
+
Elasticsearch sets a type for a field automatically, you won't be able to change that type later.
|
|
13
|
+
Make sure to set your desired mappings before saving data to Elasticsearch.
|
|
15
14
|
</div>
|
|
16
15
|
{{/ui/stat-card}}
|
|
17
16
|
|
|
@@ -57,8 +57,7 @@ midHref="/admin/config/document-store/mappings" midLabel="Field mappings" curren
|
|
|
57
57
|
|
|
58
58
|
{{#> ui/modal id="submitModal" title="Add mapping" titleId="submitModalLabel"}}
|
|
59
59
|
<div class="modal-body">
|
|
60
|
-
<p>
|
|
61
|
-
modify an existing mapping.</p>
|
|
60
|
+
<p>Add this field mapping? Changing or deleting it later requires reindexing all stored documents.</p>
|
|
62
61
|
</div>
|
|
63
62
|
<div class="modal-footer">
|
|
64
63
|
{{> ui/btn label="Close" variant="neutral" style="soft" overlay="#submitModal"}}
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
<input type="hidden" id="map-content-element" name="contentMapJson" value="{{values.contentMapJson}}">
|
|
9
9
|
|
|
10
10
|
<div class="card bg-base-100 shadow-md mb-6">
|
|
11
|
-
<div class="px-6 py-4 border-b border-base-content/10 flex items-start justify-between gap-4">
|
|
11
|
+
<div class="px-6 py-4 border-b border-base-content/10 ee-toggle-row flex items-start justify-between gap-4">
|
|
12
12
|
<div>
|
|
13
|
-
{{> ui/checkbox id="enabled" name="enabled" label="Enable pre-processing
|
|
13
|
+
{{> ui/checkbox id="enabled" name="enabled" label="Enable pre-processing"
|
|
14
14
|
checked=values.enabled error=errors.enabled
|
|
15
|
-
hint="
|
|
15
|
+
hint="Filter emails and transform their data before saving them to the Document Store."}}
|
|
16
16
|
</div>
|
|
17
17
|
|
|
18
18
|
<div class="text-end space-y-1">
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
</div>
|
|
97
97
|
|
|
98
98
|
<div class="mb-6">
|
|
99
|
-
{{> ui/btn label="
|
|
99
|
+
{{> ui/btn label="Save changes" type="submit" icon="icon-[tabler--settings]"}}
|
|
100
100
|
</div>
|
|
101
101
|
</form>
|
|
102
102
|
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
{{#> ui/card title="Email Delivery" id="submission_settings"}}
|
|
12
12
|
<div>
|
|
13
13
|
{{> ui/setting-ref name="deliveryAttempts"}}
|
|
14
|
-
{{#> ui/form-field id="settingsDeliveryAttempts" label="
|
|
14
|
+
{{#> ui/form-field id="settingsDeliveryAttempts" label="Delivery attempts" error=errors.deliveryAttempts}}
|
|
15
15
|
<input type="number" min="0" class="input{{#if errors.deliveryAttempts}} is-invalid{{/if}}"
|
|
16
16
|
id="settingsDeliveryAttempts" name="deliveryAttempts" value="{{values.deliveryAttempts}}"
|
|
17
17
|
data-lpignore="true" autocomplete="off" />
|
|
18
|
-
<span class="helper-text">
|
|
18
|
+
<span class="helper-text">Maximum delivery attempts per email, including the first attempt.</span>
|
|
19
19
|
{{/ui/form-field}}
|
|
20
20
|
</div>
|
|
21
21
|
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
<option value="{{id}}" {{#if selected}}selected{{/if}}>{{name}}</option>
|
|
32
32
|
{{/each}}
|
|
33
33
|
</select>
|
|
34
|
-
<span class="helper-text"><strong>Full:</strong> Track
|
|
35
|
-
<strong>Fast:</strong> Track only new emails.
|
|
34
|
+
<span class="helper-text"><strong>Full:</strong> Track new, deleted, and updated emails.
|
|
35
|
+
<strong>Fast:</strong> Track only new emails. This setting applies to new accounts. To change existing
|
|
36
36
|
accounts, perform an <a href="/admin/reference/account#putV1AccountAccountFlush"
|
|
37
37
|
class="link link-animated">account flush</a>.</span>
|
|
38
38
|
{{/ui/form-field}}
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
label="Detect Gmail Categories (IMAP)" checked=values.resolveGmailCategories
|
|
78
78
|
error=errors.resolveGmailCategories}}
|
|
79
79
|
<span class="helper-text">Identify which Gmail tab (Primary, Social, Promotions, Updates, Forums) new
|
|
80
|
-
emails belong to.
|
|
80
|
+
emails belong to. Included as the <code>category</code> property in <code>messageNew</code> webhooks.
|
|
81
81
|
Gmail API accounts get this automatically.</span>
|
|
82
82
|
</div>
|
|
83
83
|
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
{{/ui/card}}
|
|
115
115
|
|
|
116
116
|
<div class="mb-6">
|
|
117
|
-
{{> ui/btn label="Save
|
|
117
|
+
{{> ui/btn label="Save changes" type="submit" icon="icon-[tabler--settings]"}}
|
|
118
118
|
</div>
|
|
119
119
|
|
|
120
120
|
</form>
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
tooltip through the /admin/changes SSE feed (targets .state-info[data-type]) --}}
|
|
3
3
|
{{> ui/page-header title="IMAP Proxy" icon="icon-[tabler--server]" stateLabel=serverState.label stateType="imapProxy" class="mb-1"}}
|
|
4
4
|
|
|
5
|
-
<p>
|
|
6
|
-
|
|
5
|
+
<p>Connect an IMAP client to an account managed by EmailEngine. The proxy authenticates with the email server
|
|
6
|
+
using the account's stored credentials. Your client signs in with an access token or the global password.</p>
|
|
7
7
|
|
|
8
8
|
<div class="alert alert-soft alert-info mb-6">
|
|
9
9
|
<span class="icon-[tabler--info-circle] size-5 shrink-0"></span>
|
|
10
10
|
<span><strong>Compatibility Note:</strong> IMAP proxy only works with accounts that
|
|
11
11
|
connect via IMAP protocol. This includes Gmail and Microsoft 365 accounts using OAuth2 authentication with IMAP
|
|
12
|
-
access. Accounts using
|
|
12
|
+
access. Accounts using Microsoft Graph or Gmail API as their mail backend are not supported through the
|
|
13
13
|
proxy.</span>
|
|
14
14
|
</div>
|
|
15
15
|
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
<h6 class="card-title text-primary">Server Configuration</h6>
|
|
27
27
|
</div>
|
|
28
28
|
|
|
29
|
-
<div class="px-6 py-4 border-b border-base-content/10 flex items-start justify-between gap-4">
|
|
29
|
+
<div class="px-6 py-4 border-b border-base-content/10 ee-toggle-row flex items-start justify-between gap-4">
|
|
30
30
|
{{> ui/checkbox id="imapProxyServerEnabled" name="imapProxyServerEnabled" label="Enable IMAP Proxy"
|
|
31
31
|
checked=values.imapProxyServerEnabled error=errors.imapProxyServerEnabled}}
|
|
32
32
|
|
|
@@ -54,8 +54,7 @@
|
|
|
54
54
|
class="input basicAutoComplete trigger-example-render{{#if errors.imapProxyServerHost}} is-invalid{{/if}}"
|
|
55
55
|
id="imapProxyServerHost" name="imapProxyServerHost" value="{{values.imapProxyServerHost}}"
|
|
56
56
|
data-lpignore="true" autocomplete="off" />
|
|
57
|
-
<span class="helper-text">IP address
|
|
58
|
-
anywhere.</span>
|
|
57
|
+
<span class="helper-text">IP address the proxy listens on. Use "0.0.0.0" or leave blank to listen on all IPv4 interfaces.</span>
|
|
59
58
|
{{/ui/form-field}}
|
|
60
59
|
</div>
|
|
61
60
|
|
|
@@ -131,7 +130,7 @@
|
|
|
131
130
|
{{/ui/details}}
|
|
132
131
|
|
|
133
132
|
<div class="mb-6">
|
|
134
|
-
{{> ui/btn label="Save
|
|
133
|
+
{{> ui/btn label="Save changes" type="submit" icon="icon-[tabler--settings]"}}
|
|
135
134
|
</div>
|
|
136
135
|
|
|
137
136
|
</form>
|
package/views/config/license.hbs
CHANGED
|
@@ -22,7 +22,7 @@ class="mb-1"}}
|
|
|
22
22
|
</p>
|
|
23
23
|
|
|
24
24
|
<div>
|
|
25
|
-
{{> ui/btn href="https://postalsys.com/plans" external=true label="Renew
|
|
25
|
+
{{> ui/btn href="https://postalsys.com/plans" external=true label="Renew subscription"
|
|
26
26
|
icon="icon-[tabler--arrow-right]"}}
|
|
27
27
|
</div>
|
|
28
28
|
|
|
@@ -33,7 +33,7 @@ class="mb-1"}}
|
|
|
33
33
|
|
|
34
34
|
{{#> ui/card}}
|
|
35
35
|
<div class="float-right ms-4">
|
|
36
|
-
{{> ui/btn href="https://postalsys.com/licenses" external=true label="Get a
|
|
36
|
+
{{> ui/btn href="https://postalsys.com/licenses" external=true label="Get a license"
|
|
37
37
|
icon="icon-[tabler--arrow-right]"}}
|
|
38
38
|
</div>
|
|
39
39
|
<p>
|
|
@@ -49,9 +49,9 @@ class="mb-1"}}
|
|
|
49
49
|
|
|
50
50
|
{{#if licenseInfo.active}}
|
|
51
51
|
<div class="card bg-base-100 shadow-md mb-6">
|
|
52
|
-
<div class="card-header flex items-center justify-between">
|
|
52
|
+
<div class="card-header flex flex-wrap items-center justify-between gap-3">
|
|
53
53
|
<h6 class="card-title text-primary">Current License</h6>
|
|
54
|
-
{{> ui/btn label="Remove
|
|
54
|
+
{{> ui/btn label="Remove license" variant="error" style="soft" size="sm" icon="icon-[tabler--trash]"
|
|
55
55
|
id="unregister-license-link" overlay="#deleteLicense"}}
|
|
56
56
|
</div>
|
|
57
57
|
<div class="card-body">
|
|
@@ -97,7 +97,7 @@ class="mb-1"}}
|
|
|
97
97
|
<input type="hidden" name="crumb" value="{{crumb}}" />
|
|
98
98
|
|
|
99
99
|
<div class="mb-6">
|
|
100
|
-
{{> ui/btn label="Upload
|
|
100
|
+
{{> ui/btn label="Upload license file" variant="info" id="licenseFile" icon="icon-[tabler--file-import]"}}
|
|
101
101
|
</div>
|
|
102
102
|
|
|
103
103
|
<div class="mb-6">
|
|
@@ -111,14 +111,14 @@ class="mb-1"}}
|
|
|
111
111
|
</div>
|
|
112
112
|
|
|
113
113
|
<div class="mb-2">
|
|
114
|
-
{{> ui/btn label="Activate
|
|
114
|
+
{{> ui/btn label="Activate license" type="submit" icon="icon-[tabler--key]"}}
|
|
115
115
|
</div>
|
|
116
116
|
|
|
117
117
|
</form>
|
|
118
118
|
{{/ui/details}}
|
|
119
119
|
|
|
120
|
-
{{#> ui/confirm-modal id="deleteLicense" title="Remove
|
|
121
|
-
submitLabel="Remove
|
|
120
|
+
{{#> ui/confirm-modal id="deleteLicense" title="Remove license" action="/admin/config/license/delete"
|
|
121
|
+
submitLabel="Remove license"}}
|
|
122
122
|
Remove the current license key from this EmailEngine instance?
|
|
123
123
|
{{/ui/confirm-modal}}
|
|
124
124
|
|
package/views/config/logging.hbs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{{> ui/page-header title="Logging" icon="icon-[tabler--settings]" class="mb-1"}}
|
|
2
2
|
|
|
3
3
|
<p class="mb-6">
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
Record account connection activity for troubleshooting, including IMAP, SMTP, Gmail API, and Microsoft Graph
|
|
5
|
+
requests. Download stored logs from each account's page.
|
|
6
6
|
</p>
|
|
7
7
|
|
|
8
8
|
{{> ui/env-managed-alert}}
|
|
@@ -16,8 +16,7 @@
|
|
|
16
16
|
{{> ui/setting-ref name="logs.all"}}
|
|
17
17
|
{{> ui/checkbox id="settingsLogsAll" name="all" label="Enable Logging for All Accounts"
|
|
18
18
|
checked=values.all error=errors.all}}
|
|
19
|
-
<span class="helper-text">
|
|
20
|
-
performance with many accounts.<br>
|
|
19
|
+
<span class="helper-text">Record logs for every connected account. Logging many accounts increases memory use and can affect performance.<br>
|
|
21
20
|
<strong>Restart required</strong> after changing this setting.</span>
|
|
22
21
|
</div>
|
|
23
22
|
|
|
@@ -28,8 +27,7 @@
|
|
|
28
27
|
<input type="number" class="input{{#if errors.maxLogLines}} is-invalid{{/if}}"
|
|
29
28
|
id="settingsLogsMaxLogLines" min="0" max="10000000" name="maxLogLines"
|
|
30
29
|
value="{{values.maxLogLines}}" />
|
|
31
|
-
<span class="helper-text">Maximum log entries to
|
|
32
|
-
choose wisely to avoid running out of RAM.</span>
|
|
30
|
+
<span class="helper-text">Maximum log entries to retain per account. Higher limits use more Redis memory.</span>
|
|
33
31
|
{{/ui/form-field}}
|
|
34
32
|
</div>
|
|
35
33
|
|
|
@@ -72,7 +70,7 @@
|
|
|
72
70
|
{{/ui/card}}
|
|
73
71
|
|
|
74
72
|
<div class="mb-6">
|
|
75
|
-
{{> ui/btn label="Save
|
|
73
|
+
{{> ui/btn label="Save changes" type="submit" icon="icon-[tabler--settings]"}}
|
|
76
74
|
</div>
|
|
77
75
|
|
|
78
76
|
</form>
|
package/views/config/mcp.hbs
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
{{> ui/page-header title="MCP" icon="icon-[tabler--plug-connected]" badgeLabel="Beta" badgeVariant="info" class="mb-1"}}
|
|
2
2
|
|
|
3
3
|
<p class="mb-6">
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
OAuth2 applications, gateways, tokens, the license, queues and logs) and mail (list and search messages, read
|
|
7
|
-
content, organize and delete messages, create drafts, send mail). It accepts the same access tokens as the REST
|
|
8
|
-
API.
|
|
4
|
+
Connect AI agents through the Model Context Protocol (MCP). Choose whether each agent can manage this
|
|
5
|
+
EmailEngine instance, work with email, or both. Access tokens control which tools and accounts it can use.
|
|
9
6
|
</p>
|
|
10
7
|
|
|
11
8
|
<div class="mb-6 alert alert-soft alert-info">
|
|
@@ -18,8 +15,7 @@
|
|
|
18
15
|
<div class="mb-6 alert alert-soft alert-warning">
|
|
19
16
|
<span class="icon-[tabler--alert-triangle] size-5 shrink-0"></span>
|
|
20
17
|
<span>The MCP endpoint is disabled for this deployment (<code>EENGINE_MCP_ENABLED</code> or <code>[mcp]
|
|
21
|
-
enabled</code> in the configuration file), so the settings below
|
|
22
|
-
back on and EmailEngine is restarted.</span>
|
|
18
|
+
enabled</code> in the configuration file), so the settings below take effect only after MCP is enabled at startup and EmailEngine is restarted.</span>
|
|
23
19
|
</div>
|
|
24
20
|
{{/unless}}
|
|
25
21
|
|
|
@@ -69,7 +65,7 @@
|
|
|
69
65
|
{{/ui/card}}
|
|
70
66
|
|
|
71
67
|
<div class="mb-6">
|
|
72
|
-
{{> ui/btn label="Save
|
|
68
|
+
{{> ui/btn label="Save changes" type="submit" icon="icon-[tabler--settings]"}}
|
|
73
69
|
</div>
|
|
74
70
|
</form>
|
|
75
71
|
|
|
@@ -84,7 +80,7 @@
|
|
|
84
80
|
{{#unless values.mcpEnabled}}
|
|
85
81
|
<div class="mb-6 alert alert-soft alert-warning">
|
|
86
82
|
<span class="icon-[tabler--alert-triangle] size-5 shrink-0"></span>
|
|
87
|
-
<span>
|
|
83
|
+
<span>Enable the MCP endpoint before connecting a client. Turn it on under
|
|
88
84
|
<button type="button" class="link cursor-pointer" data-goto-tab="mcp-settings">Settings</button> first.</span>
|
|
89
85
|
</div>
|
|
90
86
|
{{/unless}}
|
|
@@ -136,8 +132,8 @@
|
|
|
136
132
|
|
|
137
133
|
{{!-- At the decision point rather than only in the collapsed manual-config block: the
|
|
138
134
|
level chosen here is what decides whether injected instructions can act --}}
|
|
139
|
-
<p class="text-base-content/60 text-sm">
|
|
140
|
-
|
|
135
|
+
<p class="text-base-content/60 text-sm">The connected client may send email content to its AI model. Instructions in received emails can influence
|
|
136
|
+
the agent. Grant permission to send or delete email only when the agent needs it.</p>
|
|
141
137
|
|
|
142
138
|
{{> mcp_account_limit id="mcpGenAccount"}}
|
|
143
139
|
|
|
@@ -174,8 +170,8 @@
|
|
|
174
170
|
</div>
|
|
175
171
|
|
|
176
172
|
<div class="text-sm text-base-content/60">
|
|
177
|
-
|
|
178
|
-
|
|
173
|
+
Each agent connects using an access token with the <code>mcp-manage</code> or <code>mcp</code> scope.
|
|
174
|
+
Review or revoke these tokens on the <a href="/admin/tokens?scope=mcp-manage&scope=mcp" class="link">Access
|
|
179
175
|
Tokens</a> page.
|
|
180
176
|
</div>
|
|
181
177
|
</div>
|
|
@@ -206,8 +202,9 @@
|
|
|
206
202
|
{{!-- No prompt-injection sentence here: the generator fieldset in this same panel already
|
|
207
203
|
carries it, at the point where the access level is chosen --}}
|
|
208
204
|
<div class="text-sm text-base-content/60">
|
|
209
|
-
|
|
210
|
-
|
|
205
|
+
Create a token on the <a href="/admin/tokens" class="link">Access Tokens</a> page with
|
|
206
|
+
<code>mcp-manage</code> scope for instance management, <code>mcp</code> scope for email, or both.
|
|
207
|
+
If the agent only needs one mailbox, limit the token to that account.
|
|
211
208
|
</div>
|
|
212
209
|
|
|
213
210
|
</div>
|
|
@@ -283,9 +280,8 @@
|
|
|
283
280
|
{{!-- Outside the method panels: what a connected agent receives is the same either way --}}
|
|
284
281
|
{{#> ui/details summary="Exposed tools" summarySmall=(concat toolCatalog.total " tools") class="card bg-base-100 shadow-md mb-6"}}
|
|
285
282
|
<div class="space-y-6">
|
|
286
|
-
<p class="text-sm text-base-content/60">
|
|
287
|
-
|
|
288
|
-
also depends on its access level and account binding.</p>
|
|
283
|
+
<p class="text-sm text-base-content/60">Available MCP tools, grouped by scope. A connected agent receives only the tools allowed by its token
|
|
284
|
+
scopes, permissions, and account restriction.</p>
|
|
289
285
|
{{#each toolCatalog.sections}}
|
|
290
286
|
<div>
|
|
291
287
|
<h6 class="mb-2 font-bold">{{label}} <span class="text-base-content/60 font-normal">({{tools.length}} tools,
|