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