aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorMoritz Poldrack <git@moritz.sh>2023-01-27 19:48:55 +0100
committerRobin Jarry <robin@jarry.cc>2023-01-29 21:54:05 +0100
commit17ce7c762cb10ce4272de8ddd45367ba94360456 (patch)
tree586a22def17636d4db31a185de6a25e08bc370c7 /templates
parent549eab7f2ce96d8b1c80b922515b3ae3c3914fc8 (diff)
downloadaerc-17ce7c762cb10ce4272de8ddd45367ba94360456.tar.gz
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 <git@moritz.sh> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'templates')
-rw-r--r--templates/quoted_reply2
1 files changed, 1 insertions, 1 deletions
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}}