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
@@ -110,6 +110,10 @@ const gr: NotificationLocale = {
title: 'Προωθημένες κρατήσεις για έλεγχο',
body: `Προωθημένες κρατήσεις σε αναμονή στο TREK: ${p.count}. Σε καθεμία αναφέρεται γιατί δεν προστέθηκε αυτόματα.`,
}),
mail_ingest_paused: () => ({
title: 'Η εισαγωγή email σε παύση',
body: 'Το TREK δεν δέχεται προς το παρόν προωθημένα email κρατήσεων, οπότε περίμενε πριν τα προωθήσεις. Οι διευθύνσεις σου μένουν και θα λειτουργήσουν ξανά όταν επιστρέψει η εισαγωγή, και οι κρατήσεις που έχουν ήδη προστεθεί μένουν στα ταξίδια σου.',
}),
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} πρόσθεσε την κράτηση {booking} στο {trip} από προωθημένο email',
'notif.mail_booking_pending.title': 'Προωθημένες κρατήσεις για έλεγχο',
'notif.mail_booking_pending.text': 'Προωθημένες κρατήσεις σε αναμονή: {count}',
'notif.mail_ingest_paused.title': 'Η εισαγωγή email σε παύση',
'notif.mail_ingest_paused.text': 'Τα προωθημένα email κρατήσεων δεν γίνονται δεκτά προς το παρόν. Οι διευθύνσεις σου μένουν και θα λειτουργήσουν ξανά όταν επιστρέψει η εισαγωγή.',
'notif.action.undo': 'Αναίρεση',
'notif.action.keep': 'Διατήρηση',
'notif.action.review': 'Έλεγχος',