log-forward: improve wording for single message

This commit is contained in:
Christian Hesse 2020-10-18 20:13:58 +02:00
parent 211edb93c0
commit 4a85deb45c

View file

@ -12,6 +12,7 @@
:global LogForwardLast; :global LogForwardLast;
:global LogForwardRateLimit; :global LogForwardRateLimit;
:global IfThenElse;
:global LogPrintExit; :global LogPrintExit;
:global MailServerIsUp; :global MailServerIsUp;
:global ScriptLock; :global ScriptLock;
@ -55,8 +56,9 @@ $WaitFullyConnected;
:if ($Count > 0) do={ :if ($Count > 0) do={
$SendNotification ([ $SymbolForNotification "warning-sign" ] . "Log Forwarding") \ $SendNotification ([ $SymbolForNotification "warning-sign" ] . "Log Forwarding") \
("The log on " . $Identity . " contains these " . $Count . " messages after " . \ ("The log on " . $Identity . " contains " . [ $IfThenElse ($Count = 1) \
[ / system resource get uptime ] . " uptime.\n" . $Messages); "this message" ("these " . $Count . " messages") ] . " after " . \
[ / system resource get uptime ] . " uptime.\n" . $Messages);
:set LogForwardRateLimit ($LogForwardRateLimit + 10); :set LogForwardRateLimit ($LogForwardRateLimit + 10);
:set LogForwardLast ($MessageVal->".id"); :set LogForwardLast ($MessageVal->".id");