mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-15 07:22:22 +02:00
mod/notification-email: $FlushEmailQueue: return on purge
This commit is contained in:
parent
009a6bd762
commit
5310673152
1 changed files with 6 additions and 0 deletions
|
@ -114,6 +114,12 @@
|
||||||
:return true;
|
:return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:if ([ :len [ /system/scheduler/find where name="_FlushEmailQueue" ] ] = 0 && \
|
||||||
|
[ :typeof $EmailQueue ] = "nothing") do={
|
||||||
|
$LogPrint info $0 ("Queue was purged? Exiting.");
|
||||||
|
:return false;
|
||||||
|
}
|
||||||
|
|
||||||
/system/scheduler/set interval=(($SchedVal->"run-count") . "m") \
|
/system/scheduler/set interval=(($SchedVal->"run-count") . "m") \
|
||||||
comment="Waiting for retry..." $Scheduler;
|
comment="Waiting for retry..." $Scheduler;
|
||||||
} on-error={
|
} on-error={
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue