emailengine-app 2.89.0 → 2.91.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/.ncurc.js +19 -8
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +73 -0
- package/Dockerfile +7 -3
- package/ENVIRONMENT.md +24 -23
- package/README.md +1 -1
- package/bin/healthcheck.js +1 -1
- package/copy-static-files.sh +0 -8
- package/data/google-crawlers.json +1 -1
- package/encrypt.js +1 -4
- package/lib/account/field-codec.js +396 -0
- package/lib/account-assignment.js +26 -9
- package/lib/account.js +196 -462
- package/lib/api-routes/account-routes.js +49 -6
- package/lib/api-routes/route-metadata.js +5 -2
- package/lib/api-routes/submit-routes.js +15 -2
- package/lib/api-token-auth.js +342 -274
- package/lib/arf-detect.js +174 -149
- package/lib/attachment-size.js +29 -0
- package/lib/autodetect-imap-settings.js +482 -296
- package/lib/consts.js +5 -5
- package/lib/db.js +1 -4
- package/lib/email-client/base-client.js +907 -780
- package/lib/email-client/gmail-client.js +557 -450
- package/lib/email-client/imap/cid-parts.js +61 -0
- package/lib/email-client/imap/mailbox.js +376 -422
- package/lib/email-client/imap/sync-operations.js +239 -178
- package/lib/email-client/imap-client.js +5 -5
- package/lib/email-client/message-builder.js +4 -5
- package/lib/email-client/new-message-steps.js +168 -2
- package/lib/email-client/outlook/graph-message.js +266 -0
- package/lib/email-client/outlook/subscription-expiry.js +30 -0
- package/lib/email-client/outlook-client.js +652 -808
- package/lib/get-raw-email.js +338 -232
- package/lib/get-secret.js +1 -4
- package/lib/imapproxy/imap-server.js +5 -5
- package/lib/license-subscription.js +60 -0
- package/lib/load-env.js +48 -0
- package/lib/logger-consts.js +37 -1
- package/lib/logger.js +1 -4
- package/lib/mail-probe.js +157 -0
- package/lib/mcp/tools.js +244 -207
- package/lib/metric-values.js +76 -0
- package/lib/metrics.js +320 -0
- package/lib/oauth/gmail.js +39 -120
- package/lib/oauth/http-request.js +195 -0
- package/lib/oauth/mail-ru.js +33 -60
- package/lib/oauth/outlook.js +37 -137
- package/lib/oauth/pubsub/google.js +176 -117
- package/lib/oauth2-apps.js +440 -463
- package/lib/openapi/build-document.js +10 -10
- package/lib/read-env-value.js +31 -7
- package/lib/redis-backend-warnings.js +70 -0
- package/lib/route-descriptors.js +78 -0
- package/lib/schemas.js +10 -1
- package/lib/sentry-integrations.js +299 -0
- package/lib/sentry.js +75 -27
- package/lib/sso-routes.js +249 -0
- package/lib/sso.js +29 -6
- package/lib/tools.js +17 -28
- package/lib/ui-routes/account-edit-form.js +198 -0
- package/lib/ui-routes/account-page.js +241 -0
- package/lib/ui-routes/account-routes.js +46 -349
- package/lib/ui-routes/account-setup.js +1 -1
- package/lib/ui-routes/auth-routes.js +10 -10
- package/lib/ui-routes/provider-signin.js +187 -0
- package/lib/ui-routes/route-helpers.js +1 -1
- package/lib/ui-routes/unsubscribe-routes.js +2 -2
- package/lib/ui-view-context.js +328 -0
- package/lib/utils/public-suffix.js +22 -101
- package/lib/web-safe-html.js +20 -7
- package/lib/worker-metrics.js +82 -0
- package/list-generate.js +2 -5
- package/package.json +28 -24
- package/sbom.json +360 -1030
- package/scripts/refresh-test-tokens.js +1 -1
- package/server.js +400 -677
- package/static/css/flyonui.css +1 -1
- package/static/css/public.css +55 -1
- package/static/css/src/app.tailwind.css +18 -0
- package/static/js/ee-client.js +2619 -645
- package/static/js/ui.js +12 -2
- package/static/licenses.html +224 -764
- package/translations/de.mo +0 -0
- package/translations/de.po +429 -390
- package/translations/en.mo +0 -0
- package/translations/en.po +342 -257
- package/translations/es.mo +0 -0
- package/translations/es.po +440 -395
- package/translations/et.mo +0 -0
- package/translations/et.po +425 -375
- package/translations/fr.mo +0 -0
- package/translations/fr.po +425 -383
- package/translations/it.mo +0 -0
- package/translations/it.po +441 -394
- package/translations/ja.mo +0 -0
- package/translations/ja.po +408 -335
- package/translations/messages.pot +188 -130
- package/translations/nl.mo +0 -0
- package/translations/nl.po +419 -382
- package/translations/pl.mo +0 -0
- package/translations/pl.po +425 -379
- package/translations/sv.mo +0 -0
- package/translations/sv.po +440 -388
- package/translations/tr.mo +0 -0
- package/translations/tr.po +441 -387
- package/views/account-identity-error.hbs +1 -1
- package/views/account-workspace-error.hbs +2 -2
- package/views/accounts/browse.hbs +19 -1
- package/views/accounts/register/imap-server.hbs +22 -7
- package/views/accounts/register/imap.hbs +3 -0
- package/views/accounts/register/index.hbs +1 -27
- package/views/accounts/register/provider-signin.hbs +58 -0
- package/views/oauth-scope-error.hbs +1 -1
- package/views/partials/provider_signin_button.hbs +30 -0
- package/views/queues/index.hbs +1 -1
- package/views/redirect.hbs +1 -1
- package/views/unsubscribe.hbs +6 -6
- package/workers/api.js +20 -451
- package/data/public_suffix_list.dat +0 -16698
package/static/css/public.css
CHANGED
|
@@ -191,6 +191,7 @@ body.ee-page {
|
|
|
191
191
|
font-size: 1.25rem;
|
|
192
192
|
font-weight: 600;
|
|
193
193
|
margin: 0 0 1.5rem;
|
|
194
|
+
text-wrap: balance;
|
|
194
195
|
}
|
|
195
196
|
|
|
196
197
|
:where(.ee-card-body h2) {
|
|
@@ -627,10 +628,18 @@ a.ee-link:hover::before {
|
|
|
627
628
|
padding: 1rem;
|
|
628
629
|
border-radius: var(--ee-radius-box);
|
|
629
630
|
background-color: color-mix(in oklab, var(--ee-alert-color) 10%, var(--ee-surface));
|
|
630
|
-
color:
|
|
631
|
+
/* the text is pulled toward the body color: the status colors themselves (amber and cyan
|
|
632
|
+
* especially) are too light to read as text on their own tinted background */
|
|
633
|
+
color: color-mix(in oklab, var(--ee-alert-color) 45%, var(--ee-text));
|
|
631
634
|
text-align: start;
|
|
632
635
|
}
|
|
633
636
|
|
|
637
|
+
/* the icon keeps the full status color, which is what tells the alerts apart at a glance */
|
|
638
|
+
.ee-alert > .ee-icon {
|
|
639
|
+
flex: none;
|
|
640
|
+
color: var(--ee-alert-color);
|
|
641
|
+
}
|
|
642
|
+
|
|
634
643
|
.ee-alert-info {
|
|
635
644
|
--ee-alert-color: var(--ee-info);
|
|
636
645
|
}
|
|
@@ -918,6 +927,51 @@ dialog.ee-modal.ee-modal-wide {
|
|
|
918
927
|
cursor: default;
|
|
919
928
|
}
|
|
920
929
|
|
|
930
|
+
/* OAuth2 sign-in offered on the IMAP path (accounts/register/provider-signin):
|
|
931
|
+
* the address and the reason above the provider buttons, and the IMAP way out
|
|
932
|
+
* below them, set apart so it reads as the exception */
|
|
933
|
+
.ee-provider-lead {
|
|
934
|
+
max-width: 30rem;
|
|
935
|
+
margin: 0 auto 1.5rem;
|
|
936
|
+
text-align: center;
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
.ee-provider-lead p {
|
|
940
|
+
margin: 0 0 0.5rem;
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
/* short centered copy: even out the lines instead of leaving a word, or in Japanese a few
|
|
944
|
+
* characters, on a line of its own */
|
|
945
|
+
.ee-provider-lead p,
|
|
946
|
+
.ee-provider-alt .ee-hint {
|
|
947
|
+
text-wrap: balance;
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
.ee-provider-email {
|
|
951
|
+
overflow-wrap: anywhere;
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
.ee-provider-alt {
|
|
955
|
+
display: flex;
|
|
956
|
+
flex-direction: column;
|
|
957
|
+
align-items: center;
|
|
958
|
+
gap: 0.25rem;
|
|
959
|
+
max-width: 30rem;
|
|
960
|
+
margin: 1.5rem auto 0;
|
|
961
|
+
padding-top: 1.25rem;
|
|
962
|
+
border-top: 1px solid color-mix(in oklab, var(--ee-text) 15%, transparent);
|
|
963
|
+
text-align: center;
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
/* Translated labels can wrap without extending beyond the text column. */
|
|
967
|
+
.ee-provider-alt > .ee-btn {
|
|
968
|
+
max-width: 100%;
|
|
969
|
+
height: auto;
|
|
970
|
+
min-height: 1.875rem;
|
|
971
|
+
padding-block: 0.25rem;
|
|
972
|
+
white-space: normal;
|
|
973
|
+
}
|
|
974
|
+
|
|
921
975
|
/* provider sign-in images (e.g. the Google / Microsoft branded buttons) */
|
|
922
976
|
.ee-provider-image {
|
|
923
977
|
display: block;
|
|
@@ -158,6 +158,14 @@
|
|
|
158
158
|
z-index: 60;
|
|
159
159
|
max-width: 20rem;
|
|
160
160
|
}
|
|
161
|
+
/* the message browser (ee-client 2) docks its compose panel at z-index 2000,
|
|
162
|
+
* above the page. The dialogs it asks through confirmMethod/alertMethod
|
|
163
|
+
* ("Unsaved message", "Delete message") are the page's own modals, so they
|
|
164
|
+
* stack above that panel, or the panel covers their buttons. */
|
|
165
|
+
#confirmModal,
|
|
166
|
+
#alertModal {
|
|
167
|
+
z-index: 2100;
|
|
168
|
+
}
|
|
161
169
|
.tooltip .tooltip-body {
|
|
162
170
|
/* block, not inline: an inline body fragments its background into one
|
|
163
171
|
* box per wrapped line */
|
|
@@ -195,6 +203,16 @@
|
|
|
195
203
|
--link-color: var(--color-primary);
|
|
196
204
|
}
|
|
197
205
|
|
|
206
|
+
/* The message browser widget (@postalsys/ee-client on the account Browse page) takes its accent
|
|
207
|
+
* from these. It puts white text on --ee-accent in both themes, so that stays the light theme's
|
|
208
|
+
* primary above; --ee-accent-light is what it uses for text and outlines in dark mode, the dark
|
|
209
|
+
* theme's lighter primary. */
|
|
210
|
+
#email-client {
|
|
211
|
+
--ee-accent: #4c5cc5;
|
|
212
|
+
--ee-accent-hover: color-mix(in oklab, #4c5cc5 85%, black);
|
|
213
|
+
--ee-accent-light: #7b86dc;
|
|
214
|
+
}
|
|
215
|
+
|
|
198
216
|
/* FlyonUI lays a tab strip out as a nowrap flex row with no overflow handling, so one
|
|
199
217
|
* wider than its column pushes the whole page sideways instead of adapting: an API reference
|
|
200
218
|
* operation documents up to eight status codes. Wrapping rather than scrolling because these
|