aboutsummaryrefslogtreecommitdiffstats
path: root/global-functions
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-11-26 22:36:14 +0100
committerGravatar Christian Hesse <mail@eworm.de>2020-11-26 23:04:05 +0100
commitd09baddac30b8221ed34db41b9f0536daf83a084 (patch)
tree927721e9516f429b37f19d813e8758ef201b046b /global-functions
parent46866e2ff232c86b62419810667a3a394a2b4b65 (diff)
global-functions: $SendEMail: prepare to add link
For e-mail just in plain text...
Diffstat (limited to 'global-functions')
-rw-r--r--global-functions2
1 files changed, 2 insertions, 0 deletions
diff --git a/global-functions b/global-functions
index be04150..de62a59 100644
--- a/global-functions
+++ b/global-functions
@@ -712,6 +712,7 @@
:set SendEMail do={
:local Subject [ :tostr $1 ];
:local Message [ :tostr $2 ];
+ :local Link;
:local Attach [ :tostr $3 ];
:global Identity;
@@ -730,6 +731,7 @@
/ tool e-mail send to=$EmailGeneralTo cc=$EmailGeneralCc \
subject=("[" . $Identity . "] " . $Subject) \
body=($Message . \
+ [ $IfThenElse ([ :len $Link ] > 0) ("\n\n" . $Link) "" ] . \
[ $IfThenElse ([ :len $Signature ] > 0) ("\n-- \n" . $Signature) "" ]) \
file=$Attach;
} on-error={