From 84146e23b384e42c63287e3519e70b0a6ea3100f Mon Sep 17 00:00:00 2001 From: Robin Jarry Date: Sat, 6 Nov 2021 17:32:38 +0100 Subject: index: add this-week-time-format Also allow specific time format for messages received within the last 7 days. Signed-off-by: Robin Jarry --- config/config.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'config/config.go') diff --git a/config/config.go b/config/config.go index dcfdd243..58aa0620 100644 --- a/config/config.go +++ b/config/config.go @@ -30,6 +30,7 @@ type UIConfig struct { IndexFormat string `ini:"index-format"` TimestampFormat string `ini:"timestamp-format"` ThisDayTimeFormat string `ini:"this-day-time-format"` + ThisWeekTimeFormat string `ini:"this-week-time-format"` ThisYearTimeFormat string `ini:"this-year-time-format"` ShowHeaders []string `delim:","` RenderAccountTabs string `ini:"render-account-tabs"` @@ -496,6 +497,7 @@ func LoadConfigFromFile(root *string, sharedir string) (*AercConfig, error) { IndexFormat: "%D %-17.17n %s", TimestampFormat: "2006-01-02 03:04 PM", ThisDayTimeFormat: "", + ThisWeekTimeFormat: "", ThisYearTimeFormat: "", ShowHeaders: []string{ "From", "To", "Cc", "Bcc", "Subject", "Date", -- cgit