diff options
author | Christian Hesse <mail@eworm.de> | 2022-11-22 21:16:06 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2022-11-22 21:28:45 +0100 |
commit | 89c0fde4659df9d1b3468a144540c19179a872d9 (patch) | |
tree | 9f353a2fcedd0eeaa9d2e04990e2f1f58aa694be | |
parent | 03d19270670ae1b4b647ffca37177f92a5db0072 (diff) |
mod/notification-email: put status in scheduler comment
-rw-r--r-- | mod/notification-email | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mod/notification-email b/mod/notification-email index 3cff322..799c4ef 100644 --- a/mod/notification-email +++ b/mod/notification-email @@ -22,7 +22,7 @@ :local Scheduler [ /system/scheduler/find where name=$0 ]; :if ([ :len $Scheduler ] > 0 && [ /system/scheduler/get $Scheduler interval ] < 1m) do={ - /system/scheduler/set interval=1m $Scheduler; + /system/scheduler/set interval=1m comment="Doing initial checks..." $Scheduler; } :if ([ /tool/e-mail/get last-status ] = "in-progress") do={ @@ -44,7 +44,7 @@ $LogPrintExit2 warning $0 ("Flushing E-Mail messages from scheduler, but queue is empty.") false; } - /system/scheduler/set interval=([ $EitherOr $QueueLen 1 ] . "m") $Scheduler; + /system/scheduler/set interval=([ $EitherOr $QueueLen 1 ] . "m") comment="Sending..." $Scheduler; :foreach Id,Message in=$EmailQueue do={ :if ([ :typeof $Message ] = "array" ) do={ @@ -84,7 +84,7 @@ /system/scheduler/remove $Scheduler; :set EmailQueue; } else={ - /system/scheduler/set interval=1m $Scheduler; + /system/scheduler/set interval=1m comment="Waiting for retry..." $Scheduler; } } @@ -124,7 +124,7 @@ attach=($Notification->"attach"); remove-attach=($Notification->"remove-attach") }; :if ([ :len [ /system/scheduler/find where name="\$FlushEmailQueue" ] ] = 0) do={ /system/scheduler/add name="\$FlushEmailQueue" interval=1s start-time=startup \ - on-event=(":global FlushEmailQueue; \$FlushEmailQueue;"); + comment="Queuing new mail..." on-event=(":global FlushEmailQueue; \$FlushEmailQueue;"); } } |