mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-05 02:14:05 +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:
@@ -101,6 +101,10 @@ const zh: NotificationLocale = {
|
||||
title: '待查看的转发预订',
|
||||
body: `TREK 中等待你处理的转发预订:${p.count}。每一条都说明了为什么没有自动添加。`,
|
||||
}),
|
||||
mail_ingest_paused: () => ({
|
||||
title: '邮件导入已暂停',
|
||||
body: 'TREK 暂时不接收转发的预订邮件,请先不要转发。你的地址会保留,导入恢复后即可再次使用,已添加的预订仍保留在你的行程中。',
|
||||
}),
|
||||
plugin_notification: (p) => ({ title: p.title ?? '', body: p.body ?? '' }),
|
||||
},
|
||||
passwordReset: {
|
||||
|
||||
@@ -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': '查看',
|
||||
|
||||
Reference in New Issue
Block a user