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
|
@@ -62,27 +62,35 @@ jobs:
|
|
|
62
62
|
ssh -o "UserKnownHostsFile=/dev/null" -o "StrictHostKeyChecking=no" deploy@$TARGET_HOST_02 "/opt/deploy.sh ${SERVICE_NAME}"
|
|
63
63
|
|
|
64
64
|
docker:
|
|
65
|
-
name: Build Docker Image
|
|
66
|
-
|
|
65
|
+
name: Build Docker Image (${{ matrix.arch }})
|
|
66
|
+
# One job per architecture, each on a runner of that architecture. The arm64 leg used to be
|
|
67
|
+
# emulated through QEMU on an x86 runner, where `npm ci` hit an illegal instruction and then
|
|
68
|
+
# hung until the job timeout - reliably on any commit that touches package-lock.json, since
|
|
69
|
+
# that busts the cached layer and forces the install to run in full. A native runner takes
|
|
70
|
+
# the emulator out of the picture, and each image now gets smoke tested on the architecture
|
|
71
|
+
# it was actually built for rather than only amd64.
|
|
72
|
+
runs-on: ${{ matrix.runner }}
|
|
67
73
|
timeout-minutes: 30
|
|
68
74
|
permissions:
|
|
69
75
|
contents: read
|
|
70
76
|
packages: write
|
|
77
|
+
strategy:
|
|
78
|
+
fail-fast: false
|
|
79
|
+
matrix:
|
|
80
|
+
include:
|
|
81
|
+
- arch: amd64
|
|
82
|
+
platform: linux/amd64
|
|
83
|
+
runner: ubuntu-24.04
|
|
84
|
+
- arch: arm64
|
|
85
|
+
platform: linux/arm64
|
|
86
|
+
runner: ubuntu-24.04-arm
|
|
71
87
|
|
|
72
88
|
steps:
|
|
73
89
|
- name: Checkout
|
|
74
90
|
uses: actions/checkout@v6
|
|
75
91
|
|
|
76
|
-
- name: Set up QEMU
|
|
77
|
-
uses: docker/setup-qemu-action@v4
|
|
78
|
-
with:
|
|
79
|
-
platforms: 'arm64,arm'
|
|
80
|
-
|
|
81
92
|
- name: Set up Docker Buildx
|
|
82
|
-
id: buildx
|
|
83
93
|
uses: docker/setup-buildx-action@v4
|
|
84
|
-
with:
|
|
85
|
-
platforms: linux/amd64,linux/arm64/v8
|
|
86
94
|
|
|
87
95
|
- name: Login to Docker Hub
|
|
88
96
|
uses: docker/login-action@v4
|
|
@@ -97,46 +105,91 @@ jobs:
|
|
|
97
105
|
username: ${{ github.repository_owner }}
|
|
98
106
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
99
107
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
images: |
|
|
105
|
-
${{ github.repository }}
|
|
106
|
-
ghcr.io/${{ github.repository }}
|
|
107
|
-
# :latest is owned by the release workflow (release.yaml) and
|
|
108
|
-
# always points at the newest release; per-push dev builds from
|
|
109
|
-
# master are published as :edge instead
|
|
110
|
-
tags: |
|
|
111
|
-
type=raw,value=edge,enable=true
|
|
112
|
-
|
|
113
|
-
# Build the amd64 image locally (no push) and smoke test the CLI BEFORE publishing, so a
|
|
114
|
-
# broken image is never pushed - the previous version smoke tested the already-pushed
|
|
115
|
-
# image and could only detect the regression, not prevent shipping it. This build replays
|
|
116
|
-
# from the same gha cache the multi-arch push below reuses, so it is cheap.
|
|
117
|
-
- name: Build for smoke test (amd64, local)
|
|
108
|
+
# Build locally and exercise the CLI BEFORE anything is published, so a broken image is
|
|
109
|
+
# never pushed. The push below replays from this build's local layer cache, so paying
|
|
110
|
+
# for the build twice costs almost nothing.
|
|
111
|
+
- name: Build for smoke test (local)
|
|
118
112
|
uses: docker/build-push-action@v7
|
|
119
113
|
with:
|
|
120
114
|
context: .
|
|
121
|
-
platforms:
|
|
115
|
+
platforms: ${{ matrix.platform }}
|
|
122
116
|
load: true
|
|
123
117
|
tags: emailengine:smoke-test
|
|
124
118
|
# Without a cache backend BuildKit starts cold on every run: setup-buildx-action
|
|
125
|
-
# creates a fresh builder on an ephemeral runner
|
|
126
|
-
#
|
|
127
|
-
cache-from: type=gha
|
|
119
|
+
# creates a fresh builder on an ephemeral runner. The scope is per-architecture so
|
|
120
|
+
# the two legs cannot evict each other's entries.
|
|
121
|
+
cache-from: type=gha,scope=${{ matrix.arch }}
|
|
128
122
|
|
|
129
123
|
- name: Smoke test the CLI inside the image
|
|
130
124
|
run: bash .github/docker-smoke-test.sh emailengine:smoke-test
|
|
131
125
|
|
|
132
|
-
|
|
126
|
+
# Pushed by digest and left untagged: a tag can only be attached once both architectures
|
|
127
|
+
# exist, which is what the manifest job below does. Both registries are written here so
|
|
128
|
+
# the blobs are already in place and the manifest job never has to copy them between
|
|
129
|
+
# registries.
|
|
130
|
+
- name: Build and push by digest
|
|
133
131
|
id: build
|
|
134
132
|
uses: docker/build-push-action@v7
|
|
135
133
|
with:
|
|
136
134
|
context: .
|
|
137
|
-
platforms: ${{
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
135
|
+
platforms: ${{ matrix.platform }}
|
|
136
|
+
outputs: type=image,"name=docker.io/${{ github.repository }},ghcr.io/${{ github.repository }}",push-by-digest=true,name-canonical=true,push=true
|
|
137
|
+
cache-from: type=gha,scope=${{ matrix.arch }}
|
|
138
|
+
cache-to: type=gha,mode=max,scope=${{ matrix.arch }}
|
|
139
|
+
|
|
140
|
+
- name: Export digest
|
|
141
|
+
run: |
|
|
142
|
+
mkdir -p /tmp/digests
|
|
143
|
+
digest="${{ steps.build.outputs.digest }}"
|
|
144
|
+
touch "/tmp/digests/${digest#sha256:}"
|
|
145
|
+
|
|
146
|
+
- name: Upload digest
|
|
147
|
+
uses: actions/upload-artifact@v4
|
|
148
|
+
with:
|
|
149
|
+
name: digests-${{ matrix.arch }}
|
|
150
|
+
path: /tmp/digests/*
|
|
151
|
+
if-no-files-found: error
|
|
152
|
+
retention-days: 1
|
|
153
|
+
|
|
154
|
+
docker-manifest:
|
|
155
|
+
name: Publish Docker Manifest
|
|
156
|
+
runs-on: ubuntu-24.04
|
|
157
|
+
needs: docker
|
|
158
|
+
timeout-minutes: 15
|
|
159
|
+
permissions:
|
|
160
|
+
contents: read
|
|
161
|
+
packages: write
|
|
162
|
+
|
|
163
|
+
steps:
|
|
164
|
+
- name: Download digests
|
|
165
|
+
uses: actions/download-artifact@v4
|
|
166
|
+
with:
|
|
167
|
+
path: /tmp/digests
|
|
168
|
+
pattern: digests-*
|
|
169
|
+
merge-multiple: true
|
|
170
|
+
|
|
171
|
+
- name: Set up Docker Buildx
|
|
172
|
+
uses: docker/setup-buildx-action@v4
|
|
173
|
+
|
|
174
|
+
- name: Login to Docker Hub
|
|
175
|
+
uses: docker/login-action@v4
|
|
176
|
+
with:
|
|
177
|
+
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
178
|
+
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
179
|
+
|
|
180
|
+
- name: Login to GHCR
|
|
181
|
+
uses: docker/login-action@v4
|
|
182
|
+
with:
|
|
183
|
+
registry: ghcr.io
|
|
184
|
+
username: ${{ github.repository_owner }}
|
|
185
|
+
password: ${{ secrets.GITHUB_TOKEN }}
|
|
186
|
+
|
|
187
|
+
# :latest is owned by the release workflow (release.yaml) and always points at the
|
|
188
|
+
# newest release; per-push dev builds from master are published as :edge instead.
|
|
189
|
+
- name: Create and push the manifest list
|
|
190
|
+
working-directory: /tmp/digests
|
|
191
|
+
run: |
|
|
192
|
+
for image in "docker.io/${{ github.repository }}" "ghcr.io/${{ github.repository }}"; do
|
|
193
|
+
docker buildx imagetools create -t "${image}:edge" \
|
|
194
|
+
$(printf "${image}@sha256:%s " *)
|
|
195
|
+
done
|
|
@@ -64,29 +64,33 @@ jobs:
|
|
|
64
64
|
- run: npm publish --provenance --access public
|
|
65
65
|
|
|
66
66
|
publish_docker:
|
|
67
|
-
name: Publish Tagged Docker Image
|
|
68
|
-
runs-on: ubuntu-latest
|
|
67
|
+
name: Publish Tagged Docker Image (${{ matrix.arch }})
|
|
69
68
|
needs: release_please
|
|
70
69
|
if: needs.release_please.outputs.release_created
|
|
71
|
-
#
|
|
72
|
-
#
|
|
73
|
-
#
|
|
70
|
+
# One job per architecture, each on a runner of that architecture. The arm64 leg used to be
|
|
71
|
+
# emulated through QEMU on an x86 runner, where `npm ci` hit an illegal instruction and then
|
|
72
|
+
# hung until this timeout - and a release commit is the worst case for it, because the
|
|
73
|
+
# version bump busts the cached layer and forces the install to run in full. A native runner
|
|
74
|
+
# takes the emulator out of the picture.
|
|
75
|
+
runs-on: ${{ matrix.runner }}
|
|
74
76
|
timeout-minutes: 30
|
|
77
|
+
strategy:
|
|
78
|
+
fail-fast: false
|
|
79
|
+
matrix:
|
|
80
|
+
include:
|
|
81
|
+
- arch: amd64
|
|
82
|
+
platform: linux/amd64
|
|
83
|
+
runner: ubuntu-24.04
|
|
84
|
+
- arch: arm64
|
|
85
|
+
platform: linux/arm64
|
|
86
|
+
runner: ubuntu-24.04-arm
|
|
75
87
|
steps:
|
|
76
88
|
- run: echo version v${{needs.release_please.outputs.major}}.${{needs.release_please.outputs.minor}}.${{needs.release_please.outputs.patch}}
|
|
77
89
|
|
|
78
90
|
- uses: actions/checkout@v6
|
|
79
91
|
|
|
80
|
-
- name: Set up QEMU
|
|
81
|
-
uses: docker/setup-qemu-action@v4
|
|
82
|
-
with:
|
|
83
|
-
platforms: "arm64,arm"
|
|
84
|
-
|
|
85
92
|
- name: Set up Docker Buildx
|
|
86
|
-
id: buildx
|
|
87
93
|
uses: docker/setup-buildx-action@v4
|
|
88
|
-
with:
|
|
89
|
-
platforms: linux/amd64,linux/arm64/v8
|
|
90
94
|
|
|
91
95
|
- name: Login to DockerHub
|
|
92
96
|
uses: docker/login-action@v4
|
|
@@ -101,37 +105,93 @@ jobs:
|
|
|
101
105
|
username: ${{ github.repository_owner }}
|
|
102
106
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
103
107
|
|
|
104
|
-
# Build
|
|
105
|
-
#
|
|
106
|
-
#
|
|
107
|
-
|
|
108
|
-
- name: Build for smoke test (amd64, local)
|
|
108
|
+
# Build locally and exercise the CLI BEFORE anything is published, so a broken image is
|
|
109
|
+
# never pushed to the tags users pull. The push below replays from this build's local
|
|
110
|
+
# layer cache, so paying for the build twice costs almost nothing.
|
|
111
|
+
- name: Build for smoke test (local)
|
|
109
112
|
uses: docker/build-push-action@v7
|
|
110
113
|
with:
|
|
111
114
|
context: .
|
|
112
|
-
platforms:
|
|
115
|
+
platforms: ${{ matrix.platform }}
|
|
113
116
|
load: true
|
|
114
117
|
tags: emailengine:smoke-test
|
|
115
|
-
cache-from: type=gha
|
|
118
|
+
cache-from: type=gha,scope=${{ matrix.arch }}
|
|
116
119
|
|
|
117
120
|
- name: Smoke test the CLI inside the image
|
|
118
121
|
run: bash .github/docker-smoke-test.sh emailengine:smoke-test
|
|
119
122
|
|
|
120
|
-
|
|
123
|
+
# Pushed by digest and left untagged: the release tags can only be attached once both
|
|
124
|
+
# architectures exist, which is what the manifest job below does. Both registries are
|
|
125
|
+
# written here so the blobs are already in place and the manifest job never has to copy
|
|
126
|
+
# them between registries.
|
|
127
|
+
- name: Build and push by digest
|
|
121
128
|
id: build
|
|
122
129
|
uses: docker/build-push-action@v7
|
|
123
130
|
with:
|
|
124
131
|
context: .
|
|
125
|
-
platforms: ${{
|
|
126
|
-
|
|
127
|
-
cache-from: type=gha
|
|
128
|
-
cache-to: type=gha,mode=max
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
132
|
+
platforms: ${{ matrix.platform }}
|
|
133
|
+
outputs: type=image,"name=docker.io/${{ github.repository }},ghcr.io/${{ github.repository }}",push-by-digest=true,name-canonical=true,push=true
|
|
134
|
+
cache-from: type=gha,scope=${{ matrix.arch }}
|
|
135
|
+
cache-to: type=gha,mode=max,scope=${{ matrix.arch }}
|
|
136
|
+
|
|
137
|
+
- name: Export digest
|
|
138
|
+
run: |
|
|
139
|
+
mkdir -p /tmp/digests
|
|
140
|
+
digest="${{ steps.build.outputs.digest }}"
|
|
141
|
+
touch "/tmp/digests/${digest#sha256:}"
|
|
142
|
+
|
|
143
|
+
- name: Upload digest
|
|
144
|
+
uses: actions/upload-artifact@v4
|
|
145
|
+
with:
|
|
146
|
+
name: digests-${{ matrix.arch }}
|
|
147
|
+
path: /tmp/digests/*
|
|
148
|
+
if-no-files-found: error
|
|
149
|
+
retention-days: 1
|
|
150
|
+
|
|
151
|
+
publish_docker_manifest:
|
|
152
|
+
name: Publish Tagged Docker Manifest
|
|
153
|
+
runs-on: ubuntu-24.04
|
|
154
|
+
needs: [release_please, publish_docker]
|
|
155
|
+
# A dependent job is skipped when its needs are, so this is belt and braces - but it keeps
|
|
156
|
+
# the gate visible in the job itself rather than only in the job it depends on.
|
|
157
|
+
if: needs.release_please.outputs.release_created
|
|
158
|
+
timeout-minutes: 15
|
|
159
|
+
steps:
|
|
160
|
+
- name: Download digests
|
|
161
|
+
uses: actions/download-artifact@v4
|
|
162
|
+
with:
|
|
163
|
+
path: /tmp/digests
|
|
164
|
+
pattern: digests-*
|
|
165
|
+
merge-multiple: true
|
|
166
|
+
|
|
167
|
+
- name: Set up Docker Buildx
|
|
168
|
+
uses: docker/setup-buildx-action@v4
|
|
169
|
+
|
|
170
|
+
- name: Login to DockerHub
|
|
171
|
+
uses: docker/login-action@v4
|
|
172
|
+
with:
|
|
173
|
+
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
174
|
+
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
175
|
+
|
|
176
|
+
- name: Login to GHCR
|
|
177
|
+
uses: docker/login-action@v4
|
|
178
|
+
with:
|
|
179
|
+
registry: ghcr.io
|
|
180
|
+
username: ${{ github.repository_owner }}
|
|
181
|
+
password: ${{ secrets.GITHUB_TOKEN }}
|
|
182
|
+
|
|
183
|
+
- name: Create and push the manifest list
|
|
184
|
+
working-directory: /tmp/digests
|
|
185
|
+
env:
|
|
186
|
+
MAJOR: ${{ needs.release_please.outputs.major }}
|
|
187
|
+
MINOR: ${{ needs.release_please.outputs.minor }}
|
|
188
|
+
PATCH: ${{ needs.release_please.outputs.patch }}
|
|
189
|
+
run: |
|
|
190
|
+
for image in "docker.io/${{ github.repository }}" "ghcr.io/${{ github.repository }}"; do
|
|
191
|
+
docker buildx imagetools create \
|
|
192
|
+
-t "${image}:latest" \
|
|
193
|
+
-t "${image}:v${MAJOR}.${MINOR}.${PATCH}" \
|
|
194
|
+
-t "${image}:v${MAJOR}.${MINOR}" \
|
|
195
|
+
-t "${image}:v${MAJOR}" \
|
|
196
|
+
$(printf "${image}@sha256:%s " *)
|
|
197
|
+
done
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,90 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.79.3](https://github.com/postalsys/emailengine/compare/v2.79.2...v2.79.3) (2026-08-24)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Upgrade note
|
|
7
|
+
|
|
8
|
+
The authentication-failure safety net now applies to OAuth2 accounts. It is
|
|
9
|
+
supposed to stop an account retrying after `EENGINE_MAX_IMAP_AUTH_FAILURE_TIME`
|
|
10
|
+
of continuous authentication failures (3 days by default), but it was gated on
|
|
11
|
+
an IMAP configuration block that OAuth2 accounts do not have, so for Gmail and
|
|
12
|
+
Microsoft accounts it never fired and a revoked refresh token was retried
|
|
13
|
+
indefinitely.
|
|
14
|
+
|
|
15
|
+
On an instance that has accumulated such accounts, every one already past the
|
|
16
|
+
threshold is disabled on its next failed refresh, so expect a burst of
|
|
17
|
+
`authenticationError` webhooks shortly after the restart and a matching drop in
|
|
18
|
+
token-endpoint traffic. A disabled account stops connecting and shows in the
|
|
19
|
+
admin UI as "Connection failed"; re-authorizing it lifts the flag and reconnects
|
|
20
|
+
it, with no manual cleanup. If you would rather stage that, raise
|
|
21
|
+
`EENGINE_MAX_IMAP_AUTH_FAILURE_TIME` before upgrading.
|
|
22
|
+
|
|
23
|
+
### Bug Fixes
|
|
24
|
+
|
|
25
|
+
* **accounts:** make the auth-failure auto-disable work for OAuth2 accounts ([ad52d95](https://github.com/postalsys/emailengine/commit/ad52d9526142d9c84c024dd1e78926c2055e3ded))
|
|
26
|
+
* **imap:** keep a connection-scoped rejection from silently killing an IMAP worker ([481c181](https://github.com/postalsys/emailengine/commit/481c181b7ab6d59e87d2c2a5b653dedb229340d7))
|
|
27
|
+
* **logger:** keep the late-handler diagnostic when error tracking is on ([8c5def2](https://github.com/postalsys/emailengine/commit/8c5def28cf53238bd43ae413e809ab64ce89fee6))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### Dependencies
|
|
31
|
+
|
|
32
|
+
Bundled library updates carrying fixes of their own, which the commit prefixes
|
|
33
|
+
above do not surface:
|
|
34
|
+
|
|
35
|
+
* **imapflow 1.7.2 -> 1.7.6.** Connection errors now name the connection and the
|
|
36
|
+
site that rejected them, the guard against an unobserved teardown rejection is
|
|
37
|
+
structural rather than per-site, and an IDLE-break waiter is no longer reported
|
|
38
|
+
under the command's marker. Also normalizes search dates so an invalid value
|
|
39
|
+
cannot throw or emit NaN.
|
|
40
|
+
* **mailparser 3.9.15 -> 3.9.16.** Bounds linkify-it scanning of untrusted text
|
|
41
|
+
bodies, and handles stream-flush errors.
|
|
42
|
+
* **ioredfour 1.4.2 -> 1.4.3.** Moves to ioredis 6, which removes a second copy
|
|
43
|
+
of ioredis from the dependency tree.
|
|
44
|
+
* **@postalsys/certs 1.0.18, @postalsys/email-ai-tools 1.13.19,
|
|
45
|
+
@postalsys/email-text-tools 2.4.14, @bull-board 9.4.0**, plus html-to-text and
|
|
46
|
+
joi deduplication across the tree.
|
|
47
|
+
|
|
48
|
+
## [2.79.2](https://github.com/postalsys/emailengine/compare/v2.79.1...v2.79.2) (2026-08-22)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
### Bug Fixes
|
|
52
|
+
|
|
53
|
+
* **api:** confine browse-page session tokens and gate the SBOM ([7f3fc6e](https://github.com/postalsys/emailengine/commit/7f3fc6e464a6161286e1fa3ccd3cc933db7cf874))
|
|
54
|
+
* **api:** end browse-page session tokens when every session is logged out ([4040773](https://github.com/postalsys/emailengine/commit/40407733c79c4d65a223cc594b925015e201862a))
|
|
55
|
+
* **attachments:** collect cid references in one pass instead of scanning the HTML per attachment ([9dd6b0c](https://github.com/postalsys/emailengine/commit/9dd6b0c17ab6db174ef6cc6777fdee506e57bc3d))
|
|
56
|
+
* **deps:** refresh dependencies ([6e11a55](https://github.com/postalsys/emailengine/commit/6e11a55cd66e2609efb524e3494ad2ee5bcf0a11))
|
|
57
|
+
* **gmail:** stop a killer history entry from looping forever and apply the text size limit on API accounts ([cb6ca8a](https://github.com/postalsys/emailengine/commit/cb6ca8aab406cefbba3fbb9c973c0de30036fc1f))
|
|
58
|
+
* **imap:** recover addresses when the ENVELOPE reports none ([1e83178](https://github.com/postalsys/emailengine/commit/1e83178de8ba3f00250eb5fc90d0d869d294c3ec))
|
|
59
|
+
* **mcp:** advertise only the tools a credential can actually call ([abeb137](https://github.com/postalsys/emailengine/commit/abeb13749fbd103f4d9ef1cf438c13f789780300))
|
|
60
|
+
* **mcp:** carry the required cache hints on modern-era results ([6dd70b9](https://github.com/postalsys/emailengine/commit/6dd70b99d6158d9e0dabc3c9ea3dc3750c4fbf8a))
|
|
61
|
+
* **mcp:** close the defects a deep review found in the MCP surface ([c3fc7ba](https://github.com/postalsys/emailengine/commit/c3fc7ba2dc8b8f8d4eea379ddbdcc788fbf1a9c6))
|
|
62
|
+
* **mcp:** make connecting an agent a one-step operation ([914dff5](https://github.com/postalsys/emailengine/commit/914dff58d423b8e84a29332e74cf023cfbbabfa8))
|
|
63
|
+
* **mcp:** make token restrictions work over MCP and tighten the OAuth edges ([b1f1dc0](https://github.com/postalsys/emailengine/commit/b1f1dc09902a2a68924fd5cec3dbeed070cd871f))
|
|
64
|
+
* **mcp:** narrow the agent tool schemas, and let webSafeHtml skip inlined images ([e381af0](https://github.com/postalsys/emailengine/commit/e381af01e4494532396879651025193ccd0ab969))
|
|
65
|
+
* **mcp:** offer three access levels when connecting an agent, and make its tokens findable ([15e7bda](https://github.com/postalsys/emailengine/commit/15e7bda7a012096785ca2c87f6b580e2eaab8dac))
|
|
66
|
+
* **mcp:** position MCP support as a labeled beta ([a19a612](https://github.com/postalsys/emailengine/commit/a19a6123c5a4f794325ac96d8bade18d473a68fe))
|
|
67
|
+
* **mcp:** return web-safe bodies and infer the bound account ([923bb25](https://github.com/postalsys/emailengine/commit/923bb25d02471fd9e98a8dc7a2008d794682990f))
|
|
68
|
+
* **mcp:** serve the Model Context Protocol at /mcp as an opt-in beta ([1907015](https://github.com/postalsys/emailengine/commit/190701506978df65d410c3652f09e48bb723dfa0))
|
|
69
|
+
* **mcp:** show the tool count wherever an mcp token is minted ([a85d8f6](https://github.com/postalsys/emailengine/commit/a85d8f67f043a01bebdc969401244d95fbbd116c))
|
|
70
|
+
* **mcp:** tell agents how to reply to and forward a message ([a3f17ad](https://github.com/postalsys/emailengine/commit/a3f17adb0ee5ce276347f5cb883bb984e6eeb0a2))
|
|
71
|
+
* **mcp:** update the consent integration test for the access-level radio ([f4b6b18](https://github.com/postalsys/emailengine/commit/f4b6b1877aa1073c3b3b5cbd9144f7c3fe13d6e1))
|
|
72
|
+
* **submit:** stop a reply borrowing recipients it should not have ([1032605](https://github.com/postalsys/emailengine/commit/10326056db2df7839463789215757c36bf45c34d))
|
|
73
|
+
* **ui:** count the MCP tools a bound token actually receives ([5bbdee3](https://github.com/postalsys/emailengine/commit/5bbdee3beb425887d1cc52846252034bf673da80))
|
|
74
|
+
* **ui:** explain the OAuth connector form on the MCP config page ([b7db99a](https://github.com/postalsys/emailengine/commit/b7db99a03a2b466c7b43b0e324441ad851ece6d1))
|
|
75
|
+
* **ui:** give MCP tokens their own access-level editor on the token form ([308a217](https://github.com/postalsys/emailengine/commit/308a2178e994e656ea88674b1dc0b6372723f51a))
|
|
76
|
+
* **ui:** make the MCP pages vendor-neutral and the consent wording plain ([f0f0e8e](https://github.com/postalsys/emailengine/commit/f0f0e8e5c5a49c2add8688eb746b42e1b51a9e4f))
|
|
77
|
+
* **ui:** nest the MCP OAuth switch under the endpoint switch ([bb619b4](https://github.com/postalsys/emailengine/commit/bb619b4e3329b576a7ccae1787687e3f78922191))
|
|
78
|
+
* **ui:** pick an account in the send-test dialog too ([6dcdbb5](https://github.com/postalsys/emailengine/commit/6dcdbb54918dbfcfc3ff78304d80f45fa64436a4))
|
|
79
|
+
* **ui:** pick an account instead of typing its id ([11be805](https://github.com/postalsys/emailengine/commit/11be8057cd8415ed083349ed40f74c390e1ece3a))
|
|
80
|
+
* **ui:** render the MCP client consent page as an authorization prompt ([4626123](https://github.com/postalsys/emailengine/commit/4626123fc72936ea79d6319010b9f181e6ed06b0))
|
|
81
|
+
* **ui:** separate the collapsible cards on the MCP config page ([691f0d4](https://github.com/postalsys/emailengine/commit/691f0d46eec36927fc128c2f72e785401413b4d7))
|
|
82
|
+
* **ui:** show each app's client id in the OAuth2 apps listing ([0cc36e0](https://github.com/postalsys/emailengine/commit/0cc36e0ee7e067ed54df6c04c3c16e048585d02e))
|
|
83
|
+
* **ui:** split the MCP connect tab into connection-method sub-tabs ([ec632bd](https://github.com/postalsys/emailengine/commit/ec632bd75bc9cbe02403dac98099f47e0b6aa50e))
|
|
84
|
+
* **ui:** split the MCP page into Settings and Connect an agent tabs ([301c7d0](https://github.com/postalsys/emailengine/commit/301c7d0ed5d0108c46732752018860290bc27093))
|
|
85
|
+
* **ui:** stack the agent generator fields in one column ([9a1ab8e](https://github.com/postalsys/emailengine/commit/9a1ab8ec7f890be7707966bc72e1aec4d7dcdf29))
|
|
86
|
+
* **windows:** set CompanyName and ship a multi-size icon in the exe ([33b7842](https://github.com/postalsys/emailengine/commit/33b784211b5d630ae4b716662edc2b5008c75752))
|
|
87
|
+
|
|
3
88
|
## [2.79.1](https://github.com/postalsys/emailengine/compare/v2.79.0...v2.79.1) (2026-08-19)
|
|
4
89
|
|
|
5
90
|
|
package/bin/emailengine.js
CHANGED
|
@@ -112,6 +112,13 @@ const GLOBAL_OPTIONS = [
|
|
|
112
112
|
type: 'boolean',
|
|
113
113
|
default: false,
|
|
114
114
|
group: 'Document Store (deprecated)'
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
name: '--mcp.enabled',
|
|
118
|
+
description: 'Register the MCP endpoint at /mcp (the mcpEnabled runtime setting still has to be turned on)',
|
|
119
|
+
type: 'boolean',
|
|
120
|
+
default: true,
|
|
121
|
+
group: 'MCP'
|
|
115
122
|
}
|
|
116
123
|
];
|
|
117
124
|
|
|
@@ -497,7 +504,7 @@ function run() {
|
|
|
497
504
|
switch (tokensCmd) {
|
|
498
505
|
case 'issue':
|
|
499
506
|
{
|
|
500
|
-
let allowedScopes = ['*', 'api', 'metrics', 'smtp', 'imap-proxy'];
|
|
507
|
+
let allowedScopes = ['*', 'api', 'metrics', 'smtp', 'imap-proxy', 'mcp'];
|
|
501
508
|
let scopes = []
|
|
502
509
|
.concat(argv.scope || [])
|
|
503
510
|
.concat(argv.s || [])
|
package/config/default.toml
CHANGED
|
@@ -36,6 +36,12 @@ proxy = false # Set to true if using HAProxy with send-proxy option
|
|
|
36
36
|
# all document-store API/UI endpoints are only available when this is enabled.
|
|
37
37
|
enabled = false
|
|
38
38
|
|
|
39
|
+
[mcp]
|
|
40
|
+
# MCP (Model Context Protocol) endpoint at /mcp. This deployment-level gate controls whether
|
|
41
|
+
# the endpoint exists in the route table at all; the runtime on/off switch is the mcpEnabled
|
|
42
|
+
# setting (Configuration > MCP in the admin UI), which starts out disabled.
|
|
43
|
+
enabled = true
|
|
44
|
+
|
|
39
45
|
[dbs]
|
|
40
46
|
# redis connection
|
|
41
47
|
redis = "redis://127.0.0.1:6379/8"
|
package/copy-static-files.sh
CHANGED
|
@@ -33,11 +33,32 @@ cp node_modules/flyonui/flyonui.js static/js/flyonui.js
|
|
|
33
33
|
# Rebuild the compiled admin UI stylesheet (Tailwind v4 + FlyonUI)
|
|
34
34
|
npm run build:css
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
# Both JSON artifacts below are refreshed from the network and are committed, so a failed fetch
|
|
37
|
+
# must not be allowed to damage the copy already in the tree. A plain `> file` redirect truncates
|
|
38
|
+
# before the command runs, which is how a GitHub 500 once left a zero-byte sbom.json behind - and
|
|
39
|
+
# under `set -e` it also aborts the rest of this script, silently skipping the licence and gettext
|
|
40
|
+
# regeneration that npm run update chains after it. Each fetch therefore lands in a sibling temp
|
|
41
|
+
# file, is checked for being valid JSON, and only then replaces the committed one. The temp file
|
|
42
|
+
# is created next to its target rather than in $TMPDIR so the move is a rename within the same
|
|
43
|
+
# filesystem, never a copy that could be interrupted half-written.
|
|
44
|
+
fetch_json() {
|
|
45
|
+
local target="$1"
|
|
46
|
+
shift
|
|
47
|
+
local tmp
|
|
48
|
+
tmp=$(mktemp "${target}.XXXXXX")
|
|
49
|
+
if "$@" > "$tmp" && node -e 'JSON.parse(require("fs").readFileSync(process.argv[1], "utf8"))' "$tmp"; then
|
|
50
|
+
mv "$tmp" "$target"
|
|
51
|
+
else
|
|
52
|
+
rm -f "$tmp"
|
|
53
|
+
echo "WARNING: failed to refresh ${target}, keeping the previous copy" >&2
|
|
54
|
+
fi
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
fetch_json data/google-crawlers.json wget -q -O - https://developers.google.com/static/crawling/ipranges/special-crawlers.json
|
|
37
58
|
node -e 'console.log("Google crawlers updated: "+require("./data/google-crawlers.json").creationTime);'
|
|
38
59
|
|
|
39
60
|
# brew install gh
|
|
40
61
|
# gh auth login
|
|
41
62
|
# gh ext install advanced-security/gh-sbom
|
|
42
63
|
# gh sbom -c -l > sbom.json
|
|
43
|
-
|
|
64
|
+
fetch_json sbom.json gh sbom
|