mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-03 09:38:54 +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:
@@ -110,6 +110,10 @@ const br: NotificationLocale = {
|
||||
title: 'Reservas encaminhadas para revisar',
|
||||
body: `Reservas encaminhadas aguardando você no TREK: ${p.count}. Cada uma diz por que não foi adicionada sozinha.`,
|
||||
}),
|
||||
mail_ingest_paused: () => ({
|
||||
title: 'Importação de e-mails pausada',
|
||||
body: 'Por enquanto, o TREK não aceita e-mails de reserva encaminhados, então espere antes de encaminhá-los. Seus endereços continuam e voltam a funcionar quando a importação voltar, e as reservas já adicionadas continuam nas suas viagens.',
|
||||
}),
|
||||
plugin_notification: (p) => ({ title: p.title ?? '', body: p.body ?? '' }),
|
||||
},
|
||||
passwordReset: {
|
||||
|
||||
@@ -60,6 +60,8 @@ const notif: TranslationStrings = {
|
||||
'notif.mail_booking_added.shared': '{actor} adicionou {booking} a {trip} a partir de um e-mail encaminhado',
|
||||
'notif.mail_booking_pending.title': 'Reservas encaminhadas para revisar',
|
||||
'notif.mail_booking_pending.text': 'Reservas encaminhadas aguardando você: {count}',
|
||||
'notif.mail_ingest_paused.title': 'Importação de e-mails pausada',
|
||||
'notif.mail_ingest_paused.text': 'Por enquanto, os e-mails de reserva encaminhados não são aceitos. Seus endereços continuam e voltam a funcionar quando a importação voltar.',
|
||||
'notif.action.undo': 'Desfazer',
|
||||
'notif.action.keep': 'Manter',
|
||||
'notif.action.review': 'Revisar',
|
||||
|
||||
Reference in New Issue
Block a user