aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-02-24 10:48:24 +0100
committerGravatar Christian Hesse <mail@eworm.de>2020-02-24 10:48:24 +0100
commite11ddeaf8cca4669bde5449df9d388314cffa548 (patch)
tree6c778b22f619538dd92c8ac1f89bc570f7bf6d6a
parent7d2239f24e01497e94c181b247f119592d253eb7 (diff)
sms-forward: use $MailServerIsUp
-rw-r--r--sms-forward3
1 files changed, 2 insertions, 1 deletions
diff --git a/sms-forward b/sms-forward
index c05600e..35adba1 100644
--- a/sms-forward
+++ b/sms-forward
@@ -7,9 +7,10 @@
:global Identity;
:global SendNotification;
+:global MailServerIsUp;
# check mail server
-:if ([ / tool netwatch get [ find where comment=[ / tool e-mail get address ] ] status ] != "up") do={
+:if ($MailServerIsUp = false) do={
:log warning "Mail server is not up.";
:error "Warning: See log for details.";
}