emailengine-app 2.77.0 → 2.78.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.
Files changed (94) hide show
  1. package/.github/workflows/test.yml +80 -0
  2. package/.release-please-manifest.json +1 -1
  3. package/CHANGELOG.md +31 -0
  4. package/bin/emailengine.js +1 -1
  5. package/data/google-crawlers.json +1 -1
  6. package/encrypt.js +1 -1
  7. package/lib/account/expected-identity.js +88 -0
  8. package/lib/account.js +75 -26
  9. package/lib/api-reference/format.js +14 -0
  10. package/lib/api-reference/index.js +24 -7
  11. package/lib/api-reference/model.js +4 -2
  12. package/lib/api-routes/account-routes.js +19 -2
  13. package/lib/api-routes/behavior-notes.js +3 -0
  14. package/lib/append-list.js +3 -14
  15. package/lib/arf-detect.js +23 -1
  16. package/lib/autodetect-imap-settings.js +40 -16
  17. package/lib/base32.js +30 -0
  18. package/lib/bounce-detect.js +182 -62
  19. package/lib/egress-filter.js +89 -8
  20. package/lib/email-client/base-client.js +8 -72
  21. package/lib/email-client/gmail-client.js +3 -3
  22. package/lib/email-client/imap/listing-diff.js +3 -3
  23. package/lib/email-client/imap/mailbox.js +5 -69
  24. package/lib/email-client/imap-client.js +3 -2
  25. package/lib/email-client/message-builder.js +13 -13
  26. package/lib/email-client/outlook-client.js +1 -1
  27. package/lib/export.js +1 -1
  28. package/lib/gateway.js +1 -1
  29. package/lib/get-raw-email.js +1 -1
  30. package/lib/imapproxy/imap-core/lib/imap-connection.js +2 -2
  31. package/lib/imapproxy/imap-core/lib/imap-server.js +2 -2
  32. package/lib/imapproxy/imap-server.js +13 -3
  33. package/lib/license-beacon.js +1 -1
  34. package/lib/llm-pre-process.js +1 -1
  35. package/lib/msgpack.js +62 -0
  36. package/lib/oauth/decode-jwt-payload.js +39 -0
  37. package/lib/oauth/outlook-identity.js +61 -0
  38. package/lib/oauth/retry-setup.js +38 -0
  39. package/lib/oauth2-apps.js +1 -1
  40. package/lib/outbox.js +66 -3
  41. package/lib/pre-process.js +1 -1
  42. package/lib/read-env-value.js +37 -0
  43. package/lib/schemas.js +12 -0
  44. package/lib/templates.js +1 -1
  45. package/lib/tokens.js +1 -1
  46. package/lib/tools.js +117 -48
  47. package/lib/totp.js +67 -0
  48. package/lib/ui-routes/account-routes.js +91 -15
  49. package/lib/ui-routes/admin-config-routes.js +2 -7
  50. package/lib/ui-routes/auth-routes.js +6 -24
  51. package/lib/ui-routes/reference-routes.js +8 -5
  52. package/lib/ui-routes/route-helpers.js +28 -0
  53. package/lib/utils/is-email.js +34 -0
  54. package/lib/utils/to-camel-case.js +17 -0
  55. package/lib/webhook-egress.js +37 -0
  56. package/lib/webhooks.js +1 -1
  57. package/package.json +22 -24
  58. package/sbom.json +1 -0
  59. package/server.js +1 -1
  60. package/static/css/flyonui.css +1 -1
  61. package/static/css/public.css +3 -0
  62. package/static/css/src/app.tailwind.css +23 -0
  63. package/static/js/app.js +69 -0
  64. package/static/js/reference.js +286 -1
  65. package/static/licenses.html +656 -1558
  66. package/translations/README.md +64 -0
  67. package/translations/de.mo +0 -0
  68. package/translations/de.po +164 -120
  69. package/translations/en.po +200 -161
  70. package/translations/et.mo +0 -0
  71. package/translations/et.po +163 -120
  72. package/translations/fr.mo +0 -0
  73. package/translations/fr.po +163 -120
  74. package/translations/ja.mo +0 -0
  75. package/translations/ja.po +163 -120
  76. package/translations/messages.pot +76 -46
  77. package/translations/nl.mo +0 -0
  78. package/translations/nl.po +164 -120
  79. package/translations/pl.mo +0 -0
  80. package/translations/pl.po +163 -120
  81. package/views/account-identity-error.hbs +34 -0
  82. package/views/accounts/edit.hbs +1 -0
  83. package/views/accounts/register/imap.hbs +12 -2
  84. package/views/layout/app.hbs +29 -5
  85. package/views/oauth-scope-error.hbs +1 -1
  86. package/views/partials/reference/nav.hbs +36 -9
  87. package/views/partials/reference/operation.hbs +1 -1
  88. package/views/partials/reference/schema-node.hbs +1 -1
  89. package/views/partials/reference/token-alert.hbs +35 -10
  90. package/views/reference/index.hbs +1 -1
  91. package/workers/api.js +157 -87
  92. package/workers/imap.js +1 -1
  93. package/workers/submit.js +1 -1
  94. package/workers/webhooks.js +2 -13
