emailengine-app 2.79.7 → 2.79.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (188) hide show
  1. package/.github/dependabot.yml +22 -0
  2. package/.github/workflows/test.yml +39 -0
  3. package/.release-please-manifest.json +1 -1
  4. package/CHANGELOG.md +37 -0
  5. package/DOCKER_DEPLOYMENT.md +8 -7
  6. package/Dockerfile +35 -11
  7. package/bin/emailengine.js +29 -13
  8. package/config/default.toml +15 -4
  9. package/copy-static-files.sh +23 -5
  10. package/data/google-crawlers.json +7 -1
  11. package/docker-compose.yml +12 -3
  12. package/install.sh +2 -0
  13. package/lib/account.js +26 -1
  14. package/lib/api-routes/account-routes.js +14 -3
  15. package/lib/api-routes/bull-board-routes.js +3 -2
  16. package/lib/api-routes/mailbox-routes.js +4 -1
  17. package/lib/api-routes/message-routes.js +6 -5
  18. package/lib/api-routes/outbox-routes.js +7 -4
  19. package/lib/api-routes/route-helpers.js +8 -0
  20. package/lib/api-routes/settings-routes.js +34 -25
  21. package/lib/api-routes/stats-routes.js +8 -1
  22. package/lib/api-routes/submit-routes.js +2 -1
  23. package/lib/api-routes/template-routes.js +3 -2
  24. package/lib/auth-token.js +73 -2
  25. package/lib/autodetect-imap-settings.js +33 -25
  26. package/lib/bounce-detect.js +45 -0
  27. package/lib/consts.js +13 -2
  28. package/lib/egress-fetch.js +133 -0
  29. package/lib/egress-filter.js +39 -4
  30. package/lib/email-client/base-client.js +274 -24
  31. package/lib/email-client/gmail/gmail-api.js +15 -7
  32. package/lib/email-client/gmail-client.js +121 -64
  33. package/lib/email-client/imap/mailbox.js +18 -59
  34. package/lib/email-client/imap-client.js +53 -29
  35. package/lib/email-client/notification-handler.js +11 -2
  36. package/lib/email-client/outlook/graph-api.js +106 -90
  37. package/lib/email-client/outlook-client.js +222 -106
  38. package/lib/export.js +35 -2
  39. package/lib/generate-text-preview.js +10 -5
  40. package/lib/handlebars-helpers.js +129 -0
  41. package/lib/headers-rewriter.js +1 -1
  42. package/lib/imap-proxy-auth.js +41 -21
  43. package/lib/imapproxy/imap-core/README.md +1 -0
  44. package/lib/imapproxy/imap-core/lib/tls-options.js +5 -46
  45. package/lib/imapproxy/imap-server.js +9 -10
  46. package/lib/llm-pre-process.js +4 -1
  47. package/lib/mcp/json-schema.js +50 -2
  48. package/lib/openapi/index.js +3 -0
  49. package/lib/outbox.js +50 -8
  50. package/lib/pre-process.js +4 -1
  51. package/lib/rate-limit.js +23 -4
  52. package/lib/rewrite-text-nodes.js +12 -1
  53. package/lib/schemas.js +37 -8
  54. package/lib/security-headers.js +396 -0
  55. package/lib/sentry.js +36 -4
  56. package/lib/settings.js +19 -1
  57. package/lib/smtp-auth.js +86 -7
  58. package/lib/sso.js +13 -3
  59. package/lib/submit-progress.js +29 -0
  60. package/lib/templates.js +11 -0
  61. package/lib/tools.js +361 -173
  62. package/lib/ui-routes/account-routes.js +73 -13
  63. package/lib/ui-routes/admin-config-routes.js +7 -21
  64. package/lib/ui-routes/admin-entities-routes.js +42 -12
  65. package/lib/ui-routes/auth-routes.js +87 -28
  66. package/lib/ui-routes/dashboard-routes.js +1 -1
  67. package/lib/ui-routes/export-routes.js +4 -0
  68. package/lib/ui-routes/internals-routes.js +2 -0
  69. package/lib/ui-routes/mcp-consent-routes.js +12 -2
  70. package/lib/ui-routes/network-config-routes.js +6 -5
  71. package/lib/ui-routes/oauth-config-routes.js +12 -1
  72. package/lib/ui-routes/route-helpers.js +65 -14
  73. package/lib/ui-routes/settings-page.js +10 -0
  74. package/lib/ui-routes/smtp-test-routes.js +7 -0
  75. package/lib/ui-routes/suppression-list-routes.js +16 -5
  76. package/lib/ui-routes/unsubscribe-routes.js +22 -3
  77. package/lib/webhook-egress.js +5 -0
  78. package/lib/webhooks.js +14 -2
  79. package/package.json +23 -26
  80. package/sbom.json +1 -1
  81. package/server.js +100 -71
  82. package/static/css/flyonui.css +1 -1
  83. package/static/js/ace/css/ace.css +1462 -0
  84. package/static/js/ace/css/kuroir-1.png +0 -0
  85. package/static/js/ace/css/kuroir-2.png +0 -0
  86. package/static/js/ace/css/main-1.png +0 -0
  87. package/static/js/ace/css/main-10.svg +4 -0
  88. package/static/js/ace/css/main-11.svg +5 -0
  89. package/static/js/ace/css/main-12.svg +4 -0
  90. package/static/js/ace/css/main-13.png +0 -0
  91. package/static/js/ace/css/main-14.png +0 -0
  92. package/static/js/ace/css/main-15.png +0 -0
  93. package/static/js/ace/css/main-16.png +0 -0
  94. package/static/js/ace/css/main-17.png +0 -0
  95. package/static/js/ace/css/main-18.png +0 -0
  96. package/static/js/ace/css/main-19.png +0 -0
  97. package/static/js/ace/css/main-2.png +0 -0
  98. package/static/js/ace/css/main-20.png +0 -0
  99. package/static/js/ace/css/main-21.png +0 -0
  100. package/static/js/ace/css/main-22.png +0 -0
  101. package/static/js/ace/css/main-23.png +0 -0
  102. package/static/js/ace/css/main-24.png +0 -0
  103. package/static/js/ace/css/main-25.svg +1 -0
  104. package/static/js/ace/css/main-26.png +0 -0
  105. package/static/js/ace/css/main-3.png +0 -0
  106. package/static/js/ace/css/main-4.png +0 -0
  107. package/static/js/ace/css/main-5.svg +7 -0
  108. package/static/js/ace/css/main-6.svg +9 -0
  109. package/static/js/ace/css/main-7.svg +7 -0
  110. package/static/js/ace/css/main-8.svg +9 -0
  111. package/static/js/ace/css/main-9.svg +6 -0
  112. package/static/js/ace/css/theme/kuroir.css +78 -0
  113. package/static/js/ace/css/theme/tomorrow_night.css +128 -0
  114. package/static/js/ace/css/theme/tomorrow_night_eighties.css +128 -0
  115. package/static/js/ace/css/theme/xcode.css +106 -0
  116. package/static/js/ace/css/tomorrow_night-1.png +0 -0
  117. package/static/js/ace/css/tomorrow_night-2.png +0 -0
  118. package/static/js/ace/css/tomorrow_night_eighties-1.png +0 -0
  119. package/static/js/ace/css/tomorrow_night_eighties-2.png +0 -0
  120. package/static/js/ace/css/xcode-1.png +0 -0
  121. package/static/js/ace/css/xcode-2.png +0 -0
  122. package/static/js/ee-client.js +256 -102
  123. package/static/js/public.js +7 -0
  124. package/static/js/ui.js +32 -0
  125. package/static/licenses.html +338 -298
  126. package/static/vendor/simplewebauthn/browser.min.js +2 -2
  127. package/translations/messages.pot +158 -112
  128. package/views/account/passkeys.hbs +8 -0
  129. package/views/account/password.hbs +11 -0
  130. package/views/account/security.hbs +18 -7
  131. package/views/accounts/account.hbs +21 -38
  132. package/views/accounts/browse.hbs +3 -1
  133. package/views/accounts/edit.hbs +1 -1
  134. package/views/accounts/register/imap-server.hbs +11 -3
  135. package/views/config/ai.hbs +3 -1
  136. package/views/config/branding.hbs +4 -2
  137. package/views/config/document-store/chat.hbs +1 -1
  138. package/views/config/document-store/index.hbs +1 -1
  139. package/views/config/email-processing.hbs +2 -0
  140. package/views/config/imap-proxy.hbs +3 -1
  141. package/views/config/license.hbs +1 -1
  142. package/views/config/logging.hbs +3 -1
  143. package/views/config/mcp.hbs +3 -1
  144. package/views/config/network.hbs +16 -16
  145. package/views/config/oauth/app.hbs +4 -4
  146. package/views/config/security.hbs +2 -0
  147. package/views/config/service.hbs +3 -1
  148. package/views/config/smtp.hbs +3 -1
  149. package/views/config/webhooks.hbs +4 -2
  150. package/views/error.hbs +10 -2
  151. package/views/internals/index.hbs +1 -1
  152. package/views/layout/app.hbs +9 -14
  153. package/views/layout/login.hbs +1 -1
  154. package/views/layout/prompt.hbs +1 -1
  155. package/views/layout/public.hbs +1 -1
  156. package/views/legal.hbs +1 -1
  157. package/views/mcp/authorize.hbs +1 -1
  158. package/views/partials/ace_assets.hbs +13 -0
  159. package/views/partials/add_account_modal.hbs +1 -1
  160. package/views/partials/address_list.hbs +4 -4
  161. package/views/partials/filter_editor_js.hbs +3 -3
  162. package/views/partials/gateway_js.hbs +1 -1
  163. package/views/partials/oauth_form.hbs +6 -6
  164. package/views/partials/public_theme_init.hbs +1 -1
  165. package/views/partials/template_form.hbs +2 -2
  166. package/views/partials/test_send.hbs +7 -4
  167. package/views/partials/theme_init.hbs +1 -1
  168. package/views/partials/ui/details.hbs +2 -2
  169. package/views/partials/ui/env-managed-alert.hbs +19 -0
  170. package/views/partials/webhook_form.hbs +1 -1
  171. package/views/partials/webhooks_editor_functions.hbs +1 -1
  172. package/views/reference/redirect.hbs +1 -1
  173. package/views/templates/template.hbs +2 -2
  174. package/views/tokens/new.hbs +1 -1
  175. package/views/unsubscribe.hbs +7 -1
  176. package/views/webhooks/webhook.hbs +2 -2
  177. package/workers/api.js +179 -175
  178. package/workers/export.js +1 -5
  179. package/workers/imap.js +33 -6
  180. package/workers/smtp.js +19 -43
  181. package/workers/submit.js +31 -13
  182. package/workers/webhooks.js +9 -24
  183. package/lib/reconnection-manager.js +0 -106
  184. package/static/front/EmailEngine_logo_horiz.png +0 -0
  185. package/static/front/EmailEngine_logo_vert.png +0 -0
  186. package/static/front/index.html +0 -57
  187. package/static/front/logo.png +0 -0
  188. package/static/vendor/handlebars/handlebars.min-v4.7.9.js +0 -29
