diff options
author | Christian Hesse <mail@eworm.de> | 2022-03-01 12:47:23 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2022-03-01 12:47:23 +0100 |
commit | c9b6cee83f686a532183016712c9441e77558917 (patch) | |
tree | 00c0df0aa4342f5cd7e77cb47c328baafaa2d350 /global-functions | |
parent | c35485454c60ae489fd5b9fb7d0afde566cae645 (diff) |
global-functions: $FlushEmailQueue: delay if "in-progress"...
Something else is sending a mail... Let's wait and hope the status is
not confused.
Diffstat (limited to 'global-functions')
-rw-r--r-- | global-functions | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/global-functions b/global-functions index 11c3bd7..f207ac8 100644 --- a/global-functions +++ b/global-functions @@ -354,6 +354,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; |