feat(mail-ingest): tell every address holder once when the import stops

A plan without the import switches it off from outside the server, and an
admin can switch it off too; the plan promises a "mail import paused" note.
An hourly job sends mail_ingest_paused to each holder of a live address with
their own import on, notes the pause first, and forgets it once it is back.
This commit is contained in:
Maurice
2026-11-13 17:11:30 +01:00
parent 1d052f725f
commit 44f669cd0e
72 changed files with 429 additions and 3 deletions
@@ -113,6 +113,10 @@ const sk: NotificationLocale = {
title: 'Preposlané rezervácie na kontrolu',
body: `Preposlané rezervácie čakajúce na vás v TREK: ${p.count}. Pri každej je uvedené, prečo nebola pridaná sama.`,
}),
mail_ingest_paused: () => ({
title: 'Import e-mailov pozastavený',
body: 'TREK zatiaľ neprijíma preposlané e-maily s rezerváciami, preto ich zatiaľ nepreposielajte. Vaše adresy zostávajú a znova budú fungovať, keď sa import vráti, a už pridané rezervácie zostávajú vo vašich cestách.',
}),
plugin_notification: (p) => ({ title: p.title ?? '', body: p.body ?? '' }),
},
passwordReset: {
+2
View File
@@ -61,6 +61,8 @@ const notif: TranslationStrings = {
'notif.mail_booking_added.shared': '{actor} pridal(a) {booking} do {trip} z preposlaného e-mailu',
'notif.mail_booking_pending.title': 'Preposlané rezervácie na kontrolu',
'notif.mail_booking_pending.text': 'Preposlané rezervácie čakajúce na vás: {count}',
'notif.mail_ingest_paused.title': 'Import e-mailov pozastavený',
'notif.mail_ingest_paused.text': 'Preposlané e-maily s rezerváciami sa zatiaľ neprijímajú. Vaše adresy zostávajú a znova budú fungovať, keď sa import vráti.',
'notif.action.undo': 'Vrátiť späť',
'notif.action.keep': 'Ponechať',
'notif.action.review': 'Skontrolovať',