@@ -1,7 +1,7 @@
1
1
  msgid ""
2
2
  msgstr ""
3
3
  "Project-Id-Version: \n"
4
- "POT-Creation-Date: 2026-06-15 18:35+0000\n"
4
+ "POT-Creation-Date: 2026-08-04 05:25+0000\n"
5
5
  "PO-Revision-Date: \n"
6
6
  "Last-Translator: \n"
7
7
  "Language-Team: \n"
@@ -13,23 +13,23 @@ msgstr ""
13
13
  "|| n%100>14) ? 1 : 2);\n"
14
14
  "X-Generator: Poedit 3.9\n"
15
15
 
16
- #: views/error.hbs:4 workers/api.js:2957
16
+ #: views/error.hbs:6 workers/api.js:2913
17
17
  msgid "Something went wrong"
18
18
  msgstr "Ups... Coś poszło nie tak"
19
19
 
20
- #: views/error.hbs:6
20
+ #: views/error.hbs:8
21
21
  msgid "Error code: %s"
22
22
  msgstr "Kod błędu: %s"
23
23
 
24
- #: views/error.hbs:14
24
+ #: views/error.hbs:18
25
25
  msgid "Go back"
26
26
  msgstr "Wstecz"
27
27
 
28
- #: views/error.hbs:17
28
+ #: views/error.hbs:21
29
29
  msgid "Dashboard"
30
30
  msgstr "Pulpit"
31
31
 
32
- #: views/config/license.hbs:45 lib/ui-routes/oauth-config-routes.js:217
32
+ #: views/config/license.hbs:20 lib/ui-routes/oauth-config-routes.js:217
33
33
  msgid "%d day"
34
34
  msgid_plural "%d days"
35
35
  msgstr[0] "%d dzień"
@@ -40,11 +40,11 @@ msgstr[2] "%d dni"
40
40
  msgid "Click <a href=\"%s\">here</a> to continue&mldr;"
41
41
  msgstr "Kliknij <a href=\"%s\">tutaj</a>, aby kontynuować&mldr;"
42
42
 
43
- #: views/oauth-scope-error.hbs:2
43
+ #: views/oauth-scope-error.hbs:5
44
44
  msgid "Insufficient Permissions"
45
45
  msgstr "Niewystarczające uprawnienia"
46
46
 
47
- #: views/oauth-scope-error.hbs:8
47
+ #: views/oauth-scope-error.hbs:10
48
48
  msgid ""
49
49
  "All requested permissions are required for this service to function "
50
50
  "properly. Some required permissions were not granted during sign-in."
@@ -52,11 +52,11 @@ msgstr ""
52
52
  "Wszystkie wymagane uprawnienia są niezbędne do prawidłowego działania tej "
53
53
  "usługi. Niektóre z nich nie zostały przyznane podczas logowania."
54
54
 
55
- #: views/oauth-scope-error.hbs:12
55
+ #: views/oauth-scope-error.hbs:14
56
56
  msgid "The following permissions were not granted:"
57
57
  msgstr "Nie przyznano następujących uprawnień:"
58
58
 
59
- #: views/oauth-scope-error.hbs:21
59
+ #: views/oauth-scope-error.hbs:23
60
60
  msgid ""
61
61
  "Please try again and make sure all permission checkboxes are selected on the "
62
62
  "Google consent screen."
@@ -64,131 +64,133 @@ msgstr ""
64
64
  "Spróbuj ponownie i upewnij się, że na ekranie zgody Google zaznaczone są "
65
65
  "wszystkie pola wyboru dotyczące uprawnień."
66
66
 
67
- #: views/oauth-scope-error.hbs:27
67
+ #: views/oauth-scope-error.hbs:28 views/account-identity-error.hbs:32
68
68
  msgid "Try Again"
69
69
  msgstr "Spróbuj ponownie"
70
70
 
71
- #: views/unsubscribe.hbs:3 views/unsubscribe.hbs:62 views/unsubscribe.hbs:85
71
+ #: views/unsubscribe.hbs:7 views/unsubscribe.hbs:60 views/unsubscribe.hbs:75
72
72
  msgid "Unsubscribe"
73
73
  msgstr "Wypisz się"
74
74
 
75
- #: views/unsubscribe.hbs:5
75
+ #: views/unsubscribe.hbs:9
76
76
  msgid "Your email address was unsubscribed."
77
77
  msgstr "Twój adres e-mail został wypisany z listy."
78
78
 
79
- #: views/unsubscribe.hbs:7
79
+ #: views/unsubscribe.hbs:11
80
80
  msgid "Was this a mistake? Click <a%s>here</a> to re-subscribe."
81
81
  msgstr "Czy to był błąd? Kliknij <a%s>tutaj</a>, aby ponownie zasubskrybować."
