From d8c2d63ee9b37e78d0e06ec71b2227b83ee52aa5 Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Sun, 16 Apr 2023 09:53:46 -0500 Subject: directory: add role to template fields Add .Role as a template field for use in distinguishing between mailboxes with a given IANA role, or custom role defined by aerc ("query" for notmuch queries, for example). Signed-off-by: Tim Culverhouse Acked-by: Robin Jarry --- config/templates.go | 1 + 1 file changed, 1 insertion(+) (limited to 'config/templates.go') diff --git a/config/templates.go b/config/templates.go index ff88689f..2b16fb22 100644 --- a/config/templates.go +++ b/config/templates.go @@ -98,6 +98,7 @@ func (d *dummyData) ContentInfo() string { return "" } func (d *dummyData) StatusInfo() string { return "" } func (d *dummyData) TrayInfo() string { return "" } func (d *dummyData) PendingKeys() string { return "" } +func (d *dummyData) Role() string { return "inbox" } func (d *dummyData) Style(string, string) string { return "" } func (d *dummyData) StyleSwitch(string, ...models.Case) string { return "" } -- cgit