diff options
author | Robin Jarry <robin@jarry.cc> | 2023-03-03 17:37:05 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-03-08 00:42:56 +0100 |
commit | 35040bec9962cac3c92039fac85a4068e148b0a0 (patch) | |
tree | ca33752e9ad3d00894468ae489497d3d168faeee /config/templates.go | |
parent | 159ad244ee23d69f2491b139fd4384c7620b83c2 (diff) | |
download | aerc-35040bec9962cac3c92039fac85a4068e148b0a0.tar.gz |
templates: separate thread prefix from subject
Extract {{.ThreadPrefix}} from {{.Subject}} so that the prefix can be
styled in a different color.
Signed-off-by: Robin Jarry <robin@jarry.cc>
Acked-by: Tim Culverhouse <tim@timculverhouse.com>
Diffstat (limited to 'config/templates.go')
-rw-r--r-- | config/templates.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config/templates.go b/config/templates.go index d3e7cfb0..96fbccb1 100644 --- a/config/templates.go +++ b/config/templates.go @@ -74,7 +74,8 @@ func (d *dummyData) ReplyTo() []*mail.Address { return nil } func (d *dummyData) Date() time.Time { return time.Now() } func (d *dummyData) DateAutoFormat(time.Time) string { return "" } func (d *dummyData) Header(string) string { return "" } -func (d *dummyData) Subject() string { return "[PATCH] hey" } +func (d *dummyData) ThreadPrefix() string { return "└─>" } +func (d *dummyData) Subject() string { return "Re: [PATCH] hey" } func (d *dummyData) Number() int { return 0 } func (d *dummyData) Labels() []string { return nil } func (d *dummyData) Flags() []string { return nil } |