Add labels to index format (%g)

Exposes the notmuch tags accordingly, stubs it for the maildir worker.
This commit is contained in:
Reto Brunner 2019-12-23 12:51:58 +01:00 committed by Drew DeVault
parent 6794ce0d9c
commit 63391b7dca
7 changed files with 22 additions and 0 deletions
lib/format

View file

@ -138,6 +138,10 @@ func ParseMessageFormat(
retval = append(retval, 's')
args = append(args, val)
case 'g':
retval = append(retval, 's')
args = append(args, strings.Join(msg.Labels, ", "))
case 'i':
retval = append(retval, 's')
args = append(args, msg.Envelope.MessageId)