about summary refs log tree commit diff stats
path: root/lib/format
diff options
context:
space:
mode:
authorReto Brunner <reto@labrat.space>2019-12-23 12:51:58 +0100
committerDrew DeVault <sir@cmpwn.com>2019-12-27 10:20:29 -0700
commit63391b7dca09e3f2cf3c4ff903592d23fe8f56a3 (patch)
tree4d1d4f918bd1a9536991a763c945139f89b8065e /lib/format
parent6794ce0d9cce89d5fab726d7bc93a77b47cea677 (diff)
downloadaerc-63391b7dca09e3f2cf3c4ff903592d23fe8f56a3.tar.gz
Add labels to index format (%g)
Exposes the notmuch tags accordingly, stubs it for the maildir worker.
Diffstat (limited to 'lib/format')
-rw-r--r--lib/format/format.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/format/format.go b/lib/format/format.go
index 0cb9693..b66a180 100644
--- a/lib/format/format.go
+++ b/lib/format/format.go
@@ -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)
suckless/dwm/commit/config.mk?id=14f7380308c4213aac7956c272dec0d23c2f42d3'>14f7380 ^
f22d047 ^
1076f2b
7b5638f ^
f22d047 ^
2ce37bc ^



d7e1708 ^
71fd06f ^


71fd06f ^
95766d6 ^
1076f2b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33