aboutsummaryrefslogtreecommitdiffstats
path: root/lib/templates/data.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/templates/data.go')
-rw-r--r--lib/templates/data.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/templates/data.go b/lib/templates/data.go
index dab698d5..cb69d8fe 100644
--- a/lib/templates/data.go
+++ b/lib/templates/data.go
@@ -20,6 +20,10 @@ type TemplateData struct {
marked bool
msgNum int
+ // message list threading
+ ThreadSameSubject bool
+ ThreadPrefix string
+
// account config
myAddresses map[string]bool
account string
@@ -215,7 +219,10 @@ func (d *TemplateData) Subject() string {
case d.headers != nil:
subject = d.Header("subject")
}
- return subject
+ if d.ThreadSameSubject {
+ subject = ""
+ }
+ return d.ThreadPrefix + subject
}
func (d *TemplateData) SubjectBase() string {