82
82
 
83
- #: views/unsubscribe.hbs:15
83
+ #: views/unsubscribe.hbs:18
84
84
  msgid "Re-subscribe"
85
85
  msgstr "Zasubskrybuj ponownie"
86
86
 
87
- #: views/unsubscribe.hbs:21
87
+ #: views/unsubscribe.hbs:24
88
88
  msgid "Are you sure you want to re-subscribe your email address <em>%s</em>?"
89
89
  msgstr ""
90
90
  "Czy na pewno chcesz ponownie zasubskrybować swój adres e-mail <em>%s</em>?"
91
91
 
92
- #: views/unsubscribe.hbs:32 views/accounts/register/imap-server.hbs:251
92
+ #: views/unsubscribe.hbs:33 views/accounts/register/imap-server.hbs:278
93
93
  msgid "Close"
94
94
  msgstr "Zamknij"
95
95
 
96
- #: views/unsubscribe.hbs:34
96
+ #: views/unsubscribe.hbs:35
97
97
  msgid "Subscribe"
98
98
  msgstr "Subskrybuj"
99
99
 
100
- #: views/unsubscribe.hbs:56
100
+ #: views/unsubscribe.hbs:54
101
101
  msgid "Subscription resumed"
102
102
  msgstr "Subskrypcja wznowiona"
103
103
 
104
- #: views/unsubscribe.hbs:58
104
+ #: views/unsubscribe.hbs:56
105
105
  msgid "Your email address <em>%s</em> was re-subscribed."
106
106
  msgstr "Twój adres e-mail <em>%s</em> został ponownie zasubskrybowany."
107
107
 
108
- #: views/unsubscribe.hbs:75 views/accounts/register/imap.hbs:21
108
+ #: views/unsubscribe.hbs:70 views/accounts/register/imap.hbs:25
109
109
  msgid "Email address"
110
110
  msgstr "Adres e-mail"
111
111
 
112
- #: views/unsubscribe.hbs:81 views/accounts/register/imap.hbs:27
113
- msgid "Enter your email address"
114
- msgstr "Wprowadź swój adres e-mail"
115
-
116
- #: views/accounts/register/imap.hbs:11
112
+ #: views/accounts/register/imap.hbs:13
117
113
  msgid "Your name"
118
114
  msgstr "Twoje imię"
119
115
 
120
- #: views/accounts/register/imap.hbs:17
116
+ #: views/accounts/register/imap.hbs:19
121
117
  msgid "Enter your full name"
122
118
  msgstr "Wpisz swoje imię i nazwisko"
123
119
 
124
- #: views/accounts/register/imap.hbs:31
125
- #: views/accounts/register/imap-server.hbs:36
126
- #: views/accounts/register/imap-server.hbs:128
120
+ #: views/accounts/register/imap.hbs:35
121
+ msgid "This setup link is restricted to this email address"
122
+ msgstr "Ten link konfiguracyjny jest ograniczony do tego adresu e-mail"
123
+
124
+ #: views/accounts/register/imap.hbs:37
125
+ msgid "Enter your email address"
126
+ msgstr "Wprowadź swój adres e-mail"
127
+
128
+ #: views/accounts/register/imap.hbs:43
129
+ #: views/accounts/register/imap-server.hbs:39
130
+ #: views/accounts/register/imap-server.hbs:146
127
131
  msgid "Password"
128
132
  msgstr "Hasło"
129
133
 
130
- #: views/accounts/register/imap.hbs:37
134
+ #: views/accounts/register/imap.hbs:49
131
135
  msgid "Enter your account password"
132
136
  msgstr "Wprowadź hasło do konta"
133
137
 
134
- #: views/accounts/register/imap.hbs:51
138
+ #: views/accounts/register/imap.hbs:55
135
139
  msgid "Continue"
136
140
  msgstr "Kontynuuj"
137
141
 
138
- #: views/accounts/register/index.hbs:2
142
+ #: views/accounts/register/index.hbs:6
139
143
  msgid "Choose your email account provider"
140
144
  msgstr "Wybierz dostawcę konta e-mail"
141
145
 
142
- #: views/accounts/register/index.hbs:15
146
+ #: views/accounts/register/index.hbs:19
143
147
  msgid "Standard IMAP"
144
148
  msgstr "Standardowy IMAP"
145
149
 
146
- #: views/accounts/register/imap-server.hbs:19
150
+ #: views/accounts/register/imap-server.hbs:22
147
151
  msgid "IMAP"
148
152
  msgstr "IMAP"
149
153
 
150
- #: views/accounts/register/imap-server.hbs:22
151
- #: views/accounts/register/imap-server.hbs:114
154
+ #: views/accounts/register/imap-server.hbs:25
155
+ #: views/accounts/register/imap-server.hbs:132
152
156
  msgid "Username"
153
157
  msgstr "Nazwa użytkownika"
154
158
 
