aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2022-11-17 22:34:08 +0100
committerGravatar Christian Hesse <mail@eworm.de>2022-11-17 22:34:08 +0100
commit6f79eb996a3ddc2c6b7306841d7f101d059fd65d (patch)
tree9e82a5fd22d08e4dd55b305f7a025b2984b2c86d
parentb517b26517d13299fe020670288e441e4000cf8f (diff)
mod/notification-email: make sure the scheduler interval is never zero
-rw-r--r--mod/notification-email2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/notification-email b/mod/notification-email
index 81ca563..264a154 100644
--- a/mod/notification-email
+++ b/mod/notification-email
@@ -39,7 +39,7 @@
$LogPrintExit2 warning $0 ("Flushing E-Mail messages from scheduler, but queue is empty.") false;
}
- /system/scheduler/set interval=($QueueLen . "m") [ find where name=$0 ];
+ /system/scheduler/set interval=([ $EitherOr $QueueLen 1 ] . "m") [ find where name=$0 ];
:foreach Id,Message in=$EmailQueue do={
:if ([ :typeof $Message ] = "array" ) do={