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 en: NotificationLocale = {
title: 'Vidarebefordrade bokningar att granska',
body: `Vidarebefordrade bokningar som väntar på dig i TREK: ${p.count}. Vid varje står varför den inte lades till av sig själv.`,
}),
mail_ingest_paused: () => ({
title: 'Mejlimport pausad',
body: 'TREK tar inte emot vidarebefordrade bokningsmejl just nu, så vänta med att vidarebefordra dem. Dina adresser finns kvar och fungerar igen när importen är tillbaka, och bokningar som redan lagts till finns kvar i dina resor.',
}),
plugin_notification: (p) => ({ title: p.title ?? '', body: p.body ?? '' }),
},
passwordReset: {
+2
View File
@@ -60,6 +60,8 @@ const notif: TranslationStrings = {
'notif.mail_booking_added.shared': '{actor} lade till {booking} i {trip} från ett vidarebefordrat mejl',
'notif.mail_booking_pending.title': 'Vidarebefordrade bokningar att granska',
'notif.mail_booking_pending.text': 'Vidarebefordrade bokningar som väntar på dig: {count}',
'notif.mail_ingest_paused.title': 'Mejlimport pausad',
'notif.mail_ingest_paused.text': 'Vidarebefordrade bokningsmejl tas inte emot just nu. Dina adresser finns kvar och fungerar igen när importen är tillbaka.',
'notif.action.undo': 'Ångra',
'notif.action.keep': 'Behåll',
'notif.action.review': 'Granska',