From 75cbf8dc0376429d6cdb6a6716b6a9b41fb681f1 Mon Sep 17 00:00:00 2001 From: Kevin Kuehler Date: Mon, 28 Oct 2019 12:07:05 -0700 Subject: Add threading control path to msglist.Draw() Signed-off-by: Kevin Kuehler --- lib/format/format.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/format') diff --git a/lib/format/format.go b/lib/format/format.go index b403f2d..c71ae93 100644 --- a/lib/format/format.go +++ b/lib/format/format.go @@ -10,8 +10,8 @@ import ( ) func ParseMessageFormat(format string, timestampformat string, - accountName string, number int, msg *models.MessageInfo) (string, - []interface{}, error) { + accountName string, number int, msg *models.MessageInfo, + subjectThread string) (string, []interface{}, error) { retval := make([]byte, 0, len(format)) var args []interface{} @@ -147,7 +147,7 @@ func ParseMessageFormat(format string, timestampformat string, args = append(args, addrs) case 's': retval = append(retval, 's') - args = append(args, msg.Envelope.Subject) + args = append(args, subjectThread+msg.Envelope.Subject) case 't': if len(msg.Envelope.To) == 0 { return "", nil, -- cgit v1.2.3