mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-29 16:10:07 +00:00
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:
@@ -107,6 +107,10 @@ const de: NotificationLocale = {
|
||||
title: 'Weitergeleitete Buchungen prüfen',
|
||||
body: `In TREK warten weitergeleitete Buchungen auf dich: ${p.count}. Bei jeder steht, warum sie nicht von selbst eingetragen wurde.`,
|
||||
}),
|
||||
mail_ingest_paused: () => ({
|
||||
title: 'Mail-Import pausiert',
|
||||
body: 'TREK nimmt weitergeleitete Buchungsmails vorerst nicht an, leite also gerade keine weiter. Deine Adressen bleiben und funktionieren wieder, sobald der Import zurück ist, und bereits eingetragene Buchungen bleiben in deinen Reisen.',
|
||||
}),
|
||||
plugin_notification: (p) => ({ title: p.title ?? '', body: p.body ?? '' }),
|
||||
},
|
||||
passwordReset: {
|
||||
|
||||
@@ -60,6 +60,8 @@ const notif: TranslationStrings = {
|
||||
'notif.mail_booking_added.shared': '{actor} hat {booking} aus einer weitergeleiteten Mail in {trip} eingetragen',
|
||||
'notif.mail_booking_pending.title': 'Weitergeleitete Buchungen prüfen',
|
||||
'notif.mail_booking_pending.text': 'Weitergeleitete Buchungen warten auf dich: {count}',
|
||||
'notif.mail_ingest_paused.title': 'Mail-Import pausiert',
|
||||
'notif.mail_ingest_paused.text': 'Weitergeleitete Buchungsmails werden vorerst nicht angenommen. Deine Adressen bleiben und funktionieren wieder, sobald der Import zurück ist.',
|
||||
'notif.action.undo': 'Rückgängig',
|
||||
'notif.action.keep': 'Behalten',
|
||||
'notif.action.review': 'Prüfen',
|
||||
|
||||
Reference in New Issue
Block a user