aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--global-functions8
1 files changed, 4 insertions, 4 deletions
diff --git a/global-functions b/global-functions
index ac7cec1..be04150 100644
--- a/global-functions
+++ b/global-functions
@@ -719,6 +719,7 @@
:global EmailGeneralCc;
:global LogPrintExit;
+ :global IfThenElse;
:if ([ :len $EmailGeneralTo ] = 0) do={
:return false;
@@ -726,12 +727,11 @@
:do {
:local Signature [ / system note get note ];
- :if ([ :len $Signature ] > 0) do={
- :set Signature ("\n-- \n" . $Signature);
- }
/ tool e-mail send to=$EmailGeneralTo cc=$EmailGeneralCc \
subject=("[" . $Identity . "] " . $Subject) \
- body=($Message . $Signature) file=$Attach;
+ body=($Message . \
+ [ $IfThenElse ([ :len $Signature ] > 0) ("\n-- \n" . $Signature) "" ]) \
+ file=$Attach;
} on-error={
$LogPrintExit warning ("Failed sending notification mail!") false;
}