emailengine-app 2.79.5 → 2.79.6
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/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +9 -0
- package/data/google-crawlers.json +1 -1
- package/lib/api-routes/account-routes.js +6 -3
- package/lib/api-routes/behavior-notes.js +6 -3
- package/lib/email-client/imap/mailbox.js +32 -8
- package/lib/enum-descriptions.js +1 -1
- package/package.json +13 -13
- package/sbom.json +1 -1
- package/static/licenses.html +15 -15
- package/translations/messages.pot +49 -49
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.79.6](https://github.com/postalsys/emailengine/compare/v2.79.5...v2.79.6) (2026-08-27)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **deps:** update nodemailer to 9.0.6 and refresh dependencies ([85ce711](https://github.com/postalsys/emailengine/commit/85ce7116d766d3c9b81b77b3d39496ca6119c2d2))
|
|
9
|
+
* **imap:** recover addresses when the ENVELOPE reports an unusable one ([78d5fbd](https://github.com/postalsys/emailengine/commit/78d5fbd62211d79b4c108622e1ad771b34156d06))
|
|
10
|
+
* **reference:** correct three wrong provider claims in the API documentation ([df9fa95](https://github.com/postalsys/emailengine/commit/df9fa95bf542cf086f34d215edd48bb2007e84d6))
|
|
11
|
+
|
|
3
12
|
## [2.79.5](https://github.com/postalsys/emailengine/compare/v2.79.4...v2.79.5) (2026-08-26)
|
|
4
13
|
|
|
5
14
|
|
|
@@ -1584,8 +1584,11 @@ async function init(args) {
|
|
|
1584
1584
|
return getLogs(redis, request.params.account);
|
|
1585
1585
|
},
|
|
1586
1586
|
options: {
|
|
1587
|
-
description: 'Return
|
|
1588
|
-
notes: [
|
|
1587
|
+
description: 'Return stored logs for an account',
|
|
1588
|
+
notes: [
|
|
1589
|
+
'Output is a downloadable text file with one JSON log entry per line, or a plain-text notice when nothing is stored',
|
|
1590
|
+
BEHAVIOR.ACCOUNT_LOG_SCOPE
|
|
1591
|
+
],
|
|
1589
1592
|
tags: ['api', 'Logs'],
|
|
1590
1593
|
|
|
1591
1594
|
auth: {
|
|
@@ -1596,7 +1599,7 @@ async function init(args) {
|
|
|
1596
1599
|
|
|
1597
1600
|
plugins: {
|
|
1598
1601
|
openapi: {
|
|
1599
|
-
'x-ee-behavior': [BEHAVIOR.
|
|
1602
|
+
'x-ee-behavior': [BEHAVIOR.ACCOUNT_LOG_SCOPE],
|
|
1600
1603
|
produces: ['text/plain'],
|
|
1601
1604
|
responses: apiResponses('Returns the account log as a plain text stream.', 400, 401, 403, 429, 500)
|
|
1602
1605
|
}
|
|
@@ -16,10 +16,11 @@
|
|
|
16
16
|
// The provider notes are transcribed by hand from the transports, and nothing enforces the
|
|
17
17
|
// copy. When changing one, check the code that actually implements the limit - not the
|
|
18
18
|
// ASCII capability matrices at the top of those files, which are comments too:
|
|
19
|
-
// NO_LABEL_SET_ON_GMAIL lib/email-client/gmail-client.js,
|
|
19
|
+
// NO_LABEL_SET_ON_GMAIL lib/email-client/gmail-client.js, assertLabelSetSupported throw
|
|
20
20
|
// GMAIL_DELETE_IS_TRASH lib/email-client/gmail-client.js, deleteMessage
|
|
21
21
|
// UPLOAD_DRAFTS_ONLY_GRAPH lib/email-client/outlook-client.js, uploadMessage
|
|
22
22
|
// NO_QUOTA_ON_API_ACCOUNTS getQuota on both clients
|
|
23
|
+
// ACCOUNT_LOG_SCOPE lib/email-client/base-client.js, getLogger; workers/imap.js, getAccountLogger
|
|
23
24
|
|
|
24
25
|
module.exports = {
|
|
25
26
|
// --- asynchronous work -------------------------------------------------------------
|
|
@@ -43,7 +44,8 @@ module.exports = {
|
|
|
43
44
|
'Removes the account, its credentials, its cached data and any messages still queued for delivery. Webhook events generated before the deletion are never delivered afterwards and are discarded once the queue reaches them. Records of deliveries that had already failed permanently are not removed here; they expire on the queue retention window, seven days by default.',
|
|
44
45
|
|
|
45
46
|
// --- provider differences ----------------------------------------------------------
|
|
46
|
-
NO_QUOTA_ON_API_ACCOUNTS:
|
|
47
|
+
NO_QUOTA_ON_API_ACCOUNTS:
|
|
48
|
+
'Quota reporting is not available for Gmail API or MS Graph accounts; the quota field is returned as false for those, the same value an IMAP server without QUOTA support produces.',
|
|
47
49
|
|
|
48
50
|
UPLOAD_DRAFTS_ONLY_GRAPH: 'For MS Graph accounts only drafts can be uploaded, and the draft flag cannot be changed afterwards.',
|
|
49
51
|
|
|
@@ -53,5 +55,6 @@ module.exports = {
|
|
|
53
55
|
GMAIL_DELETE_IS_TRASH:
|
|
54
56
|
'For Gmail API accounts the message is always moved to Trash. The force option, which permanently deletes on IMAP accounts, has no effect.',
|
|
55
57
|
|
|
56
|
-
|
|
58
|
+
ACCOUNT_LOG_SCOPE:
|
|
59
|
+
'Nothing is stored unless logging is enabled for the account, either with the account logs flag or the global logs.all setting. IMAP accounts record the protocol trace, Gmail API and MS Graph accounts record their API requests, and SMTP transactions are recorded for any account that sends over SMTP.'
|
|
57
60
|
};
|
|
@@ -116,6 +116,31 @@ function notificationHeaderFields(configuredHeaders) {
|
|
|
116
116
|
return Array.from(fetchHeaders);
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
+
// Runs for every address of every message, so both patterns are built once
|
|
120
|
+
const HAS_WHITESPACE = /\s/;
|
|
121
|
+
// An addr-spec that carries its whitespace legally, inside a quoted local part
|
|
122
|
+
const QUOTED_LOCAL_ADDR = /^"(?:[^"\\]|\\[\s\S])*"@\S+$/;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Tells whether an address is usable as a mailbox.
|
|
126
|
+
*
|
|
127
|
+
* A server that failed to parse a malformed header does not always report the wreckage as
|
|
128
|
+
* an empty address - Gmail hands back "user@example.com user@example.com" when the header
|
|
129
|
+
* separated the two copies with a non-breaking space. Unquoted whitespace is not addr-spec,
|
|
130
|
+
* so a value carrying it is no more usable than an empty one, and the raw header is the
|
|
131
|
+
* better source. Whitespace inside a quoted local part is legal and stays usable.
|
|
132
|
+
*
|
|
133
|
+
* @param {String} address - Address to check
|
|
134
|
+
* @returns {Boolean} True if the address can be used as a mailbox
|
|
135
|
+
*/
|
|
136
|
+
function isUsableAddress(address) {
|
|
137
|
+
if (!address) {
|
|
138
|
+
return false;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
return !HAS_WHITESPACE.test(address) || QUOTED_LOCAL_ADDR.test(address);
|
|
142
|
+
}
|
|
143
|
+
|
|
119
144
|
/**
|
|
120
145
|
* Parses a raw address header into the address objects the API exposes.
|
|
121
146
|
*
|
|
@@ -129,7 +154,7 @@ function parseAddressHeader(values) {
|
|
|
129
154
|
|
|
130
155
|
try {
|
|
131
156
|
let addressList = addressparser(values)
|
|
132
|
-
.filter(address =>
|
|
157
|
+
.filter(address => isUsableAddress(address.address))
|
|
133
158
|
.map(address => {
|
|
134
159
|
let name = address.name;
|
|
135
160
|
try {
|
|
@@ -150,12 +175,11 @@ function parseAddressHeader(values) {
|
|
|
150
175
|
/**
|
|
151
176
|
* Picks the address list to expose for a header, preferring the server's ENVELOPE.
|
|
152
177
|
*
|
|
153
|
-
* An ENVELOPE list can come back holding no
|
|
154
|
-
* markers carry a group name and nothing else, and a server that failed to parse a
|
|
155
|
-
*
|
|
156
|
-
*
|
|
157
|
-
* the
|
|
158
|
-
* was not enough - the broken list is not empty, just useless.
|
|
178
|
+
* An ENVELOPE list can come back holding no address anyone could use: RFC 9051 7.5.2 group
|
|
179
|
+
* markers carry a group name and nothing else, and a server that failed to parse a malformed
|
|
180
|
+
* header reports the wreckage in the shapes isUsableAddress() turns down. The raw header is
|
|
181
|
+
* the better answer then, because addressparser sees the original value and can still recover
|
|
182
|
+
* the recipient. A list has to be judged on what its entries hold, not on being non-empty.
|
|
159
183
|
*
|
|
160
184
|
* The header is parsed only when the ENVELOPE turns out to be unusable, which is rare.
|
|
161
185
|
* Parsing all four address fields up front would be work discarded on every message.
|
|
@@ -166,7 +190,7 @@ function parseAddressHeader(values) {
|
|
|
166
190
|
* @returns {Object[]|undefined} The list to expose, or undefined if neither source has one
|
|
167
191
|
*/
|
|
168
192
|
function preferAddressList(envelopeList, headers, key) {
|
|
169
|
-
if (envelopeList?.some(entry => entry.address)) {
|
|
193
|
+
if (envelopeList?.some(entry => isUsableAddress(entry.address))) {
|
|
170
194
|
return envelopeList;
|
|
171
195
|
}
|
|
172
196
|
|
package/lib/enum-descriptions.js
CHANGED
|
@@ -122,7 +122,7 @@ const ENUM_DESCRIPTIONS = {
|
|
|
122
122
|
gateway: 'Manage SMTP gateways, which hold outbound SMTP credentials',
|
|
123
123
|
events: 'Subscribe to the instance-wide change stream, which covers every account',
|
|
124
124
|
diagnostics: 'Read statistics and service status',
|
|
125
|
-
logs: 'Read the per-account connection log. Entries
|
|
125
|
+
logs: 'Read the per-account connection log. Entries include the protocol or API trace, so they include folder names and message subjects'
|
|
126
126
|
},
|
|
127
127
|
|
|
128
128
|
queueId: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "emailengine-app",
|
|
3
|
-
"version": "2.79.
|
|
3
|
+
"version": "2.79.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"productTitle": "EmailEngine",
|
|
6
6
|
"description": "Email Sync Engine",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
},
|
|
52
52
|
"homepage": "https://emailengine.app/",
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@bull-board/api": "9.
|
|
55
|
-
"@bull-board/hapi": "9.
|
|
54
|
+
"@bull-board/api": "9.5.0",
|
|
55
|
+
"@bull-board/hapi": "9.5.0",
|
|
56
56
|
"@elastic/elasticsearch": "8.15.3",
|
|
57
57
|
"@hapi/accept": "6.0.3",
|
|
58
58
|
"@hapi/bell": "13.1.0",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"@postalsys/bounce-classifier": "3.0.0",
|
|
68
68
|
"@postalsys/certs": "1.0.18",
|
|
69
69
|
"@postalsys/ee-client": "1.7.0",
|
|
70
|
-
"@postalsys/email-ai-tools": "1.13.
|
|
70
|
+
"@postalsys/email-ai-tools": "1.13.20",
|
|
71
71
|
"@postalsys/email-content": "0.1.3",
|
|
72
72
|
"@postalsys/email-text-tools": "2.4.14",
|
|
73
73
|
"@postalsys/gettext": "4.1.1",
|
|
@@ -75,16 +75,16 @@
|
|
|
75
75
|
"@postalsys/templates": "2.0.2",
|
|
76
76
|
"@sentry/node": "10.71.0",
|
|
77
77
|
"@simplewebauthn/browser": "13.3.0",
|
|
78
|
-
"@simplewebauthn/server": "13.3.
|
|
78
|
+
"@simplewebauthn/server": "13.3.3",
|
|
79
79
|
"@zone-eu/mailsplit": "5.4.15",
|
|
80
80
|
"@zone-eu/wild-config": "1.7.6",
|
|
81
81
|
"ace-builds": "1.44.0",
|
|
82
|
-
"bullmq": "6.
|
|
82
|
+
"bullmq": "6.3.1",
|
|
83
83
|
"compare-versions": "6.1.1",
|
|
84
84
|
"dotenv": "17.4.2",
|
|
85
85
|
"encoding-japanese": "2.2.0",
|
|
86
86
|
"exponential-backoff": "3.1.3",
|
|
87
|
-
"fast-xml-parser": "5.11.
|
|
87
|
+
"fast-xml-parser": "5.11.1",
|
|
88
88
|
"gettext-parser": "7.0.1",
|
|
89
89
|
"handlebars": "4.7.9",
|
|
90
90
|
"hapi-auth-bearer-token": "8.0.0",
|
|
@@ -101,19 +101,19 @@
|
|
|
101
101
|
"libbase64": "1.3.0",
|
|
102
102
|
"libmime": "5.4.2",
|
|
103
103
|
"libqp": "2.1.1",
|
|
104
|
-
"mailparser": "3.9.
|
|
104
|
+
"mailparser": "3.9.17",
|
|
105
105
|
"marked": "15.0.12",
|
|
106
106
|
"minimist": "1.2.8",
|
|
107
107
|
"murmurhash": "2.0.1",
|
|
108
108
|
"nanoid": "3.3.18",
|
|
109
|
-
"nodemailer": "9.0.
|
|
109
|
+
"nodemailer": "9.0.6",
|
|
110
110
|
"pino": "10.3.1",
|
|
111
111
|
"prom-client": "15.1.3",
|
|
112
112
|
"psl": "1.15.0",
|
|
113
|
-
"pubface": "1.1.
|
|
113
|
+
"pubface": "1.1.7",
|
|
114
114
|
"punycode.js": "2.3.1",
|
|
115
115
|
"qrcode": "1.5.4",
|
|
116
|
-
"smtp-server": "3.19.
|
|
116
|
+
"smtp-server": "3.19.4",
|
|
117
117
|
"socks": "2.8.9",
|
|
118
118
|
"timezones-list": "3.1.0",
|
|
119
119
|
"undici": "7.29.0"
|
|
@@ -128,11 +128,11 @@
|
|
|
128
128
|
"acorn-walk": "8.3.5",
|
|
129
129
|
"chai": "4.5.0",
|
|
130
130
|
"eerawlog": "1.5.5",
|
|
131
|
-
"eslint": "10.9.
|
|
131
|
+
"eslint": "10.9.1",
|
|
132
132
|
"flyonui": "2.4.1",
|
|
133
133
|
"pino-pretty": "13.1.3",
|
|
134
134
|
"prettier": "3.9.6",
|
|
135
|
-
"resedit": "3.0
|
|
135
|
+
"resedit": "3.1.0",
|
|
136
136
|
"spdx-satisfies": "6.0.0",
|
|
137
137
|
"supertest": "7.2.2",
|
|
138
138
|
"tailwindcss": "4.3.3",
|