From bea327a2547a0675bfbd51f6dd3c65ac55b4e388 Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Mon, 18 Mar 2019 14:15:09 +0100 Subject: [PATCH] embed the template in a function sed is not very good with multi-line search/replace, so we've decided to use a shell function to format the mail. --- evomaintenance.sh | 62 +++++++++++++++++++++++++++++++++++------------ 1 file changed, 47 insertions(+), 15 deletions(-) diff --git a/evomaintenance.sh b/evomaintenance.sh index 71da8a3..808a510 100755 --- a/evomaintenance.sh +++ b/evomaintenance.sh @@ -204,22 +204,54 @@ hook_db() { fi } +format_mail() { + cat <