diff options
-rw-r--r-- | sms-forward | 3 |
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."; } |