aboutsummaryrefslogtreecommitdiffstats
path: root/models/templates.go
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2023-03-07 00:02:47 +0100
committerRobin Jarry <robin@jarry.cc>2023-03-08 00:42:58 +0100
commit66c532f859dd477ce57e222107c6b371e66064b8 (patch)
tree215d74f96cc1442cef496663dd266af5adf5926c /models/templates.go
parent35040bec9962cac3c92039fac85a4068e148b0a0 (diff)
downloadaerc-66c532f859dd477ce57e222107c6b371e66064b8.tar.gz
templates: make SubjectBase official api
Document .SubjectBase. Fix its value along the way. Do not reuse d.Subject() which may be empty if d.threadSameSubject is true. Signed-off-by: Robin Jarry <robin@jarry.cc> Acked-by: Tim Culverhouse <tim@timculverhouse.com>
Diffstat (limited to 'models/templates.go')
-rw-r--r--models/templates.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/models/templates.go b/models/templates.go
index 5ee516ac..54537a31 100644
--- a/models/templates.go
+++ b/models/templates.go
@@ -21,6 +21,7 @@ type TemplateData interface {
Header(name string) string
ThreadPrefix() string
Subject() string
+ SubjectBase() string
Number() int
Labels() []string
Flags() []string