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
@@ -100,6 +100,10 @@ const th: NotificationLocale = {
title: 'การจองที่ส่งต่อซึ่งรอตรวจสอบ',
body: `การจองที่ส่งต่อซึ่งรอคุณอยู่ใน TREK: ${p.count} แต่ละรายการบอกเหตุผลที่ไม่ได้เพิ่มเองโดยอัตโนมัติ`,
}),
mail_ingest_paused: () => ({
title: 'หยุดการนำเข้าอีเมลชั่วคราว',
body: 'ขณะนี้ TREK ยังไม่รับอีเมลการจองที่ส่งต่อมา โปรดรอก่อนส่งต่อ ที่อยู่ของคุณยังคงอยู่และจะใช้งานได้อีกครั้งเมื่อการนำเข้ากลับมา และการจองที่เพิ่มแล้วยังคงอยู่ในทริปของคุณ',
}),
plugin_notification: (p) => ({ title: p.title ?? '', body: p.body ?? '' }),
},
passwordReset: {
+2
View File
@@ -59,6 +59,8 @@ const notif: TranslationStrings = {
'notif.mail_booking_added.shared': '{actor} เพิ่ม {booking} ลงใน {trip} จากอีเมลที่ส่งต่อ',
'notif.mail_booking_pending.title': 'การจองที่ส่งต่อซึ่งรอตรวจสอบ',
'notif.mail_booking_pending.text': 'การจองที่ส่งต่อซึ่งรอคุณอยู่: {count}',
'notif.mail_ingest_paused.title': 'หยุดการนำเข้าอีเมลชั่วคราว',
'notif.mail_ingest_paused.text': 'ขณะนี้ยังไม่รับอีเมลการจองที่ส่งต่อมา ที่อยู่ของคุณยังคงอยู่และจะใช้งานได้อีกครั้งเมื่อการนำเข้ากลับมา',
'notif.action.undo': 'เลิกทำ',
'notif.action.keep': 'เก็บไว้',
'notif.action.review': 'ตรวจสอบ',