From 63391b7dca09e3f2cf3c4ff903592d23fe8f56a3 Mon Sep 17 00:00:00 2001 From: Reto Brunner Date: Mon, 23 Dec 2019 12:51:58 +0100 Subject: Add labels to index format (%g) Exposes the notmuch tags accordingly, stubs it for the maildir worker. --- worker/notmuch/message.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'worker/notmuch/message.go') diff --git a/worker/notmuch/message.go b/worker/notmuch/message.go index c51e2e9..ec1adb9 100644 --- a/worker/notmuch/message.go +++ b/worker/notmuch/message.go @@ -102,6 +102,10 @@ func (m *Message) Tags() ([]string, error) { return m.db.MsgTags(m.key) } +func (m *Message) Labels() ([]string, error) { + return m.Tags() +} + func (m *Message) ModelFlags() ([]models.Flag, error) { var flags []models.Flag seen := true -- cgit v1.2.3