mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-25 13:24:29 +02:00
global-functions: $FlushEmailQueue: do not flush if sending
This commit is contained in:
parent
a05b8c1881
commit
562c565fcf
1 changed files with 5 additions and 0 deletions
|
@ -330,6 +330,11 @@
|
||||||
:local AllDone true;
|
:local AllDone true;
|
||||||
:local QueueLen [ :len $EmailQueue ];
|
:local QueueLen [ :len $EmailQueue ];
|
||||||
|
|
||||||
|
:if ([ /tool/e-mail/get last-status ] = "in-progress") do={
|
||||||
|
$LogPrintExit2 debug $0 ("Sending mail in currently in progress, not flushing.") false;
|
||||||
|
:return false;
|
||||||
|
}
|
||||||
|
|
||||||
:if ([ $IsTimeSync ] = false) do={
|
:if ([ $IsTimeSync ] = false) do={
|
||||||
$LogPrintExit2 debug $0 ("Time is not synced, not flushing.") false;
|
$LogPrintExit2 debug $0 ("Time is not synced, not flushing.") false;
|
||||||
:return false;
|
:return false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue