aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-12-09 08:51:50 +0100
committerGravatar Christian Hesse <mail@eworm.de>2024-12-09 11:49:50 +0100
commit5450618723dabf9d42857047ea906c9fc87886dd (patch)
tree2baf210c43324deeeb8309cecd5418487a52b648 /mod
parent34172e4c78cc5a6d0fe99df279e42a8794f84c94 (diff)
mod/notification-email: $FlushEmailQueue: use $ExitError to indicate unintentional error
Diffstat (limited to 'mod')
-rw-r--r--mod/notification-email.rsc6
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/notification-email.rsc b/mod/notification-email.rsc
index 3d62ddf..ff4188c 100644
--- a/mod/notification-email.rsc
+++ b/mod/notification-email.rsc
@@ -34,7 +34,7 @@
}
# flush e-mail queue
-:set FlushEmailQueue do={
+:set FlushEmailQueue do={ :do {
:global EmailQueue;
:global EitherOr;
@@ -113,7 +113,9 @@
} else={
/system/scheduler/set interval=1m comment="Waiting for retry..." $Scheduler;
}
-}
+} on-error={
+ :global ExitError; $ExitError false $0;
+} }
# generate filter for log-forward
:set LogForwardFilterLogForwarding do={