155
- #: views/accounts/register/imap-server.hbs:45
156
- #: views/accounts/register/imap-server.hbs:136
159
+ #: views/accounts/register/imap-server.hbs:51
160
+ #: views/accounts/register/imap-server.hbs:158
157
161
  msgid "Important"
158
162
  msgstr "Ważne"
159
163
 
160
- #: views/accounts/register/imap-server.hbs:53
161
- #: views/accounts/register/imap-server.hbs:60
162
- #: views/accounts/register/imap-server.hbs:144
163
- #: views/accounts/register/imap-server.hbs:151
164
- msgid "Application Password"
165
- msgstr "Hasło aplikacji"
164
+ #: views/accounts/register/imap-server.hbs:62
165
+ #: views/accounts/register/imap-server.hbs:169
166
+ msgid "Instructions"
167
+ msgstr "Instrukcje"
166
168
 
167
- #: views/accounts/register/imap-server.hbs:54
168
- #: views/accounts/register/imap-server.hbs:145
169
+ #: views/accounts/register/imap-server.hbs:64
170
+ #: views/accounts/register/imap-server.hbs:171
169
171
  msgid "%s accounts require an application password for %s."
170
172
  msgstr "Konta %s wymagają hasła aplikacji dla %s."
171
173
 
172
- #: views/accounts/register/imap-server.hbs:55
173
- #: views/accounts/register/imap-server.hbs:145
174
- msgid "Instructions"
175
- msgstr "Instrukcje"
174
+ #: views/accounts/register/imap-server.hbs:73
175
+ #: views/accounts/register/imap-server.hbs:180
176
+ msgid "Application Password"
177
+ msgstr "Hasło aplikacji"
176
178
 
177
- #: views/accounts/register/imap-server.hbs:75
178
- #: views/accounts/register/imap-server.hbs:166
179
+ #: views/accounts/register/imap-server.hbs:87
180
+ #: views/accounts/register/imap-server.hbs:194
179
181
  msgid "Hostname"
180
182
  msgstr "Nazwa hosta"
181
183
 
182
- #: views/accounts/register/imap-server.hbs:85
183
- #: views/accounts/register/imap-server.hbs:176
184
+ #: views/accounts/register/imap-server.hbs:97
185
+ #: views/accounts/register/imap-server.hbs:204
184
186
  msgid "Port"
185
187
  msgstr "Port"
186
188
 
187
- #: views/accounts/register/imap-server.hbs:99
189
+ #: views/accounts/register/imap-server.hbs:112
188
190
  msgid "TLS for IMAP"
189
191
  msgstr "TLS dla IMAP"
190
192
 
191
- #: views/accounts/register/imap-server.hbs:100
193
+ #: views/accounts/register/imap-server.hbs:113
192
194
  msgid ""
193
195
  "TLS (also known as SSL) is usually only needed when using port 993. For "
194
196
  "other ports EmailEngine falls back to using STARTTLS based encryption."
@@ -197,20 +199,20 @@ msgstr ""
197
199
  "korzystania z portu 993. W przypadku innych portów EmailEngine powraca do "
198
200
  "szyfrowania opartego na STARTTLS."
199
201
 
200
- #: views/accounts/register/imap-server.hbs:102
201
- #: views/accounts/register/imap-server.hbs:193
202
+ #: views/accounts/register/imap-server.hbs:120
203
+ #: views/accounts/register/imap-server.hbs:227
202
204
  msgid "Use TLS"
203
205
  msgstr "Użyj TLS"
204
206
 
205
- #: views/accounts/register/imap-server.hbs:111
207
+ #: views/accounts/register/imap-server.hbs:129
206
208
  msgid "SMTP"
207
209
  msgstr "SMTP"
208
210
 
209
- #: views/accounts/register/imap-server.hbs:190
211
+ #: views/accounts/register/imap-server.hbs:219
210
212
  msgid "TLS for SMTP"
211
213
  msgstr "TLS dla SMTP"
212
214
 
213
- #: views/accounts/register/imap-server.hbs:191
215
+ #: views/accounts/register/imap-server.hbs:220
214
216
  msgid ""
215
217
  "TLS (also known as SSL) is usually only needed when using port 465. For "
216
218
  "other ports EmailEngine falls back to using STARTTLS based encryption."
@@ -219,52 +221,80 @@ msgstr ""
219
221
  "korzystania z portu 465. W przypadku innych portów EmailEngine powraca do "
220
222
  "szyfrowania opartego na STARTTLS."
221
223
 
222
- #: views/accounts/register/imap-server.hbs:209
224
+ #: views/accounts/register/imap-server.hbs:240
223
225
  msgid "Verify connection"
224
226
  msgstr "Zweryfikuj połączenie"
225
227
 
226
- #: views/accounts/register/imap-server.hbs:218
228
+ #: views/accounts/register/imap-server.hbs:246
227
229
  msgid "Save and continue"
228
230
  msgstr "Zapisz i kontynuuj"
