summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsendmailadvanced.in22
1 files changed, 20 insertions, 2 deletions
diff --git a/sendmailadvanced.in b/sendmailadvanced.in
index 5e5a58e..b3433b4 100755
--- a/sendmailadvanced.in
+++ b/sendmailadvanced.in
@@ -228,11 +228,29 @@ fi
(
for hookParam in "${hooks[@]}"; do
"#ETCDIR#/sendmailadvanced.hooks/${hookParam}" head
- done
+ echo
+ done \
+ | sed '
+ /^$/ {
+ :a
+ N
+ s@^\n$@@
+ ta
+ }
+ '
cat
for hookParam in "${hooks[@]}"; do
"#ETCDIR#/sendmailadvanced.hooks/${hookParam}" foot
- done
+ echo
+ done \
+ | sed '
+ /^$/ {
+ :a
+ N
+ s@^\n$@@
+ ta
+ }
+ '
) | \
if ${encrypt}; then
(