aboutsummaryrefslogtreecommitdiffstats
path: root/config/templates.go
diff options
context:
space:
mode:
authorinwit <inwit@sindominio.net>2024-06-29 17:14:24 +0200
committerRobin Jarry <robin@jarry.cc>2024-08-20 11:54:34 +0200
commit930cece51d6522e4b34504895926029eab5e3f5b (patch)
tree21a6fae923f72120745e19a739ac09dd5fe77c0b /config/templates.go
parentfd81f2c81e3c31118fc7df14c3e208cc112c36b9 (diff)
downloadaerc-930cece51d6522e4b34504895926029eab5e3f5b.tar.gz
templates: add a template for forwaded messages
Add a {{.IsForwarded}} template to tell if a message has been forwarded or not. Changelog-added: Forwarded messages can be identified with the {{.IsForwarded}} template. Signed-off-by: inwit <inwit@sindominio.net> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'config/templates.go')
-rw-r--r--config/templates.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/templates.go b/config/templates.go
index a74386cf..fd7f0186 100644
--- a/config/templates.go
+++ b/config/templates.go
@@ -99,6 +99,7 @@ func (d *dummyData) IsUnread() bool { return false }
func (d *dummyData) IsFlagged() bool { return false }
func (d *dummyData) IsDraft() bool { return false }
func (d *dummyData) IsMarked() bool { return false }
+func (d *dummyData) IsForwarded() bool { return false }
func (d *dummyData) MessageId() string { return "123456789@foo.org" }
func (d *dummyData) Size() int { return 420 }
func (d *dummyData) OriginalText() string { return "Blah blah blah" }