aboutsummaryrefslogtreecommitdiffstats
path: root/global-functions
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2019-07-16 12:42:40 +0200
committerGravatar Christian Hesse <mail@eworm.de>2019-07-16 12:42:40 +0200
commitb1b53e3d0de3e82703afba4c03a532aa8d86e2d9 (patch)
treebd72201041e0281f12eace04024435d1cb8e80f1 /global-functions
parent12af69b443b24b54461c52cb8e3f69d83dcc6639 (diff)
global-functions: append system note in e-mail signature
Diffstat (limited to 'global-functions')
-rw-r--r--global-functions7
1 files changed, 6 insertions, 1 deletions
diff --git a/global-functions b/global-functions
index 6522bd8..f6d1e70 100644
--- a/global-functions
+++ b/global-functions
@@ -107,8 +107,13 @@
:if ([ :len $EmailGeneralTo ] > 0) do={
: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 file=$Attach;
+ subject=("[" . $Identity . "] " . $Subject) \
+ body=($Message . $Signature) file=$Attach;
} on-error={
:log warning "Failed sending notification mail!";
}