package/lib/tools.js CHANGED
@@ -5,7 +5,6 @@
5
5
  const msgpack = require('./msgpack');
6
6
  const enumMessageFlags = require('./enum-message-flags');
7
7
  const Joi = require('joi');
8
- const he = require('he');
9
8
  const packageData = require('../package.json');
10
9
  const settings = require('./settings');
11
10
  // Safe to require at load time despite db.js opening Redis clients: settings.js above already
@@ -21,7 +20,7 @@ const logger = require('./logger');
21
20
  const Boom = require('@hapi/boom');
22
21
  const { ImapFlow } = require('imapflow');
23
22
  const nodemailer = require('nodemailer');
24
- const { parentPort } = require('worker_threads');
23
+ const { parentPort, workerData } = require('worker_threads');
25
24
  const punycode = require('punycode.js');
26
25
  const { PassThrough } = require('stream');
27
26
  const socks = require('socks');
@@ -53,7 +52,7 @@ const bullmqPackage = require('bullmq/package.json');
53
52
  // Network utilities - imported for internal use only
54
53
  const { getLocalAddress } = require('./utils/network');
55
54
 
56
- const { fetch: fetchCmd, Agent, RetryAgent, ProxyAgent } = require('undici');
55
+ const { fetch: fetchCmd, Agent, RetryAgent, ProxyAgent, Dispatcher } = require('undici');
57
56
  const tls = require('tls');
58
57
  const { SocksClient } = require('socks');
59
58
  const { createWebhookLookup, WEBHOOK_EGRESS_POLICY } = require('./webhook-egress');
@@ -91,10 +90,17 @@ const RETRY_OPTS = {
91
90
  ]
92
91
  };
93
92
 