229
231
 
230
- #: views/accounts/register/imap-server.hbs:226
232
+ #: views/accounts/register/imap-server.hbs:255
231
233
  msgid "Skip verification"
232
234
  msgstr "Pomiń weryfikację"
233
235
 
234
- #: views/accounts/register/imap-server.hbs:241
236
+ #: views/accounts/register/imap-server.hbs:268
235
237
  msgid "Connection test failed"
236
238
  msgstr "Test połączenia nie powiódł się"
237
239
 
238
- #: views/accounts/register/imap-server.hbs:247
240
+ #: views/accounts/register/imap-server.hbs:274
239
241
  msgid "We couldn't connect with these settings. Check the errors below."
240
242
  msgstr "Nie udało się połączyć z tymi ustawieniami. Sprawdź błędy poniżej."
241
243
 
242
- #: views/accounts/register/imap-server.hbs:318
244
+ #: views/accounts/register/imap-server.hbs:407
243
245
  msgid "Error"
244
246
  msgstr "Błąd"
245
247
 
246
- #: views/accounts/register/imap-server.hbs:320
248
+ #: views/accounts/register/imap-server.hbs:409
247
249
  msgid "Invalid settings"
248
250
  msgstr "Nieprawidłowe ustawienia"
249
251
 
250
- #: views/accounts/register/imap-server.hbs:326
252
+ #: views/accounts/register/imap-server.hbs:415
251
253
  msgid "Couldn't connect to IMAP server"
252
254
  msgstr "Nie udało się połączyć z serwerem IMAP"
253
255
 
254
- #: views/accounts/register/imap-server.hbs:328
255
- #: views/accounts/register/imap-server.hbs:337
256
+ #: views/accounts/register/imap-server.hbs:417
257
+ #: views/accounts/register/imap-server.hbs:426
256
258
  msgid "Server response:"
257
259
  msgstr "Odpowiedź serwera:"
258
260
 
259
- #: views/accounts/register/imap-server.hbs:335
261
+ #: views/accounts/register/imap-server.hbs:424
260
262
  msgid "Couldn't connect to SMTP server"
261
263
  msgstr "Nie udało się połączyć z serwerem SMTP"
262
264
 
263
- #: views/accounts/register/imap-server.hbs:395
265
+ #: views/accounts/register/imap-server.hbs:483
264
266
  msgid "Request failed."
265
267
  msgstr "Żądanie nie powiodło się."
266
268
 
267
- #: lib/autodetect-imap-settings.js:80
269
+ #: views/account-identity-error.hbs:7
270
+ msgid "Wrong Email Account"
271
+ msgstr "Nieprawidłowe konto e-mail"
272
+
273
+ #: views/account-identity-error.hbs:12
274
+ msgid ""
275
+ "This setup link can only be used with one specific email account, and a "
276
+ "different one was used."
277
+ msgstr ""
278
+ "Tego linku konfiguracyjnego można użyć tylko z jednym określonym kontem e-"
279
+ "mail, a użyto innego."
280
+
281
+ #: views/account-identity-error.hbs:18
282
+ msgid "Expected account"
283
+ msgstr "Oczekiwane konto"
284
+
285
+ #: views/account-identity-error.hbs:21
286
+ msgid "Account used"
287
+ msgstr "Użyte konto"
288
+
289
+ #: views/account-identity-error.hbs:27
290
+ msgid ""
291
+ "Try again and use the expected account. If you believe this is a mistake, "
292
+ "contact the service that sent you this link."
293
+ msgstr ""
294
+ "Spróbuj ponownie, używając oczekiwanego konta. Jeśli uważasz, że to pomyłka, "
295
+ "skontaktuj się z serwisem, który wysłał Ci ten link."
296
+
297
+ #: lib/autodetect-imap-settings.js:90
268
298
  msgid ""
269
299
  "Microsoft has disabled password-based sign-ins (including app passwords) for "
270
300
  "Outlook.com, Hotmail.com, and Microsoft 365 email accounts. To continue, "
@@ -276,76 +306,89 @@ msgstr ""
276
306
  "365. Aby kontynuować, użyj przycisku \"Zaloguj się za pomocą Microsoft\", "
277
307
  "aby bezpiecznie połączyć swoje konto."
278
308
 
279
- #: lib/tools.js:975 lib/ui-routes/unsubscribe-routes.js:28
309
+ #: lib/tools.js:1057 lib/ui-routes/unsubscribe-routes.js:28
310
+ #: lib/ui-routes/unsubscribe-routes.js:92
280
311
  msgid "Invalid input"
281
312
  msgstr "Nieprawidłowe dane wejściowe"
282
313
 
283
- #: lib/tools.js:1742
314
+ #: lib/tools.js:1878
284
315
  msgid "Signature validation failed"
285
316
  msgstr "Walidacja podpisu nie powiodła się"
286
317
 
