mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-01 08:53:13 +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 nl: NotificationLocale = {
|
||||
title: 'Doorgestuurde boekingen om te controleren',
|
||||
body: `In TREK wachten doorgestuurde boekingen op je: ${p.count}. Bij elke staat waarom hij niet vanzelf is toegevoegd.`,
|
||||
}),
|
||||
mail_ingest_paused: () => ({
|
||||
title: 'Mailimport gepauzeerd',
|
||||
body: 'TREK neemt doorgestuurde boekingsmails voorlopig niet aan, stuur er dus even geen door. Je adressen blijven en werken weer zodra de import terug is, en boekingen die al zijn toegevoegd blijven in je reizen.',
|
||||
}),
|
||||
plugin_notification: (p) => ({ title: p.title ?? '', body: p.body ?? '' }),
|
||||
},
|
||||
passwordReset: {
|
||||
|
||||
@@ -60,6 +60,8 @@ const notif: TranslationStrings = {
|
||||
'notif.mail_booking_added.shared': '{actor} heeft {booking} uit een doorgestuurde mail aan {trip} toegevoegd',
|
||||
'notif.mail_booking_pending.title': 'Doorgestuurde boekingen om te controleren',
|
||||
'notif.mail_booking_pending.text': 'Doorgestuurde boekingen wachten op je: {count}',
|
||||
'notif.mail_ingest_paused.title': 'Mailimport gepauzeerd',
|
||||
'notif.mail_ingest_paused.text': 'Doorgestuurde boekingsmails worden voorlopig niet aangenomen. Je adressen blijven en werken weer zodra de import terug is.',
|
||||
'notif.action.undo': 'Ongedaan maken',
|
||||
'notif.action.keep': 'Behouden',
|
||||
'notif.action.review': 'Controleren',
|
||||
|
||||
Reference in New Issue
Block a user