aboutsummaryrefslogtreecommitdiff
path: root/lib/format/format.go
diff options
context:
space:
mode:
authorKevin Kuehler <keur@xcf.berkeley.edu>2019-10-10 15:27:12 -0700
committerBen Burwell <ben@benburwell.com>2019-10-12 20:58:06 -0400
commitbaa8813dcc1bf4dbd18763df9ee654472ae0e433 (patch)
treef71a49c1eab79108cd6e674cce18b4e6b2c0eee1 /lib/format/format.go
parent77c1a1714448092c2355eb1cc046f1939b46c5e4 (diff)
Add threading control path to msglist.Draw()
Signed-off-by: Kevin Kuehler <keur@xcf.berkeley.edu>
Diffstat (limited to 'lib/format/format.go')
-rw-r--r--lib/format/format.go6
1 files changed, 3 insertions, 3 deletions
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,