287
- #: lib/tools.js:1751 lib/tools.js:1756
318
+ #: lib/tools.js:1901 lib/tools.js:1907 lib/tools.js:1912
319
+ #: lib/ui-routes/account-routes.js:1056
288
320
  msgid "Invalid or expired account setup URL"
289
321
  msgstr "Nieprawidłowy lub wygasły adres URL konfiguracji konta"
290
322
 
291
- #: lib/ui-routes/account-routes.js:402 lib/ui-routes/account-routes.js:437
292
- #: lib/ui-routes/account-routes.js:552 lib/ui-routes/account-routes.js:599
293
- #: lib/ui-routes/account-routes.js:846 lib/ui-routes/account-routes.js:882
294
- #: workers/api.js:2158 workers/api.js:2486
323
+ #: lib/ui-routes/account-routes.js:424 lib/ui-routes/account-routes.js:468
324
+ #: lib/ui-routes/account-routes.js:712 lib/ui-routes/account-routes.js:763
325
+ #: lib/ui-routes/account-routes.js:816 lib/ui-routes/account-routes.js:1169
326
+ #: lib/ui-routes/route-helpers.js:353 workers/api.js:2088 workers/api.js:2158
295
327
  msgid "Email Account Setup"
296
328
  msgstr "Konfiguracja konta e-mail"
297
329
 
298
- #: lib/ui-routes/account-routes.js:462 lib/ui-routes/account-routes.js:495
299
- #: lib/ui-routes/unsubscribe-routes.js:65
330
+ #: lib/ui-routes/account-routes.js:493 lib/ui-routes/account-routes.js:525
331
+ #: lib/ui-routes/unsubscribe-routes.js:68
300
332
  msgid "Invalid request. Check your input and try again."
301
333
  msgstr "Nieprawidłowe żądanie. Sprawdź wprowadzone dane i spróbuj ponownie."
302
334
 
303
- #: lib/ui-routes/account-routes.js:592 lib/ui-routes/account-routes.js:875
335
+ #: lib/ui-routes/account-routes.js:658
336
+ msgid ""
337
+ "Too many attempts for this setup link. Request a new setup link to continue."
338
+ msgstr ""
339
+ "Zbyt wiele prób dla tego linku konfiguracyjnego. Aby kontynuować, poproś o "
340
+ "nowy link konfiguracyjny."
341
+
342
+ #: lib/ui-routes/account-routes.js:803 lib/ui-routes/account-routes.js:1106
304
343
  msgid "Couldn't set up account. Try again."
305
344
  msgstr "Nie udało się założyć konta. Spróbuj ponownie."
306
345
 
307
- #: lib/ui-routes/account-routes.js:655 lib/ui-routes/account-routes.js:666
308
- #: lib/ui-routes/admin-entities-routes.js:2020
346
+ #: lib/ui-routes/account-routes.js:886 lib/ui-routes/account-routes.js:897
347
+ #: lib/ui-routes/admin-entities-routes.js:2045
309
348
  msgid "Server hostname was not found"
310
349
  msgstr "Nie znaleziono nazwy hosta serwera"
311
350
 
312
- #: lib/ui-routes/account-routes.js:658 lib/ui-routes/account-routes.js:669
313
- #: lib/ui-routes/admin-entities-routes.js:2023
351
+ #: lib/ui-routes/account-routes.js:889 lib/ui-routes/account-routes.js:900
352
+ #: lib/ui-routes/admin-entities-routes.js:2048
314
353
  msgid "Invalid username or password"
315
354
  msgstr "Nieprawidłowa nazwa użytkownika lub hasło"
316
355
 
317
- #: lib/ui-routes/account-routes.js:672
318
- #: lib/ui-routes/admin-entities-routes.js:2026
356
+ #: lib/ui-routes/account-routes.js:903
357
+ #: lib/ui-routes/admin-entities-routes.js:2051
319
358
  msgid "Authentication credentials were not provided"
320
359
  msgstr "Nie podano danych uwierzytelniających"
321
360
 
322
- #: lib/ui-routes/account-routes.js:675
323
- #: lib/ui-routes/admin-entities-routes.js:2029
361
+ #: lib/ui-routes/account-routes.js:906
362
+ #: lib/ui-routes/admin-entities-routes.js:2054
324
363
  msgid "OAuth2 authentication failed"
325
364
  msgstr "Uwierzytelnianie OAuth2 nie powiodło się"
326
365
 
327
- #: lib/ui-routes/account-routes.js:678 lib/ui-routes/account-routes.js:682
328
- #: lib/ui-routes/admin-entities-routes.js:2032
329
- #: lib/ui-routes/admin-entities-routes.js:2036
366
+ #: lib/ui-routes/account-routes.js:909 lib/ui-routes/account-routes.js:913
367
+ #: lib/ui-routes/admin-entities-routes.js:2057
368
+ #: lib/ui-routes/admin-entities-routes.js:2061
330
369
  msgid "TLS protocol error"
331
370
  msgstr "Błąd protokołu TLS"
332
371
 
