global-functions: add identity tag in $SendNotification

... and send subject in telegram message.
This commit is contained in:
Christian Hesse 2018-11-27 14:08:14 +01:00
parent c4f8c1ad52
commit 6e4d715937
9 changed files with 13 additions and 11 deletions

View file

@ -26,7 +26,7 @@
:if ($phone = $allowed && message~("^:cmd " . $secret . " script ")) do={
:log debug "Ignoring SMS, which starts a script.";
} else={
$SendNotification ("[" . $identity . "] SMS Forwarding") \
$SendNotification ("SMS Forwarding") \
("A message was received by " . $identity . ":\n\n" . \
"Phone: " . $phone . "\n" . \
"Timestamp: " . $timestamp . "\n" . \