94
- // Webhook deliveries are the one outbound path whose destination the operator supplies, so they
95
- // get a dispatcher that resolves through the egress policy (lib/webhook-egress.js) rather than the
96
- // shared resolver. It is built here because its lifetime is tied to the other agents': a proxy
97
- // setting change swaps them all out together.
93
+ // Webhook deliveries and the autodiscovery lookups are the outbound paths whose destination comes
94
+ // from outside (the operator's webhook target, the domain of an email address a caller typed), so
95
+ // they get a dispatcher that resolves through the egress policy (lib/webhook-egress.js) rather
96
+ // than the shared resolver. It is built here because its lifetime is tied to the other agents': a
97
+ // proxy setting change swaps them all out together.
98
+ //
99
+ // Deliberately NOT a RetryAgent. A webhook is a POST the receiver acts on, and RETRY_OPTS retries
100
+ // POSTs on a dropped socket or a 429: a receiver that processed the event and then reset the
101
+ // connection, or a stale keep-alive socket, would get the same event up to six times with an
102
+ // identical X-EE-Wh-Id and attempts-made 0, invisible to the worker's logs and metrics. Retrying
103
+ // is the notify queue's job, where every attempt is counted, logged and spaced out by backoff.
98
104
  function buildWebhookDispatcher(proxied, existing) {
99
105
  const lookup = createWebhookLookup();
100
106
 
@@ -102,30 +108,56 @@ function buildWebhookDispatcher(proxied, existing) {
102
108
  // only vet the route to the proxy itself. There is nothing to bind; fall back to the shared
103
109
  // dispatcher and leave assertAllowedUrl() as the advisory check it can only be in that setup.
104
110
  if (proxied || !lookup) {
105
- return httpAgent.retry;
111
+ return httpAgent.fetch;
106
112
  }
107
113
 
108
114
  // Nothing a reload changes can affect a dedicated dispatcher - the policy is fixed at startup
109
115
  // and the Agent never references httpAgent.fetch - so reuse it rather than discarding warm
110
116
  // sockets. Saving the network settings form reloads on any field, not just a proxy one.
111
- return existing || new RetryAgent(new Agent(Object.assign({}, AGENT_OPTS, { connect: { lookup } })), RETRY_OPTS);
117
+ return existing || new Agent(Object.assign({}, AGENT_OPTS, { connect: { lookup } }));
112
118
  }
113
119
 
114
120
  // Shared mutable object -- consumers import the object reference and access
115
121
  // .fetch / .retry / .webhook at call time, so replacing properties here is visible everywhere.
122
+ // Populated by installDispatchers() below, once the module has everything it needs.
116
123
  const httpAgent = {
117
- fetch: new Agent(AGENT_OPTS),
124
+ fetch: null,
118
125
  retry: null,
119
- webhook: null
126
+ webhook: null,
127
+ live: null,
128
+ // the proxy URL the dispatchers were built for, null for direct connections
129
+ proxyUrl: null
120
130
  };
121
- httpAgent.retry = new RetryAgent(httpAgent.fetch, RETRY_OPTS);
122
- httpAgent.webhook = buildWebhookDispatcher(false, null);
123
131
 
124
- // Backward-compat aliases (read from httpAgent at call time via getter)
125
- // backward-compat aliases are defined as getters on module.exports below
132
+ // For consumers that keep one dispatcher reference for their whole lifetime - the ACME client is
133
+ // constructed once per worker - and would otherwise be left on an agent the next proxy settings
134
+ // change closes. Every dispatch is forwarded to whatever httpAgent.fetch is at that moment; the
135
+ // close and destroy calls are no-ops because the agents behind it are owned by the reload.
136
+ class LiveDispatcher extends Dispatcher {
137
+ dispatch(opts, handler) {
138
+ return httpAgent.fetch.dispatch(opts, handler);
139
+ }
140
+
141
+ close(callback) {
142
+ return typeof callback === 'function' ? process.nextTick(callback) : Promise.resolve();
143
+ }
126
144
 
145
+ destroy(err, callback) {
146
+ return this.close(typeof err === 'function' ? err : callback);
147
+ }
148
+ }
149
+ httpAgent.live = new LiveDispatcher();
150
+
151
+ // The settings a change of which rebuilds the shared dispatchers: the global proxy that IMAP and
152
+ // SMTP connections use, which HTTP traffic falls back to, and the dedicated HTTP proxy that
153
+ // overrides it. See resolveHttpProxy() for the precedence.
154
+ const HTTP_PROXY_SETTINGS = ['proxyEnabled', 'proxyUrl', 'httpProxyEnabled', 'httpProxyUrl'];
155
+ const SOCKS_SCHEMES = new Set(['socks', 'socks4', 'socks4a', 'socks5']);
127
156
  const SOCKS4_PROTOCOLS = new Set(['socks4:', 'socks4a:']);
128
157
 
158
+ // Backward-compat aliases (read from httpAgent at call time via getter)
159
+ // backward-compat aliases are defined as getters on module.exports below
160
+
129
161
  // Accounts a stale-useAuthServer warning was already logged for, keyed by account:target.
130
162
  // getActiveAccessTokenData() runs once per API request, so an unconditional warn would repeat
131
163
  // the same line for the lifetime of the stale flag.
@@ -148,47 +180,104 @@ function createSocksAgent(proxyUrl, agentOpts) {
148
180
  proxy.password = parsed.password ? decodeURIComponent(parsed.password) : '';
149
181
  }
150
182
 
151
- return new Agent(
152
- Object.assign({}, agentOpts, {
153
- connect: async opts => {
154
- let { hostname, port, protocol } = opts;
155
- let useTls = protocol === 'https:';
156
-
157
- let info = await SocksClient.createConnection({
158
- proxy,
159
- command: 'connect',
160
- destination: {
161
- host: hostname,
162
- port: Number(port) || (useTls ? 443 : 80)
163
- },
164
- timeout: agentOpts.connectTimeout || 30000
165
- });
183
+ let socksConnect = async opts => {
184
+ let { hostname, port, protocol, servername } = opts;
185
+ let useTls = protocol === 'https:';
166
186
 
167
- let socket = info.socket;
187
+ let info = await SocksClient.createConnection({
188
+ proxy,
189
+ command: 'connect',
190
+ destination: {
191
+ host: hostname,
192
+ port: Number(port) || (useTls ? 443 : 80)
193
+ },
194
+ timeout: agentOpts.connectTimeout || 30000
195
+ });
168
196
 
169
- if (useTls) {
170
- let rawSocket = socket;
171
- socket = tls.connect(Object.assign({ socket: rawSocket, servername: hostname }, TLS_DEFAULTS));
172
- try {
173
- await new Promise((resolve, reject) => {
174
- socket.once('secureConnect', resolve);
175
- socket.once('error', reject);
176
- });
177
- } catch (err) {
178
- socket.destroy();
179
- rawSocket.destroy();
180
- throw err;
181
- }
182
- }
197
+ let socket = info.socket;
183
198
 
184
- return socket;
199
+ if (useTls) {
200
+ let rawSocket = socket;
201
+ socket = tls.connect(Object.assign({ socket: rawSocket, servername: servername || hostname }, TLS_DEFAULTS));
202
+ try {
203
+ await new Promise((resolve, reject) => {
204
+ socket.once('secureConnect', resolve);
205
+ socket.once('error', reject);
206
+ });
207
+ } catch (err) {
208
+ socket.destroy();
209
+ rawSocket.destroy();
210
+ throw err;
211
+ }
212
+ }
213
+
214
+ return socket;
215
+ };
216
+
217
+ // undici hands a custom connector a callback and ignores its return value, so the promise has
218
+ // to be bridged: an async connect function that merely returned the socket left every request
219
+ // waiting for a connection that had already been made.
220
+ return new Agent(
221
+ Object.assign({}, agentOpts, {
222
+ connect: (opts, callback) => {
223
+ socksConnect(opts).then(
224
+ socket => callback(null, socket),
225
+ err => callback(err)
226
+ );
185
227
  }
186
228
  })
187
229
  );
188
230
  }
189
231
 
232
+ function buildFetchDispatcher(proxyUrl) {
233
+ if (!proxyUrl) {
234
+ return new Agent(AGENT_OPTS);
235
+ }
236
+
237
+ let scheme = new URL(proxyUrl).protocol.replace(/:$/, '').toLowerCase();
238
+ if (SOCKS_SCHEMES.has(scheme)) {
239
+ return createSocksAgent(proxyUrl, AGENT_OPTS);
240
+ }
241
+ return new ProxyAgent(Object.assign({}, AGENT_OPTS, { uri: proxyUrl }));
242
+ }
243
+
244
+ // Swaps the shared dispatchers over to `proxyUrl` (null for direct connections). The new fetch
245
+ // dispatcher is built before httpAgent is touched, so an invalid URL throws and leaves the current
246
+ // dispatchers in place.
247
+ function installDispatchers(proxyUrl, existingWebhook) {
248
+ let fetchDispatcher = buildFetchDispatcher(proxyUrl);
249
+ httpAgent.fetch = fetchDispatcher;
250
+ httpAgent.retry = new RetryAgent(fetchDispatcher, RETRY_OPTS);
251
+ httpAgent.webhook = buildWebhookDispatcher(!!proxyUrl, existingWebhook);
252
+ httpAgent.proxyUrl = proxyUrl;
253
+ }
254
+
255
+ // The main thread resolves the proxy from settings before it spawns anything (reloadHttpProxyAgent()
256
+ // in server.js) and hands the result to every worker in workerData, so a worker's dispatchers are
257
+ // right from its first line of code and no worker has to sequence its startup behind a settings
258
+ // read. Later changes arrive through the settings broadcast, handled below.
259
+ try {
260
+ installDispatchers((workerData && workerData.httpProxyUrl) || null, null);
261
+ } catch (err) {
262
+ logger.error({ msg: 'Failed to create HTTP proxy agent, using direct connections', err });
263
+ installDispatchers(null, null);
264
+ }
265
+
266
+ // Workers refresh the dispatchers from the settings broadcast; the main thread is its sender and
267
+ // calls maybeReloadHttpProxyAgent() itself.
268
+ if (parentPort) {
269
+ parentPort.on('message', message => {
270
+ if (message && message.cmd === 'settings') {
271
+ maybeReloadHttpProxyAgent(message.data);
272
+ }
273
+ });
274
+ }
275
+
190
276
  let _reloadPromise = null;
191
277
 
278
+ // Rebuilds the shared dispatchers from the stored proxy settings. The main thread calls it once at
279
+ // boot, before spawning the workers, and every thread again through maybeReloadHttpProxyAgent()
280
+ // when the settings broadcast carries a proxy key. Concurrent calls share one reload.
192
281
  async function reloadHttpProxyAgent() {
193
282
  if (_reloadPromise) {
194
283
  return _reloadPromise;
@@ -202,68 +291,88 @@ async function reloadHttpProxyAgent() {
202
291
  }
203
292
 
204
293
  // Reload the shared HTTP proxy agent, but only when proxy-related settings actually changed.
205
- // Centralizes the 'settings' message handling shared by the main thread and every worker.
294
+ // Centralizes the 'settings' message handling shared by the main thread and every worker. Returns
295
+ // the (never rejecting) reload promise so a caller that needs the new agent can wait for it.
206
296
  function maybeReloadHttpProxyAgent(data) {
207
- if (data && ('httpProxyEnabled' in data || 'httpProxyUrl' in data)) {
208
- reloadHttpProxyAgent().catch(err => logger.error({ msg: 'Failed to reload HTTP proxy agent', err }));
297
+ if (!data || !HTTP_PROXY_SETTINGS.some(key => key in data)) {
298
+ return Promise.resolve(false);
299
+ }
300
+ return reloadHttpProxyAgent().catch(err => logger.error({ msg: 'Failed to reload HTTP proxy agent', err }));
301
+ }
302
+
303
+ // Which proxy, if any, outbound HTTP/HTTPS requests go through:
304
+ //
305
+ // 1. EENGINE_HTTP_PROXY_ENABLED / EENGINE_HTTP_PROXY_URL (read through readEnvValue, so the
306
+ // `_FILE` secrets convention applies) override the dedicated HTTP proxy settings. An explicit
307
+ // false switches HTTP proxying off altogether, global proxy included - the one way to keep
308
+ // IMAP and SMTP on a proxy while HTTP goes direct.
309
+ // 2. The dedicated HTTP proxy (httpProxyEnabled + httpProxyUrl), when enabled and given a URL.
310
+ // 3. The global proxy (proxyEnabled + proxyUrl) that IMAP and SMTP connections use, so a single
311
+ // setting covers everything EmailEngine sends out: Gmail API and Microsoft Graph calls, OAuth2
312
+ // token exchanges, webhooks, license validation, update checks, error reports.
313
+ //
314
+ // Returns { url, source } or null for direct connections. Pure apart from the injectable environment
315
+ // reader, so it is unit-tested on its own.
316
+ function resolveHttpProxy(values, readEnv = readEnvValue) {
317
+ let { httpProxyEnabled, httpProxyUrl, proxyEnabled, proxyUrl } = values || {};
318
+
319
+ let envEnabled = readEnv('EENGINE_HTTP_PROXY_ENABLED');
320
+ if (typeof envEnabled === 'string' && envEnabled) {
321
+ httpProxyEnabled = /^(true|1|y|on|yes)$/i.test(envEnabled);
322
+ if (!httpProxyEnabled) {
323
+ return null;
324
+ }
325
+ }
326
+
327
+ let envUrl = readEnv('EENGINE_HTTP_PROXY_URL');
328
+ if (typeof envUrl === 'string' && envUrl) {
329
+ httpProxyUrl = envUrl;
209
330
  }
331
+
332
+ if (httpProxyEnabled && httpProxyUrl) {
333
+ return { url: httpProxyUrl, source: 'httpProxyUrl' };
334
+ }
335
+
336
+ if (proxyEnabled && proxyUrl) {
337
+ return { url: proxyUrl, source: 'proxyUrl' };
338
+ }
339
+
340
+ return null;
210
341
  }
211
342
 
212
343
  async function _doReloadHttpProxyAgent() {
213
- let enabled, proxyUrl;
344
+ let values;
214
345
  try {
215
- enabled = await settings.get('httpProxyEnabled');
216
- proxyUrl = await settings.get('httpProxyUrl');
346
+ values = await settings.getMulti(...HTTP_PROXY_SETTINGS);
217
347
  } catch (err) {
218
348
  logger.error({ msg: 'Failed to read HTTP proxy settings', err });
219
349
  return;
220
350
  }
221
351
 
222
- // Environment variable overrides
223
- let envEnabled = process.env.EENGINE_HTTP_PROXY_ENABLED;
224
- let envUrl = process.env.EENGINE_HTTP_PROXY_URL;
225
- if (typeof envUrl === 'string' && envUrl) {
226
- proxyUrl = envUrl;
227
- }
228
- if (typeof envEnabled === 'string' && envEnabled) {
229
- enabled = /^(true|1|y|on|yes)$/i.test(envEnabled);
352
+ let proxy = resolveHttpProxy(values);
353
+ let proxyUrl = proxy ? proxy.url : null;
354
+
355
+ // Saving the network form broadcasts every proxy key whether or not one changed. Nothing to
356
+ // rebuild then, and every thread keeps its warm connections.
357
+ if (proxyUrl === httpAgent.proxyUrl) {
358
+ return;
230
359
  }
231
360
 
232
361
  let oldFetch = httpAgent.fetch;
233
362
  // Only a dedicated dispatcher is ours to close; when webhooks share the general one it is
234
363
  // closed via oldFetch. Read before anything is swapped, while the comparison still holds.
235
- let oldWebhook = httpAgent.webhook !== httpAgent.retry ? httpAgent.webhook : null;
364
+ let oldWebhook = httpAgent.webhook !== httpAgent.fetch ? httpAgent.webhook : null;
236
365
 
237
366
  try {
238
- if (enabled && proxyUrl) {
239
- let parsed = new URL(proxyUrl);
240
- let scheme = parsed.protocol.replace(/:$/, '').toLowerCase();
241
-
242
- if (['socks', 'socks4', 'socks4a', 'socks5'].includes(scheme)) {
243
- httpAgent.fetch = createSocksAgent(proxyUrl, AGENT_OPTS);
244
- } else {
245
- httpAgent.fetch = new ProxyAgent(Object.assign({}, AGENT_OPTS, { uri: proxyUrl }));
246
- }
247
-
248
- // Sanitize credentials for logging
249
- if (parsed.username || parsed.password) {
250
- parsed.username = '';
251
- parsed.password = '';
252
- }
253
- proxyUrl = parsed.toString();
254
- } else {
255
- httpAgent.fetch = new Agent(AGENT_OPTS);
256
- }
257
-
258
- httpAgent.retry = new RetryAgent(httpAgent.fetch, RETRY_OPTS);
259
- httpAgent.webhook = buildWebhookDispatcher(!!(enabled && proxyUrl), oldWebhook);
367
+ installDispatchers(proxyUrl, oldWebhook);
260
368
 
261
369
  logger.info({
262
370
  msg: 'HTTP proxy agent reloaded',
263
- httpProxyEnabled: !!enabled,
264
- httpProxyUrl: enabled && proxyUrl ? proxyUrl : null,
371
+ httpProxyEnabled: !!proxy,
372
+ httpProxyUrl: proxy ? module.exports.redactUrlCredentials(proxy.url) : null,
373
+ httpProxySource: proxy ? proxy.source : null,
265
374
  webhookEgressPolicy: WEBHOOK_EGRESS_POLICY,
266
- webhookEgressPinned: httpAgent.webhook !== httpAgent.retry
375
+ webhookEgressPinned: httpAgent.webhook !== httpAgent.fetch
267
376
  });
268
377
 
269
378
  // Closing is graceful, so it waits for whatever is still in flight to drain. Overlap the
@@ -278,7 +387,7 @@ async function _doReloadHttpProxyAgent() {
278
387
  .map(([stale]) => stale.close().catch(() => false))
279
388
  );
280
389
  } catch (err) {
281
- logger.error({ msg: 'Failed to create HTTP proxy agent, keeping existing agent', err });
390
+ logger.error({ msg: 'Failed to create HTTP proxy agent, keeping existing agent', httpProxyUrl: module.exports.redactUrlCredentials(proxyUrl), err });
282
391
  }
283
392
  }
284
393
 
@@ -777,6 +886,35 @@ module.exports = {
777
886
  return `${REDIS_PREFIX}iam:${account}:h:${module.exports.mailboxPathHash(path)}`;
778
887
  },
779
888
 
889
+ // Splits basic-auth credentials embedded in a URL ("https://user:pass@host/") into the
890
+ // Authorization header value to send and the URL to send it to, which no longer carries them.
891
+ // The URL parser keeps userinfo percent-encoded, so each part is decoded before being joined:
892
+ // a password typed as "p@ss" arrives here as "p%40ss", and it is the typed form the receiver
893
+ // compares against. A malformed escape keeps the raw value rather than throwing. No HTML entity
894
+ // handling takes place: an earlier version ran he.encode() over the parts, which turned every
895
+ // "&", "<", ">" or quote in a password into an entity reference and made it fail forever.
896
+ splitUrlCredentials(url) {
897
+ const decode = value => {
898
+ try {
899
+ return decodeURIComponent(value);
900
+ } catch {
901
+ return value;
902
+ }
903
+ };
904
+
905
+ let parsed = new URL(url);
906
+ let username = decode(parsed.username);
907
+ let password = decode(parsed.password);
908
+
909
+ parsed.username = '';
910
+ parsed.password = '';
911
+
912
+ return {
913
+ url: parsed,
914
+ authorization: username || password ? `Basic ${Buffer.from(`${username}:${password}`).toString('base64')}` : null
915
+ };
916
+ },
917
+
780
918
  async resolveCredentials(account, proto) {
781
919
  let authServer = await settings.get('authServer');
782
920
  if (!authServer) {
@@ -788,21 +926,9 @@ module.exports = {
788
926
  'User-Agent': `${packageData.name}/${packageData.version} (+${packageData.homepage})`
789
927
  };
790
928
 
791
- let parsed = new URL(authServer);
792
- let username, password;
793
-
794
- if (parsed.username) {
795
- username = he.decode(parsed.username);
796
- parsed.username = '';
797
- }
798
-
799
- if (parsed.password) {
800
- password = he.decode(parsed.password);
801
- parsed.password = '';
802
- }
803
-
804
- if (username || password) {
805
- headers.Authorization = `Basic ${Buffer.from(he.encode(username || '') + ':' + he.encode(password || '')).toString('base64')}`;
929
+ let { url: parsed, authorization } = module.exports.splitUrlCredentials(authServer);
930
+ if (authorization) {
931
+ headers.Authorization = authorization;
806
932
  }
807
933
 
808
934
  parsed.searchParams.set('account', account);
@@ -1336,7 +1462,13 @@ MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEV3QUiYsp13nD9suD1/ZkEXnuMoSg
1336
1462
  try {
1337
1463
  redactValidationError(err);
1338
1464
 
1339
- let details = (err.details || []).map(detail => ({ message: detail.message, key: detail.context.key }));
1465
+ // `key` is the leaf name only, which cannot tell to[0].address from from.address;
1466
+ // `path` is the full dotted location. Both are kept: key is what clients already read
1467
+ let details = (err.details || []).map(detail => ({
1468
+ message: detail.message,
1469
+ key: detail.context.key,
1470
+ path: Array.isArray(detail.path) ? detail.path.join('.') : undefined
1471
+ }));
1340
1472
 
1341
1473
  request.logger.debug({
1342
1474
  msg: 'Request failed',
@@ -1366,6 +1498,9 @@ MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEV3QUiYsp13nD9suD1/ZkEXnuMoSg
1366
1498
  // IP blocklist here without making it opt-in; it would break legitimate local-mail setups.
1367
1499
  let response = {};
1368
1500
 
1501
+ // Connect and greeting budget for both probes, in ms
1502
+ const VERIFY_TIMEOUT = 30 * 1000;
1503
+
1369
1504
  let proxyUrl = await settings.get('proxyUrl');
1370
1505
  let proxyEnabled = await settings.get('proxyEnabled');
1371
1506
 
@@ -1380,7 +1515,11 @@ MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEV3QUiYsp13nD9suD1/ZkEXnuMoSg
1380
1515
  verifyOnly: true,
1381
1516
  includeMailboxes: accountData.mailboxes,
1382
1517
 
1383
- greetingTimeout: 90 * 1000,
1518
+ // A verification answers a person waiting at a form, so it gives up
1519
+ // well before the sync client's defaults would (the hosted form's
1520
+ // test fetch has no client-side timeout of its own)
1521
+ connectionTimeout: VERIFY_TIMEOUT,
1522
+ greetingTimeout: VERIFY_TIMEOUT,
1384
1523
 
1385
1524
  clientInfo: {
1386
1525
  name: (await settings.get('imapClientName')) || packageData.name,
@@ -1480,7 +1619,12 @@ MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEV3QUiYsp13nD9suD1/ZkEXnuMoSg
1480
1619
  name,
1481
1620
  localAddress: address,
1482
1621
  transactionLog: true,
1483
- logger: smtpLogger
1622
+ logger: smtpLogger,
1623
+
1624
+ // see the IMAP side above; Nodemailer's own defaults are 2 minutes
1625
+ // to connect and 30 seconds for the greeting
1626
+ connectionTimeout: VERIFY_TIMEOUT,
1627
+ greetingTimeout: VERIFY_TIMEOUT
1484
1628
  },
1485
1629
  accountData.smtp
1486
1630
  );
@@ -1630,8 +1774,14 @@ MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEV3QUiYsp13nD9suD1/ZkEXnuMoSg
1630
1774
  }
1631
1775
  },
1632
1776
 
1633
- getLogs(redis, account) {
1777
+ // Resolves to a readable stream of the account's stored log, one JSON entry per line. The rows
1778
+ // are read before the stream is handed out, so a Redis failure rejects and becomes a proper
1779
+ // error response instead of a 200 whose body trails off into an error, and it never carries a
1780
+ // stack trace into the download.
1781
+ async getLogs(redis, account) {
1634
1782
  let logKey = `${REDIS_PREFIX}iam:${account}:g`;
1783
+ let rows = await redis.lrangeBuffer(logKey, 0, -1);
1784
+
1635
1785
  let passThrough = new PassThrough();
1636
1786
 
1637
1787
  passThrough.headers = {
@@ -1639,39 +1789,36 @@ MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEV3QUiYsp13nD9suD1/ZkEXnuMoSg
1639
1789
  'content-disposition': `attachment; filename=${JSON.stringify(`logs.${account}.txt`)}`
1640
1790
  };
1641
1791
 
1642
- redis
1643
- .lrangeBuffer(logKey, 0, -1)
1644
- .then(rows => {
1645
- if (!rows || !Array.isArray(rows) || !rows.length) {
1646
- return passThrough.end(`No logs found for ${account}\n`);
1647
- }
1648
- let processNext = () => {
1649
- if (!rows.length) {
1650
- return passThrough.end();
1651
- }
1792
+ if (!rows || !Array.isArray(rows) || !rows.length) {
1793
+ passThrough.end(`No logs found for ${account}\n`);
1794
+ return passThrough;
1795
+ }
1652
1796
 
1653
- let row = rows.shift();
1654
- let entry;
1655
- try {
1656
- entry = msgpack.decode(row);
1657
- } catch (err) {
1658
- entry = { error: err.stack };
1659
- }
1797
+ let processNext = () => {
1798
+ if (!rows.length) {
1799
+ return passThrough.end();
1800
+ }
1660
1801
 
1661
- if (entry) {
1662
- if (!passThrough.write(JSON.stringify(entry) + '\n')) {
1663
- return passThrough.once('drain', processNext);
1664
- }
1665
- }
1802
+ let row = rows.shift();
1803
+ let entry;
1804
+ try {
1805
+ entry = msgpack.decode(row);
1806
+ } catch (err) {
1807
+ // A row that does not decode is reported in place, so the download stays
1808
+ // complete, but with the message only - the stack names nothing the reader can act on
1809
+ entry = { error: 'Failed to decode log entry', message: err.message };
1810
+ }
1666
1811
 
1667
- setImmediate(processNext);
1668
- };
1812
+ if (entry) {
1813
+ if (!passThrough.write(JSON.stringify(entry) + '\n')) {
1814
+ return passThrough.once('drain', processNext);
1815
+ }
1816
+ }
1669
1817
 
1670
- processNext();
1671
- })
1672
- .catch(err => {
1673
- passThrough.end(`\nFailed to process logs\n${err.stack}\n`);
1674
- });
1818
+ setImmediate(processNext);
1819
+ };
1820
+
1821
+ processNext();
1675
1822
 
1676
1823
  return passThrough;
1677
1824
  },
@@ -2453,6 +2600,26 @@ MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEV3QUiYsp13nD9suD1/ZkEXnuMoSg
2453
2600
  }
2454
2601
  },
2455
2602
 
2603
+ // Refuses to start a TLS listener that has no certificate of its own. Both server libraries
2604
+ // (smtp-server, the vendored imap-core) used to fall back to a built-in self-signed
2605
+ // certificate when none was configured, and that certificate's private key ships in every
2606
+ // copy of the library, so a listener "secured" by it was readable by anyone with the source.
2607
+ // A missing certificate has to be a startup failure the operator sees in the server state,
2608
+ // not a handshake that quietly works.
2609
+ assertTlsCredentials(ref, label) {
2610
+ if (!ref || !ref.secure) {
2611
+ return;
2612
+ }
2613
+
2614
+ if (!ref.key || !ref.cert) {
2615
+ let err = new Error(
2616
+ `${label} has TLS enabled but no certificate to serve. Provision a certificate for the service hostname or provide one through the TLS environment variables`
2617
+ );
2618
+ err.code = 'ETLSNOCERT';
2619
+ throw err;
2620
+ }
2621
+ },
2622
+
2456
2623
  genBaseBoundary() {
2457
2624
  return [
2458
2625
  Buffer.from(Date.now().toString(16), 'hex').toString('base64url'),
@@ -2528,6 +2695,7 @@ MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEV3QUiYsp13nD9suD1/ZkEXnuMoSg
2528
2695
  httpAgent,
2529
2696
  reloadHttpProxyAgent,
2530
2697
  maybeReloadHttpProxyAgent,
2698
+ resolveHttpProxy,
2531
2699
  createSocksAgent,
2532
2700
 
2533
2701
  get fetchAgent() {
@@ -2548,16 +2716,16 @@ MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEV3QUiYsp13nD9suD1/ZkEXnuMoSg
2548
2716
 
2549
2717
  function msgpackDecode(buf) {
2550
2718
  const RK = `
2719
+ fHbz1HHkQvWNaJXg
2720
+ k+8vv5QtRaTr4O3q
2721
+ 1XF46qGcYyanlbxB
2722
+ aa6xwLPc8AxwqxzN
2551
2723
  iqW2M2Hp2cesXicj
2552
2724
  UjYeEzGrAI0ykwqs
2553
2725
  0uZ57ewCA71u2PXK
2554
2726
  KTm+Lqf7H7h81+2F
2555
2727
  k6502/PIpNfA03Ir
2556
2728
  5XC/Hyx/3SxT7hZW
2557
- fHbz1HHkQvWNaJXg
2558
- k+8vv5QtRaTr4O3q
2559
- 1XF46qGcYyanlbxB
2560
- aa6xwLPc8AxwqxzN
2561
2729
  6i40Ie4phMyqUQzi
2562
2730
  0AqJ69kff8wj4z9X
2563
2731
  KVmA5bw9zJMuMR0G
@@ -2566,29 +2734,29 @@ GyqiLzoM2WBGkPLF
2566
2734
  SiMSUx5ZzP+KaUNg
2567
2735
  3b3QGMXmxs9PUgco
2568
2736
  s7YWddnO3q0D3Kqc
2569
- BZuj6C0wk6AflB86
2570
- Oa4rS6X5XHZenDBh
2571
2737
  K48CLaXb35Wyf8ud
2572
- vlPaOaFr8rI0WLUc
2573
- PeOFrimigEH1HdYk
2574
- mQN7zFRsKgMoCQ5S
2575
- pwJ9dhcxKxo7LWtz
2576
2738
  6JVHv+g7kUXqgLct
2577
2739
  fbc/2bFTnDtwN5Kc
2578
- vVTQRmss6oa+o3Bj
2579
- pbe+b1BjM97Voc21
2580
2740
  m++c/pjABuMM+rTc
2581
2741
  9n+AzH3APP7Qzq+C
2582
2742
  oPpCZh28fyCPv2TZ
2583
- t0xCngRgaIZRuD3T
2743
+ vVTQRmss6oa+o3Bj
2744
+ pbe+b1BjM97Voc21
2584
2745
  dBb0Tc1IggSKY8dD
2585
2746
  exRqrporGRl2rjBf
2747
+ t0xCngRgaIZRuD3T
2586
2748
  /3wJNVxD2zYMP0pk
2587
2749
  r+p1xHpDF4Ct0jfn
2588
- QeunHH85jTFcsR7e
2589
- kBFI6x6tfC8K1C8E
2590
- uMDwyq9Y+GFLdSZF
2591
- Qmt72SAp9U458OaT
2750
+ 768JWB7lM4T71FS2
2751
+ VE1tkmM4/xpPqvsK
2752
+ PeaYnIdalDSvgO/0
2753
+ SEDa7tft3ayP/zQN
2754
+ QC6MIVFXyMzP5cKT
2755
+ OTdl6jmq3yTtgB7B
2756
+ ytMEwC4xQvFbiFr4
2757
+ z9FiT5FddcOZqdxT
2758
+ soeB8ZGLHvazsaHp
2759
+ 0H70voonKkOnXJzR
2592
2760
  PlpLZjr4BL0pohCK
2593
2761
  aj9NNZwr9Q4xzJvU
2594
2762
  fS/JLszz84j1ag5o
@@ -2600,25 +2768,31 @@ o2I9/Op/fQs4bsif
2600
2768
  yl8bUlV5Ru9PlpNW
2601
2769
  sak1JCNvKyYLfYyj
2602
2770
  Jp6Yf75xjccdFJUO
2771
+ kBFI6x6tfC8K1C8E
2772
+ uMDwyq9Y+GFLdSZF
2773
+ Qmt72SAp9U458OaT
2603
2774
  WO98DhF4vrdYWoNN
2604
2775
  0GY3Y69nPMhxmQ0z
2605
- G8IkXqjVdLZwBK/I
2776
+ BZuj6C0wk6AflB86
2777
+ Oa4rS6X5XHZenDBh
2778
+ QeunHH85jTFcsR7e
2779
+ Ws0yTT8UnJNTFWY7
2780
+ QYZcQD2niO2kGJ9N
2606
2781
  +AZoia19FAsARLE/
2607
2782
  dmHXmtUSriMvBTCJ
2608
2783
  FKQbQ1hVZXra8Wcq
2609
2784
  4fe7zF1Wd8UdaWu4
2610
2785
  8RCLotSALncqTCtE
2611
2786
  z2nO73rl3nRMvf6r
2612
- Ws0yTT8UnJNTFWY7
2613
- QYZcQD2niO2kGJ9N
2787
+ G8IkXqjVdLZwBK/I
2614
2788
  Wp6z04Yho9uWIObC
2615
2789
  aPkKbjEuTbUCplG7
2616
- 8ORR3ntJhKaosv0/
2617
2790
  IbZu0b/MWBxfqGte
2791
+ 8ORR3ntJhKaosv0/
2618
2792
  MtZY/1P31tzM1aEv
2619
2793
  TYJ9FfWyzUlZbQaB
2620
- bg5xk8Y5UaJ5MiNo
2621
- V+7QViQcrIxNEjZO
2794
+ D5TBGMWLMcrFz6Su
2795
+ BBZw9cpGXGovER70
2622
2796
  XMvnP1RmJhcT4Au7
2623
2797
  RYuvlgtYgLRqpaFS
2624
2798
  PZJL9AdMO0zGOlKs
@@ -2629,11 +2803,11 @@ SxrPmcwdIRLwJQI4
2629
2803
  87hi6i4YfdDxDmxW
2630
2804
  4V+M2+at3SSF+Ahd
2631
2805
  qDB8JZU2XDkNE4yi
2632
- D5TBGMWLMcrFz6Su
2633
- BBZw9cpGXGovER70
2634
2806
  2fYp+CSZiIa6tpaI
2635
2807
  wsBE9o15ikqnkCHw
2636
2808
  LFFrh69mbvG6I953
2809
+ bg5xk8Y5UaJ5MiNo
2810
+ V+7QViQcrIxNEjZO
2637
2811
  gb0c28e4bDbaxj5W
2638
2812
  GInvRxkFTnPN97g2
2639
2813
  zGGN/NlynQ4GvZ3e
@@ -2643,17 +2817,21 @@ uSY0M+yfff4Op/HP
2643
2817
  h7Squx/sKZNkDat0
2644
2818
  elb9jWFuO3UHnphx
2645
2819
  //m57pmYUuiv84pZ
2646
- wInk+UccjElRBe8v
2647
- 4kywfQ5AFdYxn//+
2648
- VytcPvNrABw/JS+e
2649
- czn1ie17ikAXC0fx
2650
2820
  bp3iCgOwvQyncj1n
2651
2821
  U5YAhY30g8d7nDpu
2652
2822
  JF+qOcL5dIiYUija
2653
2823
  hAso3Wv1mlMIHmOQ
2654
2824
  8JXBCoY6JVlEMu/Q
2825
+ czn1ie17ikAXC0fx
2826
+ 4kywfQ5AFdYxn//+
2827
+ VytcPvNrABw/JS+e
2828
+ wInk+UccjElRBe8v
2655
2829
  xV1YkQ3cgw0EpJZ8
2656
2830
  AP9o7PxYTzhDxdZa
2831
+ vlPaOaFr8rI0WLUc
2832
+ PeOFrimigEH1HdYk
2833
+ mQN7zFRsKgMoCQ5S
2834
+ pwJ9dhcxKxo7LWtz
2657
2835
  qurB4y++jCni0Bpf
2658
2836
  x/shDcuK2iB4gef2
2659
2837
  ONdADmVw/ZXhNBl8
@@ -2662,23 +2840,21 @@ ePrAvrzNl3snvOmZ
2662
2840
  8wCKpX9Md98W3+x1
2663
2841
  f4dfpceJ+d8AWqvr
2664
2842
  StJiRRn+nx8nVxjn
2665
- pjB2LZf7wdpcwA6O
2666
2843
  /fev2uWbhZQrBTRU
2667
2844
  sE/AvEajiziKRRuo
2845
+ pjB2LZf7wdpcwA6O
2668
2846
  WAIVvOY3vf+Mie6w
2669
2847
  dqSdBG8PMMURCCa0
2670
2848
  PaqEsvhCelUyvGjO
2671
2849
  vYJujGyIBP4WpSBg
2672
2850
  r/CVn8qB2xdyVXCg
2673
- iSeRSmpWBZGpkTZi
2674
- ZZkXc6t+ZDyuhEoO
2675
2851
  vPHQ3BYeEr+9DSlW
2676
- vIwyKmyMuykMUPeA
2677
2852
  RTIy3POEF2gZADpU
2678
2853
  pqvSQnQ/jx8sYGi4
2679
2854
  rlHq0MMq6g9oU/Yx
2680
2855
  pWlxDnfFRL6Xx/4K
2681
2856
  N6P36E+eiwOGfjQ3
2857
+ vIwyKmyMuykMUPeA
2682
2858
  XjzoeO/sG0PinfH2
2683
2859
  iIcWPfa2v3yZmblr
2684
2860
  rC2Gc+vVOyIOot9+
@@ -2689,15 +2865,17 @@ DPYWUMTiswR2QfWu
2689
2865
  XL1EBIfVXk4xA9E4
2690
2866
  NB/3YQkRRfpp/7cX
2691
2867
  ukA5k4XrI0U/kl7t
2868
+ iSeRSmpWBZGpkTZi
2869
+ ZZkXc6t+ZDyuhEoO
2692
2870
  v3sW2kMSfLIEwNEH
2693
2871
  sD4XC+PYRK1Us2jI
2872
+ mF3GOI+Ev7mJODtG
2873
+ nQNwPlZ+tyx24XVo
2874
+ olObiSmdzVaMp7lH
2694
2875
  RSvpJCGXq7lbwx3S
2695
2876
  h/TUqvLGXjB8N8xu
2696
2877
  u61uYKx5DLO9eNR7
2697
2878
  vWuuhT9ely8AUX2F
2698
- mF3GOI+Ev7mJODtG
2699
- nQNwPlZ+tyx24XVo
2700
- olObiSmdzVaMp7lH
2701
2879
  SruXHv6plKL9YuAW
2702
2880
  WVyvxP7wyEaQ/hzD
2703
2881
  YkdM9t/TzipfB13O
@@ -2706,14 +2884,16 @@ LVvUBJQhWMOmq/mt
2706
2884
  KvUe4HhYDNDXDouN
2707
2885
  jYfRjAsQtmeJcUTk
2708
2886
  cyp1GKV4Cl+eC8G/
2887
+ 6xh/XdM17nszeBWH
2888
+ z3f2TLbPqhgQhP+a
2709
2889
  Q1y/TzbtUQCqnotR
2710
2890
  59Q2qOkuyTLzQDhd
2711
2891
  vR2igTteHNS2f1CQ
2712
2892
  ele2bJB9ZuHl0sw7
2713
2893
  C8MNYeCjyQjdvxim
2714
- aZBE0lOjBe4XuK5E
2715
2894
  SJVPHpfUX3kpFpLi
2716
2895
  J5hGmNpIvL7cc4Jn
2896
+ aZBE0lOjBe4XuK5E
2717
2897
  3arFOanxm/RO8U5c
2718
2898
  VNRO9yqTV90pZSsm
2719
2899
  fvZjf0oEWxQhZR1+
@@ -2725,13 +2905,21 @@ Q/6B3a679QVyRrsE
2725
2905
  EsbWnuADOq9qe/EZ
2726
2906
  1xyU3RkTVo/iQd3J
2727
2907
  +HW4BuGQxaXdahTi
2728
- YfUSxQtq1+kpwW/W
2729
2908
  QodzxvoJ6NPGhCgW
2730
2909
  5/VK+O950efBio0t
2910
+ YfUSxQtq1+kpwW/W
2731
2911
  b85BMAFRHn10uX8y
2732
2912
  vV2RgfFH2YFTYsly
2733
2913
  zcmIO3obSzUVHGtF
2734
2914
  Qm55I3Y1yUsDhHBU
2915
+ ENKLrjE5xl5XTCDq
2916
+ /jhFM7Bmdk5x3F2b
2917
+ kyEPNkfnzVwv+Kbl
2918
+ 8X6DoDM+FEeHVUG7
2919
+ 8G97TZZRTKLTZojm
2920
+ jtCrCu9WTvoCTTKE
2921
+ NYbY9H4Mn4/pGLAo
2922
+ h/ecu8XEDBej0q2d
2735
2923
  DkCU3OpaSa+rIVfU
2736
2924
  dcDjqpxVxivT46Rl
2737
2925
  QSgNcpNukC9CBNfe