333
- #: lib/ui-routes/account-routes.js:686
334
- #: lib/ui-routes/admin-entities-routes.js:2040
372
+ #: lib/ui-routes/account-routes.js:917
373
+ #: lib/ui-routes/admin-entities-routes.js:2065
335
374
  msgid "Connection timed out"
336
375
  msgstr "Przekroczono limit czasu połączenia"
337
376
 
338
- #: lib/ui-routes/account-routes.js:689
339
- #: lib/ui-routes/admin-entities-routes.js:2043
377
+ #: lib/ui-routes/account-routes.js:920
378
+ #: lib/ui-routes/admin-entities-routes.js:2068
340
379
  msgid "Could not connect to server"
341
380
  msgstr "Nie można połączyć się z serwerem"
342
381
 
343
- #: lib/ui-routes/account-routes.js:692
344
- #: lib/ui-routes/admin-entities-routes.js:2046
382
+ #: lib/ui-routes/account-routes.js:923
383
+ #: lib/ui-routes/admin-entities-routes.js:2071
345
384
  msgid "Unexpected server response"
346
385
  msgstr "Nieoczekiwana odpowiedź serwera"
347
386
 
348
- #: lib/ui-routes/admin-config-routes.js:145
387
+ #: lib/ui-routes/account-routes.js:1044
388
+ msgid "Temporary error, please try again"
389
+ msgstr "Błąd tymczasowy, spróbuj ponownie"
390
+
391
+ #: lib/ui-routes/admin-config-routes.js:173
349
392
  msgid "Invalid API key for OpenAI"
350
393
  msgstr "Nieprawidłowy klucz API dla OpenAI"
351
394
 
@@ -357,15 +400,7 @@ msgstr "Nieznany"
357
400
  msgid "Indefinite"
358
401
  msgstr "Na czas nieokreślony"
359
402
 
360
- #: lib/ui-routes/route-helpers.js:81
361
- msgid "Delegated"
362
- msgstr "Delegowany"
363
-
364
- #: lib/ui-routes/route-helpers.js:82
365
- msgid "Using credentials from \"%s\""
366
- msgstr "Używanie poświadczeń z \"%s\""
367
-
368
- #: lib/ui-routes/route-helpers.js:132
403
+ #: lib/ui-routes/route-helpers.js:130
369
404
  msgid ""
370
405
  "Connection timed out. This usually occurs if you are behind a firewall or "
371
406
  "connecting to the wrong port."
@@ -373,11 +408,11 @@ msgstr ""
373
408
  "Przekroczono limit czasu połączenia. Zwykle dzieje się tak, gdy użytkownik "
374
409
  "znajduje się za zaporą sieciową lub łączy się z niewłaściwym portem."
375
410
 
376
- #: lib/ui-routes/route-helpers.js:135
411
+ #: lib/ui-routes/route-helpers.js:133
377
412
  msgid "The server unexpectedly closed the connection."
378
413
  msgstr "Serwer nieoczekiwanie zamknął połączenie."
379
414
 
380
- #: lib/ui-routes/route-helpers.js:138
415
+ #: lib/ui-routes/route-helpers.js:136
381
416
  msgid ""
382
417
  "The server unexpectedly closed the connection. This usually happens when "
383
418
  "attempting to connect to a TLS port without TLS enabled."
@@ -385,7 +420,7 @@ msgstr ""
385
420
  "Serwer nieoczekiwanie zamknął połączenie. Zwykle dzieje się tak podczas "
386
421
  "próby połączenia z portem TLS bez włączonego protokołu TLS."
387
422
 
388
- #: lib/ui-routes/route-helpers.js:143
423
+ #: lib/ui-routes/route-helpers.js:141
389
424
  msgid ""
390
425
  "The server refused the connection. This typically occurs if the server is "
391
426
  "not running, is overloaded, or you are connecting to the wrong host or port."
@@ -393,18 +428,26 @@ msgstr ""
393
428
  "Serwer odmówił połączenia. Zwykle dzieje się tak, gdy serwer nie działa, "
394
429
  "jest przeciążony lub łączysz się z niewłaściwym hostem lub portem."
395
430
 
431
+ #: lib/ui-routes/route-helpers.js:195
432
+ msgid "Delegated"
433
+ msgstr "Delegowany"
434
+
435
+ #: lib/ui-routes/route-helpers.js:196
436
+ msgid "Using credentials from \"%s\""
437
+ msgstr "Używanie poświadczeń z \"%s\""
438
+
396
439
  #: lib/ui-routes/unsubscribe-routes.js:38
397
- #: lib/ui-routes/unsubscribe-routes.js:156
398
440
  #: lib/ui-routes/unsubscribe-routes.js:173
399
- #: lib/ui-routes/unsubscribe-routes.js:209
441
+ #: lib/ui-routes/unsubscribe-routes.js:198
442
+ #: lib/ui-routes/unsubscribe-routes.js:233
400
443
  msgid "Subscription Management"
