index: add this-week-time-format

Also allow specific time format for messages received within the last
7 days.

Signed-off-by: Robin Jarry <robin@jarry.cc>
This commit is contained in:
Robin Jarry 2021-11-06 17:32:38 +01:00
parent 02e7d8aca8
commit 84146e23b3
6 changed files with 36 additions and 8 deletions

View file

@ -39,6 +39,7 @@ func (trig *TriggersConfig) ExecNewEmail(account *AccountConfig,
formatstr, args, err := format.ParseMessageFormat(
part, conf.Ui.TimestampFormat,
conf.Ui.ThisDayTimeFormat,
conf.Ui.ThisWeekTimeFormat,
conf.Ui.ThisYearTimeFormat,
format.Ctx{
FromAddress: account.From,