diff options
author | Christian Hesse <mail@eworm.de> | 2021-02-16 16:04:18 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2021-02-16 16:04:18 +0100 |
commit | 17d7678e2dbd641cf6f2a6950709cfc2ad9ea129 (patch) | |
tree | 71a726ebf734619048690fd79d2a472042b57ac8 /global-functions | |
parent | e7c2a7745a7aa6b252091c144a7bd66055b6434e (diff) |
global-functions: drop support for attachment in notification e-mail
Diffstat (limited to 'global-functions')
-rw-r--r-- | global-functions | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/global-functions b/global-functions index 851e632..6434307 100644 --- a/global-functions +++ b/global-functions @@ -773,7 +773,6 @@ :local Subject [ :tostr $1 ]; :local Message [ :tostr $2 ]; :local Link [ :tostr $3 ]; - :local Attach [ :tostr $4 ]; :global Identity; :global EmailGeneralTo; @@ -792,8 +791,7 @@ subject=("[" . $Identity . "] " . $Subject) \ body=($Message . \ [ $IfThenElse ([ :len $Link ] > 0) ("\n\n" . $Link) "" ] . \ - [ $IfThenElse ([ :len $Signature ] > 0) ("\n-- \n" . $Signature) "" ]) \ - file=$Attach; + [ $IfThenElse ([ :len $Signature ] > 0) ("\n-- \n" . $Signature) "" ]); } on-error={ $LogPrintExit warning ("Failed sending notification mail!") false; } @@ -805,13 +803,12 @@ :local Subject [ :tostr $1 ]; :local Message [ :tostr $2 ]; :local Link [ :tostr $3 ]; - :local Attach [ :tostr $4 ]; - :local Silent [ :tostr $5 ]; + :local Silent [ :tostr $4 ]; :global SendEMail; :global SendTelegram; - $SendEMail $Subject $Message $Link $Attach; + $SendEMail $Subject $Message $Link; $SendTelegram $Subject $Message $Link $Silent; } |