From 930cece51d6522e4b34504895926029eab5e3f5b Mon Sep 17 00:00:00 2001 From: inwit Date: Sat, 29 Jun 2024 17:14:24 +0200 Subject: 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 Acked-by: Robin Jarry --- config/templates.go | 1 + 1 file changed, 1 insertion(+) (limited to 'config') 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" } -- cgit