aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2022-03-01 12:47:23 +0100
committerGravatar Christian Hesse <mail@eworm.de>2022-03-01 13:00:52 +0100
commitc5cc72de0ed5fd011e7ec6a9170e9c5ba9c55312 (patch)
tree112ec8fe98bcf85d9f9e0f5a917b832bf6a9d809
parent6336da6bd702201ac7f74557cee6ce68677059d0 (diff)
global-functions: $FlushEmailQueue: delay if "in-progress"...
Something else is sending a mail... Let's wait and hope the status is not confused. (cherry picked from commit c9b6cee83f686a532183016712c9441e77558917)
-rw-r--r--global-functions1
1 files changed, 1 insertions, 0 deletions
diff --git a/global-functions b/global-functions
index ffa5789..6ae4549 100644
--- a/global-functions
+++ b/global-functions
@@ -358,6 +358,7 @@
:foreach Id,Message in=$EmailQueue do={
:if ([ :typeof $Message ] = "array" ) do={
:local Attach [ $EitherOr ($Message->"attach") "" ];
+ :while ([ / tool e-mail get last-status ] = "in-progress") do={ :delay 1s; }
/ tool e-mail send to=($Message->"to") cc=($Message->"cc") subject=($Message->"subject") \
body=($Message->"body") file=$Attach;
:local Wait true;