From 17ce7c762cb10ce4272de8ddd45367ba94360456 Mon Sep 17 00:00:00 2001 From: Moritz Poldrack Date: Fri, 27 Jan 2023 19:48:55 +0100 Subject: templates: add trimSignature function Some contacts, especially corporate, include a wall of text in their signatures. To not clutter the reply chain, this commit introduces a new function to the templating engine that removes the signature from a message. Link: https://learn.microsoft.com/en-us/microsoft-365/admin/setup/create-signatures-and-disclaimers Signed-off-by: Moritz Poldrack Acked-by: Robin Jarry --- templates/quoted_reply | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/quoted_reply') diff --git a/templates/quoted_reply b/templates/quoted_reply index 9e622cd9..95162172 100644 --- a/templates/quoted_reply +++ b/templates/quoted_reply @@ -1,4 +1,4 @@ X-Mailer: aerc {{version}} On {{dateFormat (.OriginalDate | toLocal) "Mon Jan 2, 2006 at 3:04 PM MST"}}, {{(index .OriginalFrom 0).Name}} wrote: -{{quote .OriginalText}} +{{trimSignature .OriginalText | quote}} -- cgit