aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/format/format.go4
-rw-r--r--lib/msgstore.go1
2 files changed, 5 insertions, 0 deletions
diff --git a/lib/format/format.go b/lib/format/format.go
index 0cb96934..b66a1802 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)
diff --git a/lib/msgstore.go b/lib/msgstore.go
index 9075a266..f67c49f2 100644
--- a/lib/msgstore.go
+++ b/lib/msgstore.go
@@ -149,6 +149,7 @@ func merge(to *models.MessageInfo, from *models.MessageInfo) {
to.Envelope = from.Envelope
}
to.Flags = from.Flags
+ to.Labels = from.Labels
if from.Size != 0 {
to.Size = from.Size
}