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
@@ -107,6 +107,10 @@ const ca: NotificationLocale = {
title: 'Reserves reenviades per revisar',
body: `Reserves reenviades pendents a TREK: ${p.count}. Cadascuna diu per què no s’ha afegit sola.`,
}),
mail_ingest_paused: () => ({
title: 'Importació de correus en pausa',
body: 'De moment TREK no accepta correus de reserva reenviats, així que espera abans de reenviar-ne. Les teves adreces es mantenen i tornaran a funcionar quan torni la importació, i les reserves ja afegides continuen als teus viatges.',
}),
plugin_notification: (p) => ({ title: p.title ?? '', body: p.body ?? '' }),
},
passwordReset: {
+2
View File
@@ -65,6 +65,8 @@ const notif: TranslationStrings = {
'notif.mail_booking_added.shared': '{actor} ha afegit {booking} a {trip} des d’un correu reenviat',
'notif.mail_booking_pending.title': 'Reserves reenviades per revisar',
'notif.mail_booking_pending.text': 'Reserves reenviades pendents: {count}',
'notif.mail_ingest_paused.title': 'Importació de correus en pausa',
'notif.mail_ingest_paused.text': 'De moment no s’accepten els correus de reserva reenviats. Les teves adreces es mantenen i tornaran a funcionar quan torni la importació.',
'notif.action.undo': 'Desfés',
'notif.action.keep': 'Conserva',
'notif.action.review': 'Revisa',