401
444
  msgstr "Zarządzanie subskrypcjami"
402
445
 
403
- #: lib/ui-routes/unsubscribe-routes.js:167
404
- #: lib/ui-routes/unsubscribe-routes.js:202
446
+ #: lib/ui-routes/unsubscribe-routes.js:192
447
+ #: lib/ui-routes/unsubscribe-routes.js:226
405
448
  msgid "Couldn't process request. Try again."
406
449
  msgstr "Nie udało się przetworzyć żądania. Spróbuj ponownie."
407
450
 
408
- #: workers/api.js:2956 workers/api.js:3071
451
+ #: workers/api.js:2912 workers/api.js:3013
409
452
  msgid "Requested page not found"
410
453
  msgstr "Nie znaleziono żądanej strony"
@@ -0,0 +1,34 @@
1
+ {{!-- Shown when a setup link is restricted to a specific address (expectedEmail) and the account that
2
+ was actually used is a different one; offers a link to restart the setup. Sibling of
3
+ oauth-scope-error.hbs - the user made a correctable choice, so the flow stops here with a way back
4
+ rather than bouncing them to the calling application. --}}
5
+
6
+ <div class="ee-center">
7
+ <h1>{{_ "Wrong Email Account" templateLocale}}</h1>
8
+ </div>
9
+
10
+ <div class="ee-alert ee-alert-error">
11
+ <span class="ee-icon ee-icon-alert-triangle ee-icon-lg"></span>
12
+ <span>{{_ "This setup link can only be used with one specific email account, and a different one was used." templateLocale}}</span>
13
+ </div>
14
+
15
+ {{!-- These labels are whole phrases rather than "Expected" / "Used": the gettext helper has no message
16
+ context, so a bare participle gives a translator nothing to disambiguate against. --}}
17
+ <dl class="ee-dl">
18
+ <dt>{{_ "Expected account" templateLocale}}</dt>
19
+ <dd>{{expectedEmail}}</dd>
20
+ {{#if actualEmail}}
21
+ <dt>{{_ "Account used" templateLocale}}</dt>
22
+ <dd>{{actualEmail}}</dd>
23
+ {{/if}}
24
+ </dl>
25
+
26
+ <p class="ee-muted">
27
+ {{_ "Try again and use the expected account. If you believe this is a mistake, contact the service that sent you this link." templateLocale}}
28
+ </p>
29
+
30
+ <div class="ee-form-actions">
31
+ <a href="{{retryUrl}}" class="ee-btn ee-btn-primary ee-btn-block">
32
+ <span class="ee-icon ee-icon-refresh"></span>{{_ "Try Again" templateLocale}}
33
+ </a>
34
+ </div>
@@ -15,6 +15,7 @@
15
15
 
16
16
  {{> ui/form-field id="name" label="Full name" value=values.name error=errors.name hint="Full name of the user"}}
17
17
  {{> ui/form-field id="email" type="email" label="Email" value=values.email error=errors.email hint="Email address of the user"}}
18
+ {{> ui/form-field id="expectedEmail" type="email" label="Expected identity" value=values.expectedEmail error=errors.expectedEmail hint="Optional. Setups through the hosted authentication form are rejected unless the identity they authenticate matches this address. Clear the field to remove the restriction."}}
18
19
 
19
20
  </div>
20
21
  </div>
@@ -19,14 +19,24 @@ step (/accounts/new/imap/server). --}}
19
19
  <span class="ee-hint">{{_ "Enter your full name" templateLocale }}</span>
20
20
  </div>
21
21
 
22
+ {{!-- When the setup link pins an expected address the field is fixed. This is a convenience
23
+ only: the server rejects a mismatch regardless of what is submitted. --}}
22
24
  <div class="ee-field">
23
25
  <label class="ee-label" for="email">{{_ "Email address" templateLocale }}</label>
26
+ {{!-- autofocus only when the field is editable: focusing a readonly input strands the caret --}}
24
27
  <input type="email" class="ee-input{{#if errors.email}} ee-invalid{{/if}}" id="email" name="email"
25
- value="{{values.email}}" {{#if values.name}}autofocus{{/if}} required />
28
+ value="{{values.email}}" {{#unless values.emailPinned}}{{#if values.name}}autofocus{{/if}}{{/unless}}
29
+ {{#if values.emailPinned}}readonly{{/if}} required />
26
30
  {{#if errors.email}}
27
31
  <span class="ee-field-error">{{errors.email}}</span>
28
32
  {{/if}}
29
- <span class="ee-hint">{{_ "Enter your email address" templateLocale }}</span>
33
+ <span class="ee-hint">
34
+ {{#if values.emailPinned}}
35
+ {{_ "This setup link is restricted to this email address" templateLocale }}
36
+ {{else}}
37
+ {{_ "Enter your email address" templateLocale }}
38
+ {{/if}}
39
+ </span>
30
40
  </div>
31
41
 
32
42
  <div class="ee-field">